﻿/* ==========================================================
   ADPRINT ADVERTISING
   PUBLIC GALLERY
   COMPLETE CSS REPLACEMENT
   ========================================================== */

:root {
    --gallery-navy: #0b2f53;
    --gallery-navy-dark: #082542;
    --gallery-blue: #1d5b8d;
    --gallery-bg: #f5f7fa;
    --gallery-white: #ffffff;
    --gallery-text: #163453;
    --gallery-muted: #708198;
    --gallery-border: #dce4ec;
    --gallery-soft: #edf3f8;
    --gallery-radius: 18px;
    --gallery-transition: 0.25s ease;
    --gallery-shadow: 0 20px 60px rgba(4, 28, 50, 0.20);
}


/* ==========================================================
   HERO
   ========================================================== */

.galleryHero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url("../Images/Banners/GalleryBanner.jpeg") center center / cover no-repeat;
}


.galleryHeroOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(5, 24, 42, 0.84), rgba(8, 45, 77, 0.56) );
}


.galleryHeroContent {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 95px 0;
    color: #ffffff;
}


.galleryHeroLabel {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    opacity: 0.88;
}


.galleryHeroContent h1 {
    margin: 0 0 18px;
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
}


.galleryHeroContent p {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    line-height: 1.8;
}


/* ==========================================================
   INTRO
   ========================================================== */

.galleryIntro {
    padding: 75px 0 35px;
    background: var(--gallery-bg);
}


.gallerySectionHeading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}


    .gallerySectionHeading > span {
        display: inline-block;
        margin-bottom: 10px;
        color: var(--gallery-blue);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .gallerySectionHeading h2 {
        margin: 0 0 14px;
        color: var(--gallery-navy);
        font-size: 38px;
        line-height: 1.25;
        font-weight: 700;
    }


    .gallerySectionHeading p {
        margin: 0 auto;
        max-width: 650px;
        color: var(--gallery-muted);
        font-size: 16px;
        line-height: 1.8;
    }


/* ==========================================================
   PROJECTS
   ========================================================== */

.galleryProjects {
    padding: 25px 0 90px;
    background: var(--gallery-bg);
}


.galleryProjectGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


.galleryProjectCard {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--gallery-white);
    border: 1px solid rgba(10,45,78,0.07);
    border-radius: var(--gallery-radius);
    box-shadow: 0 15px 45px rgba(8,39,68,0.10);
    cursor: pointer;
    transition: transform var(--gallery-transition), box-shadow var(--gallery-transition);
}


    .galleryProjectCard:hover {
        transform: translateY(-7px);
        box-shadow: 0 25px 55px rgba(8,39,68,0.17);
    }


.galleryProjectImage {
    position: relative;
    width: 100%;
    height: 245px;
    overflow: hidden;
    background: var(--gallery-navy);
}


.galleryProjectImageElement {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}


.galleryProjectCard:hover .galleryProjectImageElement {
    transform: scale(1.06);
}


.galleryProjectContent {
    padding: 27px 26px 29px;
}


.galleryProjectTitleRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}


    .galleryProjectTitleRow h3 {
        margin: 0;
        color: var(--gallery-navy);
        font-size: 24px;
        line-height: 1.3;
        font-weight: 700;
    }


.galleryProjectArrow {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef4f9;
    color: var(--gallery-navy);
    transition: background var(--gallery-transition), color var(--gallery-transition);
}


.galleryProjectCard:hover .galleryProjectArrow {
    background: var(--gallery-navy);
    color: #ffffff;
}


.galleryProjectDescription {
    min-height: 52px;
    margin: 17px 0 24px;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.75;
}


.galleryExploreButton {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gallery-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}


    .galleryExploreButton i {
        margin-left: 7px;
        transition: transform var(--gallery-transition);
    }


    .galleryExploreButton:hover i {
        transform: translateX(5px);
    }


/* ==========================================================
   NO PROJECTS
   ========================================================== */

.galleryNoProjects {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 65px 35px;
    text-align: center;
    background: var(--gallery-white);
    border-radius: var(--gallery-radius);
    box-shadow: 0 15px 45px rgba(8,39,68,0.10);
}


.galleryNoProjectsIcon {
    margin-bottom: 20px;
    color: var(--gallery-blue);
    font-size: 45px;
}


.galleryNoProjects h3 {
    margin: 0 0 12px;
    color: var(--gallery-navy);
    font-size: 28px;
}


.galleryNoProjects p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   GALLERY MODAL
   ========================================================== */

.projectGalleryModal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


    .projectGalleryModal.active {
        display: flex;
    }


.projectGalleryBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 22, 36, 0.82);
    backdrop-filter: blur(4px);
}


.projectGalleryDialog {
    position: relative;
    z-index: 2;
    width: min(1485px, 96vw);
    height: min(780px, 90vh);
    min-height: 560px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 35px 90px rgba(0,0,0,0.32);
}


/* ==========================================================
   MODAL HEADER
   ========================================================== */

.projectGalleryHeader {
    flex: 0 0 auto;
    min-height: 182px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 42px;
    background: linear-gradient( 135deg, #0a2c4c, #18537f );
    color: #ffffff;
}


.projectGalleryHeaderText {
    min-width: 0;
}


.projectGalleryEyebrow {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.76);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.projectGalleryHeader h2 {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.projectGalleryHeader p {
    margin: 12px 0 0;
    color: rgba(255,255,255,0.84);
    font-size: 16px;
    line-height: 1.5;
}


.projectGalleryClose {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: background var(--gallery-transition), transform var(--gallery-transition);
}


    .projectGalleryClose:hover {
        background: rgba(255,255,255,0.12);
        transform: rotate(90deg);
    }


/* ==========================================================
   MODAL BODY
   ========================================================== */

.projectGalleryBody {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 354px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
}


/* ==========================================================
   LEFT LOCATION PANEL
   ========================================================== */

.galleryLocationPanel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 38px 30px 30px;
    background: #f7f9fb;
    border-right: 1px solid var(--gallery-border);
}


.galleryLocationPanelHeader {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}


.galleryPanelEyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--gallery-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


.galleryLocationPanelHeader h3 {
    margin: 0;
    color: var(--gallery-navy);
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}


.galleryLocationCount {
    flex: 0 0 auto;
    padding: 11px 15px;
    border-radius: 30px;
    background: #eaf2f8;
    color: var(--gallery-blue);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* ==========================================================
   LOCATION SEARCH
   ========================================================== */

.galleryLocationSearch {
    position: relative;
    flex: 0 0 auto;
    margin-top: 30px;
}


    .galleryLocationSearch i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #8090a3;
        font-size: 15px;
        pointer-events: none;
    }


    .galleryLocationSearch input {
        width: 100%;
        height: 61px;
        padding: 0 18px 0 51px;
        border: 1px solid #d7e0e9;
        border-radius: 14px;
        outline: none;
        background: #ffffff;
        color: var(--gallery-text);
        font-family: inherit;
        font-size: 15px;
        box-sizing: border-box;
        transition: border-color var(--gallery-transition), box-shadow var(--gallery-transition);
    }


        .galleryLocationSearch input::placeholder {
            color: #8492a4;
        }


        .galleryLocationSearch input:focus {
            border-color: #9dbbd2;
            box-shadow: 0 0 0 4px rgba(29,91,141,0.08);
        }


/* ==========================================================
   LOCATION LIST
   ========================================================== */

.galleryLocationList {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: 23px;
    padding: 0 3px 20px 0;
}


    .galleryLocationList::-webkit-scrollbar {
        width: 6px;
    }


    .galleryLocationList::-webkit-scrollbar-track {
        background: transparent;
    }


    .galleryLocationList::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #cbd6e1;
    }


/* ==========================================================
   LOCATION ITEM
   ========================================================== */

.galleryLocationItem {
    width: 100%;
    min-height: 83px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 11px 12px 11px 15px;
    border: 1px solid #cbd9e6;
    border-radius: 16px;
    background: #ffffff;
    color: var(--gallery-text);
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color var(--gallery-transition), box-shadow var(--gallery-transition), transform var(--gallery-transition);
}


    .galleryLocationItem:hover {
        border-color: #a9c6dd;
        box-shadow: 0 8px 22px rgba(13,56,91,0.08);
        transform: translateY(-1px);
    }


    .galleryLocationItem.active {
        border-color: #a9c8e1;
        box-shadow: 0 9px 25px rgba(12,57,93,0.09);
    }


.galleryLocationIcon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0a3155;
    color: #ffffff;
    font-size: 17px;
}


.galleryLocationItemText {
    min-width: 0;
    flex: 1 1 auto;
}


.galleryLocationItemTitle {
    display: block;
    overflow: hidden;
    color: var(--gallery-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.galleryLocationItemPhotos {
    display: block;
    margin-top: 5px;
    color: #738399;
    font-size: 13px;
    line-height: 1.3;
}


.galleryLocationItemArrow {
    flex: 0 0 18px;
    color: var(--gallery-blue);
    font-size: 15px;
}


/* ==========================================================
   NO LOCATIONS
   ========================================================== */

.galleryNoLocations {
    flex: 1 1 auto;
    min-height: 260px;
    margin-top: 30px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #d1dce7;
    border-radius: 17px;
    background: #f9fbfc;
}


.galleryNoLocationsIcon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: #edf3f8;
    color: var(--gallery-blue);
    font-size: 23px;
}


.galleryNoLocations h4 {
    margin: 0 0 10px;
    color: var(--gallery-navy);
    font-size: 20px;
}


.galleryNoLocations p {
    max-width: 220px;
    margin: 0;
    color: #7a899b;
    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   RIGHT IMAGE PANEL
   ========================================================== */

.galleryImagePanel {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 43px 38px 40px;
    background: #ffffff;
}


    .galleryImagePanel::-webkit-scrollbar {
        width: 7px;
    }


    .galleryImagePanel::-webkit-scrollbar-track {
        background: transparent;
    }


    .galleryImagePanel::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: #cbd6e1;
    }


/* ==========================================================
   SELECTED LOCATION HEADER
   ========================================================== */

.gallerySelectedLocationHeader {
    min-height: 96px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}


    .gallerySelectedLocationHeader h3 {
        margin: 0;
        color: #0a3155;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
    }


    .gallerySelectedLocationHeader p {
        margin: 12px 0 0;
        color: #718198;
        font-size: 15px;
        line-height: 1.6;
    }


.galleryPhotoCount {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 28px;
    background: #edf4f9;
    color: #0a3155;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


    .galleryPhotoCount i {
        color: var(--gallery-blue);
        font-size: 15px;
    }


/* ==========================================================
   DIVIDER
   ========================================================== */

.gallerySelectedDivider {
    height: 1px;
    margin: 24px 0 36px;
    background: #dfe6ed;
}


/* ==========================================================
   IMAGE GRID
   ========================================================== */

.projectGalleryGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


.projectGalleryImage {
    position: relative;
    width: 100%;
    height: 225px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background: #edf1f5;
    cursor: pointer;
}


    .projectGalleryImage img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform 0.5s ease;
    }


    .projectGalleryImage:hover img {
        transform: scale(1.045);
    }


/* ==========================================================
   STATES
   ========================================================== */

.projectGalleryState {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


    .projectGalleryState p {
        margin: 12px 0 0;
        color: #738299;
        font-size: 15px;
    }


    .projectGalleryState h3 {
        margin: 18px 0 0;
        color: var(--gallery-navy);
        font-size: 24px;
    }


.galleryEmptyIcon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf4f9;
    color: var(--gallery-blue);
    font-size: 29px;
}


.galleryLoader {
    width: 38px;
    height: 38px;
    border: 3px solid #dce5ed;
    border-top-color: var(--gallery-blue);
    border-radius: 50%;
    animation: gallerySpin 0.8s linear infinite;
}


/* ==========================================================
   LIGHTBOX
   ========================================================== */

.galleryLightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}


    .galleryLightbox.active {
        display: flex;
    }


.galleryLightboxBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.90);
}


.galleryLightboxContent {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


    .galleryLightboxContent img {
        max-width: 90vw;
        max-height: 82vh;
        display: block;
        object-fit: contain;
        border-radius: 7px;
        box-shadow: 0 25px 70px rgba(0,0,0,0.40);
    }


.galleryLightboxCaption {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    color: #ffffff;
    font-size: 13px;
}


.galleryLightboxClose,
.galleryLightboxPrevious,
.galleryLightboxNext {
    position: absolute;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--gallery-transition), transform var(--gallery-transition);
}


.galleryLightboxClose {
    top: 25px;
    right: 25px;
}


.galleryLightboxPrevious {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}


.galleryLightboxNext {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}


    .galleryLightboxClose:hover,
    .galleryLightboxPrevious:hover,
    .galleryLightboxNext:hover {
        background: rgba(255,255,255,0.18);
    }


.galleryLightboxPrevious:hover {
    transform: translateY(-50%) translateX(-3px);
}


.galleryLightboxNext:hover {
    transform: translateY(-50%) translateX(3px);
}


/* ==========================================================
   BODY LOCK
   ========================================================== */

body.galleryModalOpen,
body.galleryLightboxOpen {
    overflow: hidden;
}


/* ==========================================================
   ANIMATION
   ========================================================== */

@keyframes gallerySpin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .projectGalleryBody {
        grid-template-columns: 310px minmax(0, 1fr);
    }

    .galleryLocationPanel {
        padding-left: 24px;
        padding-right: 24px;
    }

    .galleryImagePanel {
        padding-left: 28px;
        padding-right: 28px;
    }

    .projectGalleryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .galleryProjectGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projectGalleryModal {
        padding: 15px;
    }

    .projectGalleryDialog {
        width: 96vw;
        height: 92vh;
        min-height: 0;
        border-radius: 20px;
    }

    .projectGalleryHeader {
        min-height: 150px;
        padding: 27px 30px;
    }

        .projectGalleryHeader h2 {
            font-size: 31px;
        }

    .projectGalleryBody {
        grid-template-columns: 285px minmax(0, 1fr);
    }

    .galleryLocationPanel {
        padding: 28px 20px 20px;
    }

    .galleryLocationPanelHeader h3 {
        font-size: 23px;
    }

    .galleryLocationCount {
        padding: 9px 11px;
        font-size: 12px;
    }

    .gallerySelectedLocationHeader h3 {
        font-size: 28px;
    }

    .galleryImagePanel {
        padding: 32px 24px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .galleryHero {
        min-height: 330px;
    }

    .galleryHeroContent {
        padding: 70px 0;
    }

        .galleryHeroContent h1 {
            font-size: 36px;
        }

        .galleryHeroContent p {
            font-size: 15px;
        }

    .galleryIntro {
        padding: 55px 0 25px;
    }

    .gallerySectionHeading h2 {
        font-size: 31px;
    }

    .galleryProjectGrid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .galleryProjectImage {
        height: 225px;
    }

    .projectGalleryModal {
        padding: 8px;
    }

    .projectGalleryDialog {
        width: 98vw;
        height: 95vh;
        border-radius: 17px;
    }

    .projectGalleryHeader {
        min-height: 125px;
        padding: 23px 20px;
    }

    .projectGalleryEyebrow {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .projectGalleryHeader h2 {
        font-size: 25px;
    }

    .projectGalleryHeader p {
        font-size: 13px;
    }

    .projectGalleryClose {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .projectGalleryBody {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .galleryLocationPanel {
        flex: 0 0 auto;
        max-height: 290px;
        padding: 23px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--gallery-border);
    }

    .galleryLocationSearch {
        margin-top: 18px;
    }

        .galleryLocationSearch input {
            height: 51px;
        }

    .galleryLocationList {
        max-height: 120px;
        margin-top: 15px;
    }

    .galleryLocationItem {
        min-height: 70px;
    }

    .galleryLocationIcon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .galleryImagePanel {
        flex: 1 1 auto;
        overflow: visible;
        padding: 25px 18px 30px;
    }

    .gallerySelectedLocationHeader {
        display: block;
    }

        .gallerySelectedLocationHeader h3 {
            font-size: 25px;
        }

    .galleryPhotoCount {
        margin-top: 16px;
    }

    .gallerySelectedDivider {
        margin: 22px 0 25px;
    }

    .projectGalleryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .projectGalleryImage {
        height: 175px;
    }

    .projectGalleryState {
        min-height: 240px;
    }

    .galleryLightbox {
        padding: 15px;
    }

    .galleryLightboxContent img {
        max-width: 94vw;
        max-height: 78vh;
    }

    .galleryLightboxPrevious,
    .galleryLightboxNext {
        width: 42px;
        height: 42px;
    }

    .galleryLightboxPrevious {
        left: 10px;
    }

    .galleryLightboxNext {
        right: 10px;
    }

    .galleryLightboxClose {
        top: 12px;
        right: 12px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .galleryHero {
        min-height: 285px;
    }

    .galleryHeroContent {
        padding: 55px 0;
    }

        .galleryHeroContent h1 {
            font-size: 29px;
        }

        .galleryHeroContent p {
            font-size: 14px;
        }

    .gallerySectionHeading h2 {
        font-size: 26px;
    }

    .galleryProjectContent {
        padding: 22px;
    }

    .galleryProjectImage {
        height: 205px;
    }

    .projectGalleryHeader h2 {
        font-size: 21px;
    }

    .projectGalleryBody {
        display: flex;
    }

    .galleryLocationPanel {
        max-height: 275px;
    }

    .gallerySelectedLocationHeader h3 {
        font-size: 22px;
    }

    .projectGalleryGrid {
        grid-template-columns: 1fr;
    }

    .projectGalleryImage {
        height: 210px;
    }
}


/* ==========================================================
   GALLERY MODAL
   COMPACT MEDIA VIEWER LAYOUT
   ========================================================== */

/* ----------------------------------------------------------
   MODAL OUTER CONTAINER
   ---------------------------------------------------------- */

.projectGalleryModal {
    padding: 25px;
}


/* ----------------------------------------------------------
   MAIN MODAL

   Instagram-inspired proportions:
   compact, centered and media-focused.
   ---------------------------------------------------------- */

.projectGalleryDialog {
    width: min(1240px, calc(100vw - 50px));
    height: min(720px, calc(100vh - 70px));
    max-height: none;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}


/* ----------------------------------------------------------
   HEADER

   Smaller than current version.
   ---------------------------------------------------------- */

.projectGalleryHeader {
    min-height: 118px;
    padding: 23px 30px;
    gap: 20px;
}


/* Small portfolio label */

.projectGalleryEyebrow {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 1.8px;
}


/* Main modal heading */

.projectGalleryHeader h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
}


/* Subtitle */

.projectGalleryHeader p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}


/* Close button */

.projectGalleryClose {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    font-size: 18px;
}


/* ==========================================================
   MODAL BODY
   ========================================================== */

.projectGalleryBody {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}


/* ==========================================================
   LEFT LOCATION PANEL
   ========================================================== */

.galleryLocationPanel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 28px 20px 22px;
    border-right: 1px solid var(--gallery-border);
    background: #f7f9fb;
}


/* Location heading */

.galleryLocationPanelHeader h3 {
    font-size: 23px;
    line-height: 1.2;
}


/* Location eyebrow */

.galleryPanelEyebrow {
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: 1.7px;
}


/* Location count */

.galleryLocationCount {
    padding: 8px 11px;
    font-size: 11px;
}


/* Search */

.galleryLocationSearch {
    margin-top: 20px;
}


    .galleryLocationSearch input {
        height: 50px;
        font-size: 14px;
    }


/* Location list */

.galleryLocationList {
    margin-top: 17px;
}


/* Location item */

.galleryLocationItem {
    min-height: 70px;
    margin-bottom: 10px;
    padding: 9px 10px 9px 12px;
    border-radius: 14px;
}


/* Location icon */

.galleryLocationIcon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
}


/* Location title */

.galleryLocationItemTitle {
    font-size: 14px;
}


/* Location photo count */

.galleryLocationItemPhotos {
    margin-top: 4px;
    font-size: 12px;
}


/* ==========================================================
   RIGHT IMAGE AREA
   ========================================================== */

.galleryImagePanel {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 30px 30px;
    background: #ffffff;
}


/* ----------------------------------------------------------
   SELECTED LOCATION HEADER

   This is deliberately much smaller.
   ---------------------------------------------------------- */

.gallerySelectedLocationHeader {
    min-height: 70px;
    gap: 18px;
}


    /* "SELECTED LOCATION" */

    .gallerySelectedLocationHeader .galleryPanelEyebrow {
        margin-bottom: 6px;
        font-size: 10px;
    }


    /* Location title */

    .gallerySelectedLocationHeader h3 {
        margin: 0;
        font-size: 25px;
        line-height: 1.2;
    }


    /* Location description */

    .gallerySelectedLocationHeader p {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.5;
    }


/* Photo count */

.galleryPhotoCount {
    padding: 10px 15px;
    font-size: 12px;
}


/* Divider */

.gallerySelectedDivider {
    margin: 18px 0 24px;
}


/* ==========================================================
   IMAGE GRID

   IMPORTANT:
   2 columns instead of 3.

   This makes each image substantially larger,
   similar to a media-viewer experience.
   ========================================================== */

.projectGalleryGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* ----------------------------------------------------------
   IMAGE CARD
   ---------------------------------------------------------- */

.projectGalleryImage {
    width: 100%;
    height: 265px;
    border-radius: 14px;
    overflow: hidden;
}


    /* Image itself */

    .projectGalleryImage img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.45s ease;
    }


    .projectGalleryImage:hover img {
        transform: scale(1.045);
    }


/* ==========================================================
   LOADING / EMPTY STATE
   ========================================================== */

.projectGalleryState {
    min-height: 300px;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .projectGalleryDialog {
        width: min( 1180px, calc(100vw - 35px) );
        height: min( 700px, calc(100vh - 55px) );
    }


    .projectGalleryBody {
        grid-template-columns: 270px minmax(0, 1fr);
    }


    .galleryImagePanel {
        padding-left: 25px;
        padding-right: 25px;
    }


    .projectGalleryImage {
        height: 250px;
    }
}


/* ==========================================================
   MOBILE / TABLET
   ========================================================== */

@media (max-width: 767px) {

    .projectGalleryModal {
        padding: 10px;
    }


    .projectGalleryDialog {
        width: 98vw;
        height: 94vh;
        border-radius: 17px;
    }


    .projectGalleryHeader {
        min-height: 105px;
        padding: 20px;
    }


        .projectGalleryHeader h2 {
            font-size: 23px;
        }


        .projectGalleryHeader p {
            font-size: 12px;
        }


    .projectGalleryClose {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }


    .projectGalleryBody {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }


    .galleryLocationPanel {
        flex: 0 0 auto;
        max-height: 255px;
        padding: 20px 17px;
        border-right: 0;
        border-bottom: 1px solid var(--gallery-border);
    }


    .galleryLocationSearch {
        margin-top: 15px;
    }


    .galleryLocationList {
        max-height: 105px;
        margin-top: 12px;
    }


    .galleryImagePanel {
        flex: 1 1 auto;
        overflow: visible;
        padding: 22px 17px 28px;
    }


    .gallerySelectedLocationHeader {
        display: block;
        min-height: 0;
    }


        .gallerySelectedLocationHeader h3 {
            font-size: 23px;
        }


    .galleryPhotoCount {
        margin-top: 12px;
    }


    .gallerySelectedDivider {
        margin: 17px 0 20px;
    }


    .projectGalleryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }


    .projectGalleryImage {
        height: 180px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .projectGalleryDialog {
        height: 95vh;
    }


    .projectGalleryHeader {
        min-height: 95px;
        padding: 17px;
    }


        .projectGalleryHeader h2 {
            font-size: 20px;
        }


        .projectGalleryHeader p {
            font-size: 11px;
        }


    .galleryLocationPanel {
        max-height: 245px;
    }


    .gallerySelectedLocationHeader h3 {
        font-size: 21px;
    }


    .projectGalleryGrid {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .projectGalleryImage {
        height: 205px;
    }
}


/* ==========================================================
   ADPRINT GALLERY
   FINAL DESKTOP MEDIA VIEWER REFINEMENT
   ----------------------------------------------------------
   UI requirements:
   - Slightly larger modal than Instagram-style version
   - Wider location panel
   - Full location name visible
   - 4 images per row on desktop
   - 3 images per row on smaller desktop/tablet
   - 2 images per row on mobile
   - Smaller right-side heading
   - Existing Gallery HTML / JS / DB untouched
   ========================================================== */


/* ==========================================================
   MODAL
   ========================================================== */

.projectGalleryModal {
    padding: 25px;
}


/* Main gallery window */

.projectGalleryDialog {
    width: min(1380px, calc(100vw - 50px));
    height: min(720px, calc(100vh - 70px));
    max-height: none;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}


/* ==========================================================
   HEADER
   ========================================================== */

.projectGalleryHeader {
    min-height: 118px;
    padding: 23px 30px;
    gap: 20px;
}


/* Portfolio label */

.projectGalleryEyebrow {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 1.8px;
}


/* Main title */

.projectGalleryHeader h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
}


/* Subtitle */

.projectGalleryHeader p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
}


/* Close button */

.projectGalleryClose {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    font-size: 18px;
}


/* ==========================================================
   MODAL BODY
   ========================================================== */

.projectGalleryBody {
    display: grid;
    grid-template-columns: 325px minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}


/* ==========================================================
   LEFT LOCATION PANEL
   ========================================================== */

.galleryLocationPanel {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 28px 22px 22px;
    border-right: 1px solid var(--gallery-border);
    background: #f7f9fb;
}


/* Location heading */

.galleryLocationPanelHeader h3 {
    font-size: 24px;
    line-height: 1.2;
}


/* Campaign locations label */

.galleryPanelEyebrow {
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: 1.7px;
}


/* Location count */

.galleryLocationCount {
    padding: 8px 11px;
    font-size: 11px;
}


/* ==========================================================
   LOCATION SEARCH
   ========================================================== */

.galleryLocationSearch {
    margin-top: 20px;
}


    .galleryLocationSearch input {
        height: 51px;
        font-size: 14px;
    }


/* ==========================================================
   LOCATION LIST
   ========================================================== */

.galleryLocationList {
    margin-top: 17px;
}


/* ==========================================================
   LOCATION ITEM
   ========================================================== */

.galleryLocationItem {
    min-height: 72px;
    margin-bottom: 10px;
    padding: 9px 10px 9px 12px;
    border-radius: 14px;
}


/* Location icon */

.galleryLocationIcon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    font-size: 15px;
}


/* Location text */

.galleryLocationItemText {
    min-width: 0;
    flex: 1 1 auto;
}


/*
   IMPORTANT:
   Do not force the location title into a single line.
   This prevents names such as
   "Mumbai - All Location"
   from being unnecessarily clipped.
*/

.galleryLocationItemTitle {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gallery-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}


/* Location photo count */

.galleryLocationItemPhotos {
    margin-top: 4px;
    font-size: 12px;
}


/* ==========================================================
   RIGHT IMAGE PANEL
   ========================================================== */

.galleryImagePanel {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 28px 30px;
    background: #ffffff;
}


/* ==========================================================
   SELECTED LOCATION HEADER
   ========================================================== */

.gallerySelectedLocationHeader {
    min-height: 70px;
    gap: 18px;
}


    /* Selected-location label */

    .gallerySelectedLocationHeader .galleryPanelEyebrow {
        margin-bottom: 6px;
        font-size: 10px;
    }


    /* Selected location title */

    .gallerySelectedLocationHeader h3 {
        margin: 0;
        color: #0a3155;
        font-size: 25px;
        line-height: 1.2;
        font-weight: 700;
    }


    /* Description */

    .gallerySelectedLocationHeader p {
        margin-top: 7px;
        font-size: 13px;
        line-height: 1.5;
    }


/* Photo count */

.galleryPhotoCount {
    padding: 10px 15px;
    font-size: 12px;
}


/* Divider */

.gallerySelectedDivider {
    margin: 18px 0 25px;
}


/* ==========================================================
   IMAGE GRID
   ==========================================================
   Desktop:
   4 images per row

   This is the main change from the previous 2-column layout.
   ========================================================== */

.projectGalleryGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* ==========================================================
   IMAGE CARD
   ========================================================== */

.projectGalleryImage {
    width: 100%;
    height: 225px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #edf1f5;
}


    /* Actual image */

    .projectGalleryImage img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center;
        transition: transform 0.45s ease;
    }


    /* Hover */

    .projectGalleryImage:hover img {
        transform: scale(1.045);
    }


/* ==========================================================
   TABLET / SMALL DESKTOP
   ========================================================== */

@media (max-width: 1250px) {

    .projectGalleryDialog {
        width: min(1240px, calc(100vw - 40px));
        height: min(700px, calc(100vh - 55px));
    }


    .projectGalleryBody {
        grid-template-columns: 315px minmax(0, 1fr);
    }


    .galleryLocationPanel {
        padding-left: 20px;
        padding-right: 20px;
    }


    .galleryImagePanel {
        padding-left: 24px;
        padding-right: 24px;
    }


    /*
       Three columns at this width keeps
       the images large enough to be useful.
    */

    .projectGalleryGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }


    .projectGalleryImage {
        height: 225px;
    }
}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .projectGalleryModal {
        padding: 10px;
    }


    .projectGalleryDialog {
        width: 98vw;
        height: 94vh;
        border-radius: 17px;
    }


    .projectGalleryHeader {
        min-height: 105px;
        padding: 20px;
    }


        .projectGalleryHeader h2 {
            font-size: 23px;
        }


        .projectGalleryHeader p {
            font-size: 12px;
        }


    .projectGalleryClose {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }


    /* Stack location section above images */

    .projectGalleryBody {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }


    /* Location panel */

    .galleryLocationPanel {
        flex: 0 0 auto;
        max-height: 255px;
        padding: 20px 17px;
        border-right: 0;
        border-bottom: 1px solid var(--gallery-border);
    }


    .galleryLocationSearch {
        margin-top: 15px;
    }


        .galleryLocationSearch input {
            height: 50px;
        }


    .galleryLocationList {
        max-height: 105px;
        margin-top: 12px;
    }


    .galleryLocationItem {
        min-height: 70px;
    }


    .galleryLocationIcon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }


    /* Image section */

    .galleryImagePanel {
        flex: 1 1 auto;
        overflow: visible;
        padding: 22px 17px 28px;
    }


    .gallerySelectedLocationHeader {
        display: block;
        min-height: 0;
    }


        .gallerySelectedLocationHeader h3 {
            font-size: 23px;
        }


    .galleryPhotoCount {
        margin-top: 12px;
    }


    .gallerySelectedDivider {
        margin: 17px 0 20px;
    }


    /*
       Two images per row on mobile.
    */

    .projectGalleryGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }


    .projectGalleryImage {
        height: 180px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .projectGalleryDialog {
        height: 95vh;
    }


    .projectGalleryHeader {
        min-height: 95px;
        padding: 17px;
    }


        .projectGalleryHeader h2 {
            font-size: 20px;
        }


        .projectGalleryHeader p {
            font-size: 11px;
        }


    .galleryLocationPanel {
        max-height: 245px;
    }


    .gallerySelectedLocationHeader h3 {
        font-size: 21px;
    }


    /*
       One image per row only on very small phones.
       This prevents the photographs becoming too narrow.
    */

    .projectGalleryGrid {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .projectGalleryImage {
        height: 205px;
    }
}