/* ============================================================
   Gastineau Tour Gallery — [tour_gallery]
   /gastineau-tour-gallery/gastineau-tour-gallery.css
   ============================================================ */

/* ── Grid ───────────────────────────────────────────────────── */
.gg-gallery {
    columns: 3;
    column-gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.gg-gallery__item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
}

.gg-gallery__item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.gg-gallery__item:hover img {
    transform: scale(1.03);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.gg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 42, 52, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gg-lightbox.is-visible {
    opacity: 1;
}

/* ── Blur — scoped to page content, not the lightbox ───────── */
.gg-lightbox-active #et-main-area,
.gg-lightbox-active #et_header_area {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

/* ── Lightbox content ───────────────────────────────────────── */
.gg-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

/* ── Expanding thumbnail animation ─────────────────────────── */
.gg-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transform-origin: center center;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s ease;
}

.gg-lightbox.is-visible .gg-lightbox__img {
    transform: scale(1);
    opacity: 1;
}

/* ── Caption ────────────────────────────────────────────────── */
.gg-lightbox__caption {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease 0.25s;
}

.gg-lightbox.is-visible .gg-lightbox__caption {
    opacity: 1;
}

/* ── Close button ───────────────────────────────────────────── */
.gg-lightbox__close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff !important;
    font-size: 2.5rem !important;
    cursor: pointer;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
}

.gg-lightbox.is-visible .gg-lightbox__close {
    opacity: 1;
}

/* ── Prev / Next buttons ────────────────────────────────────── */
.gg-lightbox__prev,
.gg-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff !important;
    font-size: 5rem !important;
    line-height: 1 !important;
    font-weight: 100 !important;
    cursor: pointer;
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gg-lightbox.is-visible .gg-lightbox__prev,
.gg-lightbox.is-visible .gg-lightbox__next {
    opacity: 1;
}

.gg-lightbox__prev:hover,
.gg-lightbox__next:hover {
    opacity: 0.7;
}

.gg-lightbox__prev { left: 16px; }
.gg-lightbox__next { right: 16px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .gg-gallery { columns: 2; }
}

@media (max-width: 480px) {
    .gg-gallery { columns: 1; }
}