.image-gallery__trigger {
    display: block;
    cursor: zoom-in;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    padding: 2rem;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox__frame {
    position: relative;
    width: min(1200px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(90vh - 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox__caption {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    min-height: 1.25rem;
}

.gallery-lightbox__swipe-hint {
    display: none;
    color: #d1d5db;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(209, 213, 219, 0.22);
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    border: 0;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.7);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.gallery-lightbox__close {
    top: 0.5rem;
    right: 0.5rem;
}

.gallery-lightbox__nav--prev {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 0.75rem;
    }

    .gallery-lightbox__swipe-hint {
        display: inline-flex;
    }

    .gallery-lightbox__close,
    .gallery-lightbox__nav {
        width: 2.4rem;
        height: 2.4rem;
    }
}
