/* Main Slider */
.mySwiper2 {
    width: 100%;
    height: auto;
    border-radius: 1em;
    --swiper-navigation-color: #fff;
}

/* Thumbnail Strip */
.mySwiper {
    box-sizing: border-box;
    padding: 10px 0;
    position: relative;
}

.mySwiper .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

/* Shared slide styles */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
}

/* Slide counter badge */
.swiper-pagination {
    background-color: rgba(0, 105, 122, 0.5);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px !important;
    left: 10px !important;
    width: 40px !important;
    height: 30px !important;
    border-radius: 1em;
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 22px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Prevent text/image selection from rapid clicks on arrows or slides */
.swiper-button-next,
.swiper-button-prev,
.swiper-slide img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Thumbnail grid collapse */
.swiper-wrapper-bottom {
    overflow: hidden;
    max-height: 170px;
    transition: max-height 0.4s ease;
}

.swiper-wrapper-bottom-expanded {
    max-height: 2000px;
    transition: max-height 0.6s ease;
}

/* Fade gradient hint */
.mySwiper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #1d1d1d);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.mySwiper.thumbs-expanded::after {
    opacity: 0;
}

/* ========= MOBILE ========= */
@media (max-width: 991px) {
    .mySwiper {
        display: none !important;
    }

    #brxe-bnnnhp {
        display: none !important;
    }

    .swiper-pagination {
        width: auto !important;
        padding: 0 10px;
        font-size: 16px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 20px;
    }
}

/* ========= FULLSCREEN GALLERY MODAL ========= */
.gallery-fs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-fs.active {
    opacity: 1;
}

.gallery-fs-close {
    position: absolute;
    top: 16px;
    right: max(16px, env(safe-area-inset-right, 0px));
    z-index: 100000;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 12px 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-fs-swiper {
    width: 100%;
    height: 100%;
}

.gallery-fs-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-fs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.gallery-fs-counter {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    z-index: 100000;
}
