/* ==========================================================
   Our Gallery page (our-gallery.php)
   ========================================================== */
.gx {
    --gx-navy: #020e2a;
    --gx-navy-2: #0b1d45;
    --gx-red: #ed1b24;
    --gx-ink: #1f2638;
    --gx-muted: #6b7385;
    --gx-bg: #f5f6fa;
    font-family: 'Open Sans', sans-serif;
    color: var(--gx-ink);
}

/* ---------- Hero ---------- */
.gx-hero {
    position: relative;
    padding: 84px 0 72px;
    background:
        linear-gradient(100deg, rgba(2, 14, 42, .96) 30%, rgba(2, 14, 42, .7)),
        url("../img/new-images/gallery/full/g-salute.jpg") center 35% / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.gx-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 27, 36, .35), transparent 70%);
    pointer-events: none;
}

.gx-crumbs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .65);
}

.gx-crumbs a { color: rgba(255, 255, 255, .85); }
.gx-crumbs a:hover { color: #fff; }
.gx-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.gx-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font: 800 52px/1.08 'Montserrat', sans-serif;
}

.gx-hero h1 span { color: var(--gx-red); }

.gx-hero p {
    max-width: 560px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.7;
}

.gx-stats { display: flex; flex-wrap: wrap; gap: 12px; }

.gx-stat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
    font-size: 14px;
}

.gx-stat b { font: 800 18px/1 'Montserrat', sans-serif; }
.gx-stat i { color: var(--gx-red); }

/* ---------- Filters ---------- */
.gx-photos { padding: 56px 0 30px; background: var(--gx-bg); }

.gx-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.gx-eyebrow {
    color: var(--gx-red);
    font: 700 13px/1 'Montserrat', sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.gx-section-head h2 {
    margin: 10px 0 0;
    color: var(--gx-navy);
    font: 800 32px/1.15 'Montserrat', sans-serif;
}

.gx-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.gx-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #dde1ea;
    border-radius: 999px;
    background: #fff;
    color: var(--gx-navy);
    font: 600 13.5px/1 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background .25s, color .25s, border-color .25s;
}

.gx-filter small {
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--gx-bg);
    color: var(--gx-muted);
    font-size: 11.5px;
    text-align: center;
}

.gx-filter:hover { border-color: var(--gx-red); }

.gx-filter.is-active { background: var(--gx-navy); border-color: var(--gx-navy); color: #fff; }
.gx-filter.is-active small { background: var(--gx-red); color: #fff; }

.gx-filter:focus-visible, .gx-tile:focus-visible, .gx-lb button:focus-visible, .gx-video:focus-visible {
    outline: 3px solid rgba(237, 27, 36, .55);
    outline-offset: 3px;
}

/* ---------- Mosaic grid ---------- */
.gx-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gx-tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #dfe3ec;
    cursor: zoom-in;
    box-shadow: 0 14px 30px -22px rgba(2, 14, 42, .6);
    animation: gx-in .45s ease both;
}

.gx-tile.is-tall { grid-row: span 2; }
.gx-tile.is-wide { grid-column: span 2; }
.gx-tile.is-big { grid-column: span 2; grid-row: span 2; }
.gx-tile[hidden] { display: none; }

.gx-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.gx-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 14, 42, .88));
    opacity: .75;
    transition: opacity .35s;
}

.gx-cap {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    text-align: left;
    color: #fff;
    transform: translateY(8px);
    transition: transform .35s ease;
}

.gx-cap em {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--gx-red);
    font: 700 10.5px/1.4 'Montserrat', sans-serif;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .35s;
}

.gx-cap strong { display: block; font: 700 15.5px/1.3 'Montserrat', sans-serif; }
.gx-tile.is-big .gx-cap strong { font-size: 20px; }

.gx-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--gx-navy);
    font-size: 15px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .3s, transform .3s;
}

.gx-tile:hover img, .gx-tile:focus-visible img { transform: scale(1.07); }
.gx-tile:hover::after, .gx-tile:focus-visible::after { opacity: 1; }
.gx-tile:hover .gx-cap, .gx-tile:focus-visible .gx-cap { transform: none; }
.gx-tile:hover .gx-cap em, .gx-tile:focus-visible .gx-cap em { opacity: 1; }
.gx-tile:hover .gx-zoom, .gx-tile:focus-visible .gx-zoom { opacity: 1; transform: none; }

@keyframes gx-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* ---------- Videos ---------- */
.gx-videos { padding: 46px 0 70px; background: var(--gx-bg); }

.gx-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gx-video {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gx-navy);
    box-shadow: 0 14px 30px -22px rgba(2, 14, 42, .7);
    cursor: pointer;
}

.gx-video video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }

.gx-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 14, 42, .1), rgba(2, 14, 42, .55));
    color: #fff;
    cursor: pointer;
}

.gx-play span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gx-red);
    font-size: 22px;
    padding-left: 4px;
    box-shadow: 0 0 0 0 rgba(237, 27, 36, .55);
    animation: gx-pulse 2.4s ease-out infinite;
    transition: transform .3s;
}

.gx-video:hover .gx-play span { transform: scale(1.1); }
.gx-video.is-playing .gx-play { display: none; }

@keyframes gx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(237, 27, 36, .55); }
    70% { box-shadow: 0 0 0 18px rgba(237, 27, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(237, 27, 36, 0); }
}

/* ---------- Call to action ---------- */
.gx-cta { padding: 0 0 70px; background: var(--gx-bg); }

.gx-cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 38px 44px;
    border-radius: 22px;
    background: linear-gradient(120deg, var(--gx-navy), var(--gx-navy-2));
    color: #fff;
    box-shadow: 0 30px 60px -30px rgba(2, 14, 42, .7);
}

.gx-cta-box h3 { margin: 0 0 6px; color: #fff; font: 800 26px/1.2 'Montserrat', sans-serif; }
.gx-cta-box p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15.5px; }

.gx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.gx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font: 700 14.5px/1 'Montserrat', sans-serif;
    transition: transform .25s, background .25s;
}

.gx-btn:hover { transform: translateY(-2px); text-decoration: none; }
.gx-btn-red { background: var(--gx-red); color: #fff; }
.gx-btn-red:hover { background: #c9151d; color: #fff; }
.gx-btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.gx-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Lightbox ---------- */
.gx-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: rgba(2, 8, 22, .94);
    backdrop-filter: blur(6px);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s linear .3s;
}

.gx-lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }

.gx-lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.gx-lb-count { font: 600 14px/1 'Montserrat', sans-serif; color: rgba(255, 255, 255, .75); }

.gx-lb button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background .25s;
}

.gx-lb button:hover { background: var(--gx-red); }

.gx-lb-stage {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 0;
}

.gx-lb-figure { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }

.gx-lb-figure img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    border-radius: 10px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    animation: gx-zoom .35s ease;
}

@keyframes gx-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.gx-lb-cap { padding: 16px 20px 24px; text-align: center; }
.gx-lb-cap em {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gx-red);
    font: 700 11px/1.4 'Montserrat', sans-serif;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.gx-lb-cap strong { display: block; font: 700 18px/1.3 'Montserrat', sans-serif; }

body.gx-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .gx-grid { grid-auto-rows: 190px; }
}

@media (max-width: 991px) {
    .gx-hero { padding: 64px 0 56px; }
    .gx-hero h1 { font-size: 40px; }
    .gx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gx-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .gx-hero { padding: 48px 0 44px; }
    .gx-hero h1 { font-size: 32px; }
    .gx-hero p { font-size: 15px; }
    .gx-stat { padding: 8px 12px; font-size: 13px; }
    .gx-section-head h2 { font-size: 25px; }
    .gx-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .gx-filters::-webkit-scrollbar { display: none; }
    .gx-filter { flex: none; }
    .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
    .gx-tile { border-radius: 12px; }
    .gx-tile.gx-m-1x1 { grid-column: auto; grid-row: auto; }
    .gx-cap { left: 10px; right: 10px; bottom: 9px; transform: none; }
    .gx-cap strong { font-size: 12.5px; }
    .gx-tile.is-big .gx-cap strong { font-size: 15px; }
    .gx-cap em { display: none; }
    .gx-video-grid { grid-template-columns: 1fr; }
    .gx-cta-box { padding: 28px 22px; }
    .gx-lb-stage { grid-template-columns: 1fr; padding: 0 8px; }
    .gx-lb-prev, .gx-lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; }
    .gx-lb-prev { left: 10px; }
    .gx-lb-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .gx-tile, .gx-lb-figure img, .gx-play span { animation: none; }
    .gx-tile img { transition: none; }
}
