

:root {
    --container-max: 1400px;
    --pad-x: clamp(15px, 3.2vw, 40px);
    --section-space: 60px;
}

@media screen and (max-width: 1024px) {
    :root { --section-space: 45px; }
}

@media screen and (max-width: 767px) {
    :root { --section-space: 40px; }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.gal-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 21, 43, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--pad-x);
}

.gal-banner-overlay h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(20px, 4vw + 8px, 56px);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-align: center;
    letter-spacing: -1px;
    padding: 0 20px;
    line-height: 1.15;
}

.Gallery {
    background-image: url("../photos/gallery--background.jpg");
    position: relative;
    width: 100%;
    height: clamp(180px, 22vw, 320px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gal-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.gal-section-title {
    text-align: center;
    margin: var(--section-space) 0 clamp(24px, 4vw, 50px);
}

.gal-section-title p {
    font-size: 18px;
    margin-top: 15px;
}

.gal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: var(--section-space);
}

.gal-thumb {
    text-decoration: none;
}

.gal-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: .4s;
    cursor: zoom-in;
}

.gal-card:hover {
    transform: translateY(-8px);
}

.gal-card img {
    width: 100%;
    height: 230px;
    /* object-fit: cover; */
    object-position: center;
    display: block;
}

.gal-lightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(2, 21, 43, 0.92);
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
    box-sizing: border-box;
}

.gal-lightbox-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gal-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.gal-lightbox-overlay.active img {
    transform: scale(1);
}

.gal-lightbox-close {
    position: absolute;
    top: clamp(10px, 1.5vw, 25px);
    right: clamp(10px, 2vw, 35px);
    width: clamp(30px, 4vw, 44px);
    height: clamp(30px, 4vw, 44px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    font-size: clamp(14px, 1.5vw, 20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gal-lightbox-close:hover {
    background: #FEB73E;
    color: #082A4D;
}

.gal-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(36px, 4vw, 48px);
    height: clamp(36px, 4vw, 48px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    font-size: clamp(14px, 1.3vw, 18px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.gal-lightbox-nav:hover {
    background: #FEB73E;
    color: #082A4D;
}

.gal-lightbox-prev {
    left: clamp(10px, 2vw, 25px);
}

.gal-lightbox-next {
    right: clamp(10px, 2vw, 25px);
}

.gal-lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.gal-cta {
    text-align: center;
    background: #ff6600;
    color: white;
    padding: var(--section-space) var(--pad-x);
}

.gal-cta h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: clamp(24px, 2vw + 18px, 42px);
    margin: 0;
    line-height: 1.25;
}

.gal-cta p {
    max-width: 700px;
    margin: auto;
    margin-bottom: 25px;
}

.gal-btn {
    display: inline-block;
    padding: clamp(12px, 1.2vw, 15px) clamp(24px, 2.6vw, 35px);
    background: white;
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: .3s;
}

.gal-btn:hover {
    background: #0f172a;
    color: white;
}


/* ==========================================================
   STRUCTURAL BREAKPOINTS — matches sitewide scale exactly
   (1024 / 991 / 767 / 480 / 320)
========================================================== */

@media screen and (max-width: 1024px) {
    .gal-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .gal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .gal-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .gal-lightbox-prev, .gal-lightbox-next {
        display: none;
    }
}