/* ==========================================================================
   GALLERY PAGE  (gallery.html)  - all rules are prefixed .gx-
   ========================================================================== */
:root {
    --gx-cream: #faf7f0;
    --gx-ink: #1a1a1a;
    --gx-gold: #ddad84;
    --gx-gold-dk: #b98757;
    --gx-brown: #8d6f5c;
    --gx-line: #e8e1d4;
    --gx-muted: #6f6a66;
}

body.gx-page {
    background: var(--gx-cream);
}

/* ---------- Hero ---------- */
.gx-hero {
    background: var(--gx-cream);
    padding: 170px 0 54px;
    text-align: center;
}

.gx-eyebrow {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gx-brown);
    margin-bottom: 26px;
}

.gx-eyebrow::before,
.gx-eyebrow::after {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--gx-gold);
    vertical-align: middle;
    margin: 0 14px;
}

.gx-title {
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: clamp(38px, 5.4vw, 80px);
    line-height: 1.1;
    letter-spacing: 0.5px;
    color: var(--gx-ink);
    margin: 0 auto 26px;
    max-width: 980px;
}

.gx-title em {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--gx-gold-dk);
    letter-spacing: 0;
}

.gx-lead {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--gx-muted);
    max-width: 640px;
    margin: 0 auto 34px;
}

.gx-stats {
    display: inline-flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gx-stats li {
    padding: 0 34px;
    border-left: 1px solid var(--gx-line);
    text-align: center;
}

.gx-stats li:first-child {
    border-left: 0;
}

.gx-stats strong {
    display: block;
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: 34px;
    line-height: 1.1;
    color: var(--gx-ink);
}

.gx-stats span {
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gx-brown);
}

/* ---------- Selector card ---------- */
.gx-gallery {
    background: var(--gx-cream);
    padding-bottom: 80px;
}

.gx-card {
    background: #ffffff;
    border: 1px solid var(--gx-line);
    box-shadow: 0 24px 70px rgba(70, 50, 25, 0.08);
}

.gx-ptabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--gx-line);
}

.gx-ptab {
    position: relative;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--gx-line);
    padding: 26px 20px 24px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    color: var(--gx-ink);
}

.gx-ptab:first-child {
    border-left: 0;
}

.gx-ptab:hover {
    background: #f6f1e7;
}

.gx-ptab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--gx-gold);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gx-ptab.is-active {
    background: #181d24;
    color: #ffffff;
}

.gx-ptab.is-active::after {
    transform: scaleX(1);
}

.gx-ptab-kicker {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gx-brown);
    margin-bottom: 8px;
}

.gx-ptab.is-active .gx-ptab-kicker {
    color: var(--gx-gold);
}

.gx-ptab-name {
    display: block;
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.15;
}

.gx-info {
    padding: 34px 32px 32px;
    border-bottom: 1px solid var(--gx-line);
    background: linear-gradient(to right, #fbf7ee, #ffffff 55%);
}

.gx-info-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--gx-line);
}

.gx-loc {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gx-brown);
    margin-bottom: 12px;
}

.gx-info-place {
    margin: 0;
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: 1.15;
    color: var(--gx-ink);
}

.gx-info-place em {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--gx-gold-dk);
}

.gx-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.gx-spec {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid var(--gx-line);
    border-top: 3px solid var(--gx-gold);
    box-shadow: 0 10px 30px rgba(70, 50, 25, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gx-spec:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(70, 50, 25, 0.12);
}

.gx-spec-ico {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f6efe2;
    color: var(--gx-gold-dk);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.gx-spec-body {
    min-width: 0;
}

.gx-spec dt {
    font-family: "Montserrat", sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gx-brown);
    margin: 3px 0 8px;
}

.gx-spec dd {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.45;
    color: var(--gx-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gx-chip {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--gx-line);
    border-radius: 30px;
    background: #fbf7ee;
    font-size: 0.86em;
    white-space: nowrap;
}
.gx-link {
    flex: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gx-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gx-ink);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.gx-link:hover {
    color: var(--gx-gold-dk);
    border-color: var(--gx-gold-dk);
    text-decoration: none;
}

.gx-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 32px;
}

.gx-stabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gx-stab {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--gx-ink);
    background: #ffffff;
    border: 1px solid var(--gx-line);
    border-radius: 40px;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gx-stab i {
    font-style: normal;
    font-size: 11px;
    margin-left: 7px;
    color: var(--gx-brown);
}

.gx-stab:hover {
    border-color: var(--gx-gold);
    background: #fbf6ec;
}

.gx-stab.is-active {
    background: var(--gx-ink);
    border-color: var(--gx-ink);
    color: #ffffff;
}

.gx-stab.is-active i {
    color: var(--gx-gold);
}

.gx-count {
    flex: none;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    letter-spacing: 1px;
    color: var(--gx-brown);
}

/* ---------- Photo grid (masonry) ---------- */
.gx-grid {
    column-count: 3;
    column-gap: 20px;
    padding-top: 40px;
    min-height: 300px;
}

.gx-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: #ece6da;
    overflow: hidden;
    cursor: zoom-in;
    break-inside: avoid;
    min-height: 160px;
    animation: gx-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes gx-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

.gx-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gx-item:hover img,
.gx-item:focus-visible img {
    transform: scale(1.05);
}

.gx-item-cap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 22px 20px;
    text-align: left;
    background: linear-gradient(to top, rgba(12, 9, 6, 0.78) 0%, rgba(12, 9, 6, 0.25) 45%, rgba(12, 9, 6, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gx-item:hover .gx-item-cap,
.gx-item:focus-visible .gx-item-cap {
    opacity: 1;
}

.gx-item-cat {
    font-family: "Montserrat", sans-serif;
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gx-gold);
    margin-bottom: 6px;
}

.gx-item-title {
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: 21px;
    line-height: 1.25;
    color: #ffffff;
}

.gx-item-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gx-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gx-item:hover .gx-item-zoom,
.gx-item:focus-visible .gx-item-zoom {
    opacity: 1;
    transform: none;
}

/* ---------- Videos ---------- */
.gx-videos {
    background: #ffffff;
    padding: 96px 0 100px;
    border-top: 1px solid var(--gx-line);
}

.gx-vhead {
    text-align: center;
    margin-bottom: 48px;
}

.gx-h2 {
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.12;
    color: var(--gx-ink);
    margin: 0 0 18px;
}

.gx-h2 em {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--gx-gold-dk);
}

.gx-vgrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.gx-vcard {
    display: block;
    flex: 0 1 calc((100% - 56px) / 3);
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gx-vthumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}

.gx-vthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* link-only videos (no picture available): dark tile with the platform icon */
.gx-vthumb.is-blank {
    background: linear-gradient(135deg, #181d24, #2c3440);
}

.gx-vblank {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    color: rgba(255, 255, 255, 0.12);
}

.gx-vthumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 9, 6, 0.5), rgba(12, 9, 6, 0) 55%);
    pointer-events: none;
}

.gx-vcard:hover .gx-vthumb img {
    transform: scale(1.05);
}

.gx-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gx-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, background 0.4s ease;
}

.gx-play::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: gx-ring 2.2s ease-out infinite;
}

@keyframes gx-ring {
    from { transform: scale(0.85); opacity: 1; }
    to { transform: scale(1.3); opacity: 0; }
}

.gx-vcard:hover .gx-play {
    transform: scale(1.1);
    background: var(--gx-gold);
}

.gx-vmeta {
    display: block;
    padding-top: 18px;
}

.gx-vkicker {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gx-brown);
    margin-bottom: 6px;
}

.gx-vtitle {
    display: block;
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.2;
    color: var(--gx-ink);
}

.gx-vmore {
    text-align: center;
    margin-top: 46px;
}

/* ---------- Popups (photo lightbox + video) ---------- */
.gx-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.94);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gx-modal.is-open {
    display: flex;
    opacity: 1;
}

.gx-modal-close {
    position: absolute;
    top: 22px;
    right: 26px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.gx-modal-close:hover {
    background: var(--gx-gold);
    border-color: var(--gx-gold);
    color: #111111;
}

.gx-lb-stage {
    max-width: min(1200px, 90vw);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-lb-stage img {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
    background: #ffffff;
}

.gx-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.gx-lb-nav:hover {
    background: var(--gx-gold);
    border-color: var(--gx-gold);
    color: #111111;
}

.gx-lb-prev { left: 26px; }
.gx-lb-next { right: 26px; }

.gx-lb-caption {
    display: none;   /* photo popup shows the picture only - no text */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    text-align: center;
    padding: 0 80px;
}

.gx-lb-cat {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gx-gold);
    margin-bottom: 6px;
}

.gx-lb-title {
    display: block;
    font-family: "Morison", Georgia, serif;
    font-weight: 300;
    font-size: 24px;
    color: #ffffff;
}

.gx-lb-count {
    display: none;   /* photo popup shows the picture only - no text */
    position: absolute;
    top: 34px;
    left: 30px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.75);
}

.gx-v-stage {
    position: relative;
    width: min(1100px, 92vw);
    aspect-ratio: 16 / 9;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

/* backup link under the popup in case a video will not play inside the page */
.gx-v-open {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 3px;
}

.gx-v-open:hover {
    color: var(--gx-gold);
    border-color: var(--gx-gold);
    text-decoration: none;
}

.gx-v-open[hidden] {
    display: none;
}

/* tall videos (Instagram reels, TikTok, YouTube Shorts) */
.gx-v-stage.is-portrait {
    width: auto;
    height: min(88vh, 780px);
    aspect-ratio: 9 / 16;
    max-width: 92vw;
}

.gx-v-stage video,
.gx-v-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000000;
}

body.gx-lock {
    overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .gx-hero {
        padding: 140px 0 40px;
    }

    .gx-ptabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .gx-ptab:nth-child(3) {
        border-left: 0;
    }

    .gx-ptab:nth-child(n+3) {
        border-top: 1px solid var(--gx-line);
    }

    .gx-ptab-name {
        font-size: 24px;
    }

    .gx-info {
        padding: 26px 22px;
    }

    .gx-info-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .gx-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gx-subbar {
        padding: 18px 22px;
    }

    .gx-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .gx-item {
        margin-bottom: 14px;
    }

    .gx-vcard {
        flex-basis: calc((100% - 28px) / 2);
    }

    .gx-videos {
        padding: 70px 0 76px;
    }
}

@media (max-width: 767px) {
    .gx-vcard {
        flex-basis: 100%;
    }

    .gx-spec {
        padding: 18px 18px;
    }

    .gx-subbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .gx-stabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .gx-stabs::-webkit-scrollbar {
        display: none;
    }

    .gx-stab {
        flex: none;
    }

    .gx-stats li {
        padding: 0 18px;
    }

    .gx-stats strong {
        font-size: 28px;
    }

    .gx-lb-prev { left: 10px; }
    .gx-lb-next { right: 10px; }

    .gx-lb-nav {
        width: 44px;
        height: 44px;
        margin-top: -22px;
        font-size: 24px;
    }

    .gx-lb-caption {
        padding: 0 20px;
    }

    .gx-lb-title {
        font-size: 19px;
    }

    .gx-modal-close {
        top: 14px;
        right: 14px;
    }

    .gx-lb-count {
        top: 26px;
        left: 18px;
    }
}

@media (max-width: 480px) {
    .gx-grid {
        column-count: 1;
    }

    .gx-ptab {
        padding: 18px 10px 16px;
    }

    .gx-ptab-name {
        font-size: 20px;
    }

    .gx-ptab-kicker {
        font-size: 9.5px;
        letter-spacing: 1.5px;
    }

    .gx-play {
        width: 64px;
        height: 64px;
        margin: -32px 0 0 -32px;
        font-size: 20px;
    }
}

/* Touch screens have no hover: keep the captions visible */
@media (hover: none) {
    .gx-item-cap {
        opacity: 1;
        background: linear-gradient(to top, rgba(12, 9, 6, 0.7) 0%, rgba(12, 9, 6, 0) 45%);
    }

    .gx-item-title {
        font-size: 17px;
    }

    .gx-item-zoom {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gx-item,
    .gx-play::before {
        animation: none;
    }
}
