/* ==================================================
   GALLERY PAGE
================================================== */

/* ==================================================
   1. GALLERY HERO
================================================== */

.gallery-hero {
    min-height: 520px;
    padding: 110px 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            rgba(20,30,50,.62),
            rgba(20,30,50,.62)
        ),
        url("images/gallery_hero.jpg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    color: var(--ns-white);
    text-align: center;
}

.gallery-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-label {
    display: inline-block;
    color: var(--ns-red);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.gallery-hero .gallery-label {
    color: var(--ns-white);
}

.gallery-hero h1 {
    color: var(--ns-white);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    margin-bottom: 34px;
}

/* ==================================================
   2. GALLERY INTRO
================================================== */

.gallery-intro {
    padding: 90px 0 60px;
    background: var(--ns-white);
    text-align: center;
}

.gallery-intro .container {
    max-width: 850px;
}

.gallery-intro h2 {
    color: var(--ns-blue);
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gallery-intro p {
    color: #5f668f;
    font-size: 17px;
    line-height: 1.7;
    margin: 0 auto;
}

/* ==================================================
   3. PROJECT SECTIONS
================================================== */

.gallery-project {
    padding: 80px 0;
    background: var(--ns-white);
    border-bottom: 1px solid rgba(47,57,118,.12);
}

.gallery-project:nth-of-type(even) {
    background: var(--ns-light);
}

.gallery-project-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}

.gallery-project-content h2 {
    color: var(--ns-blue);
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.project-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ns-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-location .material-symbols-outlined {
    font-size: 18px;
}

.gallery-project-content p {
    color: #4f5d8c;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-services {
    margin-top: 28px;
}

.project-services > span {
    display: block;
    color: var(--ns-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.project-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-services li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #4f5d8c;
    font-size: 15px;
    line-height: 1.5;
}

.project-services li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ns-red);
    font-weight: 900;
}

/* ==================================================
   4. PROJECT IMAGES
================================================== */

.gallery-project-images {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 190px;
    gap: 12px;
    height: 445px;
}

.project-main-image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.project-side-images {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.project-side-images a {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.project-main-image img,
.project-side-images img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.project-main-image:hover img,
.project-side-images a:hover img {
    transform: scale(1.04);
}

/* ==================================================
   5. GALLERY CTA
================================================== */

.gallery-cta {
    padding: 70px 0;
    background:
        linear-gradient(
            rgba(255,255,255,.35),
            rgba(255,255,255,.35)
        ),
        url("images/cta_background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.gallery-cta-content {
    max-width: 820px;
    margin: 0 auto;
}

.gallery-cta-label {
    display: inline-block;
    color: var(--ns-red);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.gallery-cta h2 {
    color: var(--ns-blue);
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gallery-cta p {
    max-width: 720px;
    margin: 0 auto 34px;
    color: var(--ns-blue);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.gallery-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.gallery-cta-primary,
.gallery-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.gallery-cta-primary {
    background: var(--ns-red);
    color: var(--ns-white);
}

.gallery-cta-primary:hover {
    background: var(--ns-red-dark);
    transform: translateY(-2px);
}

.gallery-cta-secondary {
    border: 2px solid var(--ns-blue);
    color: var(--ns-blue);
}

.gallery-cta-secondary:hover {
    background: var(--ns-blue);
    color: var(--ns-white);
}

/* ==================================================
   6. GLIGHTBOX CLOSE BUTTON
================================================== */

.glightbox-container .gclose {
    position: fixed !important;
    top: 22px !important;
    right: 22px !important;
    z-index: 9999999 !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,.85) !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.65) !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

.glightbox-container .gclose svg {
    display: none !important;
}

.glightbox-container .gclose::before {
    content: "×";
    color: #fff;
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
}

.glightbox-container .gclose:hover {
    background: var(--ns-red) !important;
    border-color: var(--ns-red) !important;
}

/* ==================================================
   7. GALLERY RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .gallery-project-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .gallery-project-content {
        max-width: 760px;
    }
}

@media (max-width: 768px) {

    .gallery-hero {
        min-height: 460px;
        padding: 90px 0;
    }

    .gallery-hero h1 {
        font-size: 40px;
    }

    .gallery-intro {
        padding: 70px 0 45px;
    }

    .gallery-intro h2 {
        font-size: 34px;
    }

    .gallery-project {
        padding: 60px 0;
    }

    .gallery-project-images {
        display: block;
        width: 100%;
        height: auto;
    }

    .project-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 8px;
    }

    .project-side-images {
        height: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 8px;
    }

    .project-side-images a {
        height: 130px;
    }

    .gallery-cta {
        padding: 70px 0;
    }

    .gallery-cta h2 {
        font-size: 36px;
    }
}

@media (max-width: 520px) {

    .gallery-hero {
        min-height: 430px;
        padding: 80px 0;
    }

    .gallery-hero h1 {
        font-size: 34px;
    }

    .gallery-intro h2 {
        font-size: 30px;
    }

    .gallery-project {
        padding: 50px 0;
    }

    .gallery-project-content h2 {
        font-size: 25px;
    }

    .project-main-image {
        aspect-ratio: 4 / 3;
    }

    .project-side-images {
        gap: 5px;
    }

    .project-side-images a {
        height: 100px;
    }

    .gallery-cta h2 {
        font-size: 32px;
    }

    .gallery-cta p {
        font-size: 16px;
    }

    .gallery-cta-buttons {
        flex-direction: column;
    }

    .gallery-cta-primary,
    .gallery-cta-secondary {
        width: 100%;
    }
}