/* ===== Photo Gallery (Ultra-wide base >3000px) ===== */
.block-photo-gallery {
    padding: 200px 0;
    background-color: #FEFBF4;
}

.block-photo-gallery .gallery-wrapper {
    max-width: 2600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-photo-gallery .icon-star {
    margin-bottom: 40px;
}

.block-photo-gallery .icon-star img {
    width: 160px;
    height: auto;
    filter: brightness(0.4);
}

.block-photo-gallery .gallery-title {
    margin-bottom: 120px;
    text-transform: uppercase;
}
.block-photo-gallery .gallery-link{
    width: 100%;
}
/* Gallery columns */
.block-photo-gallery .gallery-columns {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

/* Each column */
.block-photo-gallery .gallery-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

/* Items */
.block-photo-gallery .gallery-item {
    display: flex;
    overflow: hidden;
}

/* Size variants */
.block-photo-gallery .gallery-item.small {
    flex: 1;
}

.block-photo-gallery .gallery-item.large {
    flex: 2;
}

/* Images */
.block-photo-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.block-photo-gallery .gallery-item:hover img {
    transform: translateY(-20px);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s ease;
}

/* open state */
.gallery-lightbox.is-open {
    display: flex;
}
.gallery-lightbox.visible {
    opacity: 1;
}

/* stage */
.glb-stage {
    position: relative;
    margin: 0;
    max-width: min(90vw, 3200px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(20px) scale(.98);
    transition: transform .25s ease;
}
.gallery-lightbox.visible .glb-stage {
    transform: translateY(0) scale(1);
}

/* image */
.glb-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    box-shadow: 0 40px 120px rgba(0,0,0,.35);
}

/* caption */
.glb-caption {
    color: #fff;
    text-align: center;
    font-size: 28px;
    line-height: 1.4;
    opacity: .9;
}

/* buttons */
.glb-btn {
    position: absolute;
    background: transparent;
    color: #fff;
    border: 0;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
    z-index: 2;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}
.glb-btn:hover {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
}

.glb-close {
    top: 48px;
    right: 48px;
    font-size: 56px;
    line-height: 1;
    cursor: pointer;
}
.glb-prev  {
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
}
.glb-next  {
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
}

/* click-outside area still closes (container is flex) */
.gallery-lightbox.is-open {
    cursor: zoom-out;
}
.glb-stage, .glb-btn {
    cursor: auto;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-lightbox, .glb-stage {
        transition: none !important;
    }
}

/* ===== ≤3000px (desktop) ===== */
@media (max-width: 3000px) {
    .block-photo-gallery {
        padding: 100px 0;
    }

    .block-photo-gallery .gallery-wrapper {
        max-width: 1300px;
    }

    .block-photo-gallery .icon-star {
        margin-bottom: 20px;
    }

    .block-photo-gallery .icon-star img {
        width: 80px;
    }

    .block-photo-gallery .gallery-title {
        margin-bottom: 60px;
    }

    .block-photo-gallery .gallery-columns {
        gap: 20px;
    }

    .block-photo-gallery .gallery-column {
        gap: 20px;
    }

    .block-photo-gallery .gallery-item:hover img {
        transform: translateY(-10px);
    }








    /* stage */
    .glb-stage {
        max-width: min(90vw, 1600px);
        gap: 12px;
        transform: translateY(10px) scale(.98);
    }


    /* image */
    .glb-image {

        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,.35);
    }

    /* caption */
    .glb-caption {
        font-size: 14px;
    }

    .glb-btn {
        width: 44px;
        height: 44px;
    }
    .glb-close {
        top: 24px;
        right: 24px;
        font-size: 28px;
    }
    .glb-prev  {
        left: 24px;
        font-size: 24px;
    }
    .glb-next  {
        right: 24px;
        font-size: 24px;
    }


}

/* ===== ≤1200px ===== */
@media (max-width: 1200px) {
    .block-photo-gallery .gallery-wrapper {
        padding: 0 5vw;
    }
}

/* ===== ≤800px ===== */
@media (max-width: 800px) {
    .block-photo-gallery .gallery-columns {
        flex-direction: column;
        width: 100%;
    }
}
