/* ==============================
   StyleStore Gutenberg Gallery Swiper
   Scope: .wp-block-gallery-1
============================== */

.wp-block-gallery-1.ss-gallery-swiper {
    display: block !important;
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-slide {
    margin: 0 !important;
    width: auto;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
    cursor: zoom-in;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 628 / 900;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-slide:hover img {
    transform: scale(1.035);
    opacity: 0.95;
}

/* Navigation */
.wp-block-gallery-1.ss-gallery-swiper .swiper-button-next,
.wp-block-gallery-1.ss-gallery-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
    color: #111;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-button-next::after,
.wp-block-gallery-1.ss-gallery-swiper .swiper-button-prev::after {
    font-size: 15px;
    font-weight: 700;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-button-disabled {
    opacity: 0.25;
}

/* Pagination */
.wp-block-gallery-1.ss-gallery-swiper .swiper-pagination {
    position: relative;
    margin-top: 12px;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #999;
    opacity: 0.5;
}

.wp-block-gallery-1.ss-gallery-swiper .swiper-pagination-bullet-active {
    background: #111;
    opacity: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .wp-block-gallery-1.ss-gallery-swiper {
        margin: 14px 0;
        padding-bottom: 4px;
    }

    .wp-block-gallery-1.ss-gallery-swiper .swiper-button-next,
    .wp-block-gallery-1.ss-gallery-swiper .swiper-button-prev {
        display: none;
    }

    .wp-block-gallery-1.ss-gallery-swiper .swiper-slide img {
        border-radius: 12px;
    }
}


/* ==============================
   StyleStore Lightbox
============================== */

.ss-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(0, 0, 0, 0.86);
}

.ss-lightbox.is-active {
    display: flex;
}

.ss-lightbox__inner {
    position: relative;
    max-width: min(92vw, 900px);
    max-height: 92vh;
}

.ss-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.ss-lightbox__close,
.ss-lightbox__prev,
.ss-lightbox__next {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #111;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.ss-lightbox__close {
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
}

.ss-lightbox__prev,
.ss-lightbox__next {
    top: 50%;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    transform: translateY(-50%);
    font-size: 28px;
    line-height: 1;
}

.ss-lightbox__prev {
    left: -56px;
}

.ss-lightbox__next {
    right: -56px;
}

.ss-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ss-lightbox {
        padding: 14px;
    }

    .ss-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .ss-lightbox__prev {
        left: 8px;
    }

    .ss-lightbox__next {
        right: 8px;
    }

    .ss-lightbox__prev,
    .ss-lightbox__next {
        background: rgba(255, 255, 255, 0.78);
    }

    .ss-lightbox__counter {
        bottom: 10px;
        padding: 3px 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.45);
    }
}
