/* Kush Architects Gallery Page — consolidated CSS
   Header dimensions and colors follow service-page.css.
   Gallery layout, filtering, lightbox and responsive behavior retained.
*/

/* Shared container */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Shared Kush Architects header — matched to service-page.css */
body:not(.homepage-preview) .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1000;
    width: 100%;
    margin: 0;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

body:not(.homepage-preview) .site-header .header-contact {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 5%;
    background: #273253;
    color: #fff;
}

body:not(.homepage-preview) .site-header .header-contact-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
    max-width: 1400px;
    min-height: 26px;
    margin: 0 auto;
}

body:not(.homepage-preview) .site-header .header-contact-inner a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

body:not(.homepage-preview) .site-header .header-contact-inner a:hover {
    color: #e2c66f;
}

body:not(.homepage-preview) .site-header .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: 1400px;
    min-height: 104px;
    margin: 0 auto;
    padding: 12px 4%;
    background: #fff !important;
    box-sizing: border-box;
}

body:not(.homepage-preview) .site-header .site-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

body:not(.homepage-preview) .site-header .site-logo img {
    display: block;
    width: 112px;
    max-width: 100%;
    height: 76px;
    object-fit: contain;
}

body:not(.homepage-preview) .site-header .primary-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(14px, 1.5vw, 24px);
}

body:not(.homepage-preview) .site-header .primary-navigation a:not(.consultation-link) {
    color: #273253 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

body:not(.homepage-preview) .site-header .primary-navigation a:not(.consultation-link):hover {
    color: #a8792a !important;
}

body:not(.homepage-preview) .site-header .primary-navigation a.consultation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 28px;
    background: #273253 !important;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

body:not(.homepage-preview) .site-header .primary-navigation a.consultation-link:hover {
    background: #192644 !important;
}

body:not(.homepage-preview) .site-header .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 8px;
    border: 1px solid #d5d8e0;
    border-radius: 5px;
    background: #fff;
    color: #273253;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body:not(.homepage-preview) .site-header .menu-toggle-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Tablet header */
@media (max-width: 1100px) {
    body:not(.homepage-preview) .site-header .main-header {
        gap: 16px;
        padding-inline: 3%;
    }

    body:not(.homepage-preview) .site-header .site-logo img {
        width: 94px;
        height: 68px;
    }

    body:not(.homepage-preview) .site-header .primary-navigation {
        gap: 12px;
    }

    body:not(.homepage-preview) .site-header .primary-navigation a:not(.consultation-link) {
        font-size: 14px;
    }

    body:not(.homepage-preview) .site-header .primary-navigation a.consultation-link {
        padding-inline: 16px;
        font-size: 14px;
    }
}

/* Mobile header navigation */
@media (max-width: 900px) {
    body:not(.homepage-preview) .site-header .main-header {
        min-height: 78px;
        padding: 10px 20px;
    }

    body:not(.homepage-preview) .site-header .site-logo img {
        width: 78px;
        height: 58px;
    }

    body:not(.homepage-preview) .site-header .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    body:not(.homepage-preview) .site-header .primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1001;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        border-top: 1px solid #eee;
        background: #fff;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    }

    body:not(.homepage-preview) .site-header .primary-navigation.is-open {
        display: flex;
    }

    body:not(.homepage-preview) .site-header .primary-navigation a:not(.consultation-link) {
        display: block;
        padding: 12px 4px;
        font-size: 15px;
        white-space: normal;
    }

    body:not(.homepage-preview) .site-header .primary-navigation a.consultation-link {
        margin-top: 8px;
        white-space: normal;
    }
}

/* Gallery hero — colors and typography matched to Projects/service hero */
.gallery-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 480px;
    padding: 65px 20px;
    box-sizing: border-box;
    background: #26365d;
    color: #fff;
    text-align: center;
}

.gallery-hero span {
    display: inline-block;
    color: #e2c66f;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-hero h1 {
    margin: 18px 0 24px;
    color: #fff;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
}

.gallery-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(17px, 1.6vw, 25px);
    line-height: 1.7;
}

/* Gallery section */
.gallery-section {
    padding: 55px 0 70px;
    background: #f8f9fb;
}

/* Category filter buttons */
.gallery-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 40px;
}

.gallery-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 26px;
    border: 1px solid #26345b;
    border-radius: 30px;
    background: #fff;
    color: #26345b;
    font-size: 17px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.gallery-category-btn:hover,
.gallery-category-btn.active {
    background: #26345b;
    color: #fff;
}

/* Gallery image grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    align-items: start;
    gap: 28px;
}

.gallery-card {
    display: block;
    width: 300px;
    height: 300px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 35, 60, .10);
    cursor: pointer;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

/* Images only: no title or category text */
.gallery-card-content,
.gallery-card-title,
.gallery-card-category {
    display: none;
}

/* Keyboard accessibility */
.gallery-card:focus-visible,
.gallery-category-btn:focus-visible,
.gallery-view-more-btn:focus-visible,
.gallery-lightbox-close:focus-visible {
    outline: 3px solid #d0ad68;
    outline-offset: 4px;
}

/* View more button */
.gallery-view-more-wrap {
    margin: 35px 0 10px;
    text-align: center;
}

.gallery-view-more-btn {
    display: inline-block;
    padding: 13px 30px;
    border: 1px solid #26345b;
    border-radius: 30px;
    background: #26345b;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.gallery-view-more-btn:hover {
    background: #fff;
    color: #26345b;
}

.gallery-image-count {
    margin: 16px 0 0;
    color: #626b78;
    font-size: 14px;
    text-align: center;
}

.gallery-empty {
    padding: 35px 15px;
    color: #626b78;
    text-align: center;
}

/* Image lightbox */
.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, .92);
}

.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 12px;
    right: 20px;
    padding: 4px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 1.2;
    cursor: pointer;
}

/* Tablet gallery */
@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 300px);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 650px) {
    body:not(.homepage-preview) .site-header .header-contact {
        min-height: 42px;
        padding: 8px 12px;
    }

    body:not(.homepage-preview) .site-header .header-contact-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px 12px;
    }

    body:not(.homepage-preview) .site-header .header-contact-inner a {
        font-size: 11px;
    }

    body:not(.homepage-preview) .site-header .main-header {
        min-height: 70px;
        padding: 8px 16px;
    }

    body:not(.homepage-preview) .site-header .site-logo img {
        width: 68px;
        height: 52px;
    }

    .gallery-container {
        padding: 0 16px;
    }

    .gallery-hero {
        min-height: 300px;
        padding: 40px 16px;
    }

    .gallery-hero span {
        margin-bottom: 0;
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .gallery-hero h1 {
        margin: 14px 0 18px;
        font-size: 38px;
        line-height: 1.15;
        letter-spacing: -.6px;
        overflow-wrap: anywhere;
    }

    .gallery-hero p {
        font-size: 16px;
        line-height: 1.65;
    }

    .gallery-section {
        padding: 35px 0 45px;
    }

    .gallery-categories {
        gap: 10px;
        margin-bottom: 28px;
    }

    .gallery-category-btn {
        min-height: 44px;
        padding: 9px 16px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: minmax(0, 300px);
        gap: 18px;
    }

    .gallery-card {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .gallery-view-more-wrap {
        margin-top: 28px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .gallery-card img,
    .gallery-category-btn,
    .gallery-view-more-btn {
        transition: none;
    }

    .gallery-card:hover img {
        transform: none;
    }
}


/* Fix Gallery Hero Text Alignment */
.gallery-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.gallery-hero span,
.gallery-hero h1,
.gallery-hero p {
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gallery-hero h1 {
    overflow-wrap: break-word;
}

.gallery-hero p {
    line-height: 1.7;
}

/* Breadcrumb styling */
.gallery-breadcrumb {
    display: flex;
    justify-content: center;
    margin: 12px 0 18px;
    padding: 0;
    background: transparent;
    border: 0;
}

.gallery-breadcrumb ol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: none;
}

.gallery-breadcrumb li {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.gallery-breadcrumb a,
.gallery-breadcrumb [aria-current="page"] {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
}

.gallery-breadcrumb .breadcrumb-separator {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 400;
}