.gallery-nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-left: 25px;
}

.gallery-nav-tabs .nav-link {
    border: none;
    color: #000;
    background-color: transparent;
    border-bottom: 3px solid #212121;
    transition: all 0.2s ease-in-out;
    margin-bottom: -1px;
}

.gallery-nav-tabs .nav-link:not(.active):hover {
    color: #ff9a47;
}

.gallery-nav-tabs .nav-link.active {
    border-bottom-color: #fd7e14;
    color: #fd7e14;
}

.video-thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 22%);
    transition: background 0.3s ease;
    border-radius: var(--bs-border-radius);
}

.video-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.video-thumbnail:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 2rem;
}

.modal-gallery {
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 1);

    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
}

.modal-gallery.d-none {
    display: none;
}

.modal-gallery .modal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    color: white;
    z-index: 1052;
    background-color: #020202;
}

.modal-gallery .modal-indicator {
    font-size: 1.1rem;
    color: white;
}

.modal-gallery .modal-close-left {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1053;
}

.modal-gallery .modal-close-left:hover {
    color: #bbb;
}

.modal-gallery .modal-content {
    margin: auto;
    display: block;

    max-width: 100%;
    max-height: 100vh;

    width: auto;
    height: auto;

    padding: 0;
    min-height: 0vh;
}

.modal-gallery #modalContentWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.modal-gallery #modalContentWrapper img,
.modal-gallery #modalContentWrapper video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
