
/* =========================================================
   S K ENTERPRISES - GALLERY PAGE
   Theme: Navy Blue / Red / White
========================================================= */

.gallery-page {
    --gallery-navy: #062b63;
    --gallery-red: #ed0000;
    --gallery-ink: #1f2937;
    --gallery-muted: #687386;
    --gallery-light: #f4f6f9;
    --gallery-border: #e0e6ee;
    color: var(--gallery-ink);
    overflow: hidden;
}

.gallery-page *,
.gallery-lightbox * {
    box-sizing: border-box;
}

.gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.gallery-page a {
    text-decoration: none;
}

.gallery-page button {
    font-family: inherit;
}

.gallery-section-kicker,
.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gallery-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-section-kicker::before,
.gallery-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: currentColor;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--gallery-navy);
    overflow: hidden;
}

.gallery-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.gallery-hero-inner {
    min-height: 500px;
    padding-top: 75px;
    padding-bottom: 75px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
}

.gallery-hero-content {
    max-width: 620px;
}

.gallery-hero .gallery-eyebrow {
    color: #ff5555;
    margin-bottom: 22px;
}

.gallery-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 4.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 850;
    color: #fff;
}

.gallery-hero h1 span {
    display: block;
    margin-top: 12px;
    color: #cbd7e8;
    font-size: .54em;
    line-height: 1.35;
    letter-spacing: -.3px;
    font-weight: 650;
}

.gallery-hero-content > p {
    max-width: 570px;
    margin: 0;
    color: #d0daea;
    font-size: 16px;
    line-height: 1.85;
}

.gallery-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.gallery-btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 21px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .5px;
    transition: background .25s ease, color .25s ease,
                transform .25s ease, border-color .25s ease;
}

.gallery-btn span {
    font-size: 18px;
}

.gallery-btn-primary {
    background: var(--gallery-red);
    border: 1px solid var(--gallery-red);
    color: #fff;
}

.gallery-btn-primary:hover {
    background: #c90000;
    border-color: #c90000;
    transform: translateY(-2px);
}

.gallery-btn-outline {
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    background: transparent;
}

.gallery-btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.08);
}


/* Technical illustration */

.gallery-hero-visual {
    position: relative;
    min-width: 0;
    padding: 15px 0 28px;
}

.gallery-blueprint {
    position: relative;
    min-height: 330px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.24);
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        #09275a;
    background-size: 24px 24px;
}

.blueprint-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #aebed6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.blueprint-building {
    position: relative;
    width: 84%;
    height: 190px;
    margin: 35px auto 0;
}

.blueprint-roof {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255,255,255,.04);
    border: 2px solid #d7e5f8;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.blueprint-frame {
    position: absolute;
    top: 57px;
    left: 7%;
    width: 86%;
    height: 105px;
    border: 2px solid #d7e5f8;
    border-top: 0;
}

.blueprint-columns {
    position: absolute;
    top: 60px;
    left: 7%;
    width: 86%;
    height: 102px;
    display: flex;
    justify-content: space-between;
}

.blueprint-columns i {
    display: block;
    width: 2px;
    height: 100%;
    background: #d7e5f8;
}

.blueprint-base {
    position: absolute;
    left: 0;
    bottom: 24px;
    width: 100%;
    height: 2px;
    background: #ff5555;
}

.blueprint-measure {
    position: absolute;
    left: 22px;
    color: #b8c8df;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.blueprint-measure-top {
    top: 90px;
}

.blueprint-measure-bottom {
    bottom: 22px;
}

.gallery-visual-badge {
    position: absolute;
    right: -12px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    background: #fff;
    color: var(--gallery-navy);
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
}

.gallery-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gallery-red);
    border-radius: 50%;
}


/* Hero bottom strip */

.gallery-hero-bottom {
    border-top: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.12);
}

.gallery-hero-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
}

.gallery-hero-bottom-inner span {
    color: #d6e0ee;
    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {
    padding: 65px 0;
    background: #fff;
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-intro-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 55px;
}

.gallery-intro-heading h2 {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--gallery-navy);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -.6px;
}

.gallery-intro-copy {
    padding-left: 25px;
    border-left: 3px solid var(--gallery-red);
}

.gallery-intro-copy p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   GALLERY SHOWCASE
========================================================= */

.gallery-showcase {
    padding: 90px 0 95px;
    background: var(--gallery-light);
}

.gallery-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.gallery-section-heading h2 {
    margin: 12px 0 8px;
    color: var(--gallery-navy);
    font-size: clamp(32px, 3.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -.8px;
}

.gallery-section-heading p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 15px;
    line-height: 1.7;
}

.gallery-count {
    min-width: 105px;
    padding: 13px 17px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d9e1eb;
    background: #fff;
    color: var(--gallery-muted);
    font-size: 12px;
}

.gallery-count strong {
    color: var(--gallery-navy);
    font-size: 23px;
}


/* Filters */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 32px;
}

.gallery-filter {
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid #d9e1eb;
    background: #fff;
    color: #475467;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    transition: background .25s ease, color .25s ease,
                border-color .25s ease;
}

.gallery-filter:hover {
    border-color: var(--gallery-navy);
    color: var(--gallery-navy);
}

.gallery-filter.active {
    border-color: var(--gallery-navy);
    background: var(--gallery-navy);
    color: #fff;
}


/* Gallery grid */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.gallery-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e0e6ee;
    transition: transform .3s ease, box-shadow .3s ease,
                border-color .3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 38px rgba(6,43,99,.10);
}

.gallery-card[hidden] {
    display: none !important;
}

.gallery-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #e1e7ef;
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
}

.gallery-image-button img {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 5;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-card:hover .gallery-image-button img {
    transform: scale(1.045);
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(6,43,99,.78);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.5px;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-card:hover .gallery-image-overlay,
.gallery-image-button:focus-visible .gallery-image-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 400;
}

.gallery-image-number {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 10px;
    background: var(--gallery-red);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}

.gallery-card-info {
    padding: 21px 20px 22px;
    border-top: 3px solid transparent;
    transition: border-color .25s ease;
}

.gallery-card:hover .gallery-card-info {
    border-top-color: var(--gallery-red);
}

.gallery-card-category {
    display: block;
    margin-bottom: 9px;
    color: var(--gallery-red);
    font-size: 9px;
    line-height: 1.5;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.gallery-card-info h3 {
    margin: 0;
    color: var(--gallery-navy);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 750;
}

.gallery-note {
    margin: 28px 0 0;
    padding: 15px 18px;
    border-left: 3px solid var(--gallery-red);
    background: #fff;
    color: var(--gallery-muted);
    font-size: 12px;
    line-height: 1.8;
}

.gallery-note strong {
    color: var(--gallery-navy);
}

.gallery-empty {
    padding: 55px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--gallery-border);
}

.gallery-empty[hidden] {
    display: none !important;
}

.gallery-empty-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fff0f0;
    color: var(--gallery-red);
    font-weight: 850;
}

.gallery-empty h3 {
    margin: 16px 0 8px;
    color: var(--gallery-navy);
    font-size: 22px;
}

.gallery-empty p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   PROJECT CTA
========================================================= */

.gallery-cta {
    position: relative;
    padding: 65px 0;
    background: var(--gallery-navy);
    color: #fff;
}

.gallery-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.gallery-cta .gallery-section-kicker {
    color: #ff6262;
}

.gallery-cta-content h2 {
    margin: 13px 0 10px;
    color: #fff;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.2;
}

.gallery-cta-content p {
    max-width: 630px;
    margin: 0;
    color: #cbd7e8;
    font-size: 14px;
    line-height: 1.8;
}

.gallery-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.gallery-phone-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}

.gallery-phone-link span {
    color: #cbd7e8;
    font-size: 11px;
}

.gallery-phone-link strong {
    font-size: 16px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 80px 35px;
    background: rgba(3, 12, 28, .96);
}

.gallery-lightbox-content {
    width: min(100%, 1050px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

.gallery-lightbox-content img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.gallery-lightbox-caption {
    width: 100%;
    padding: 18px 5px 0;
    text-align: center;
}

.gallery-lightbox-caption > span {
    color: #ff6262;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
}

.gallery-lightbox-caption h2 {
    margin: 7px 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
}

.gallery-lightbox-caption p {
    margin: 0;
    color: #cbd7e8;
    font-size: 12px;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: var(--gallery-red);
    border-color: var(--gallery-red);
}

.gallery-lightbox-close {
    top: 18px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 46px;
    height: 56px;
    transform: translateY(-50%);
    font-size: 22px;
}

.gallery-lightbox-prev {
    left: 20px;
}

.gallery-lightbox-next {
    right: 20px;
}

body.gallery-lightbox-open {
    overflow: hidden;
}


/* Keyboard focus */

.gallery-page a:focus-visible,
.gallery-page button:focus-visible,
.gallery-lightbox button:focus-visible {
    outline: 3px solid #ff7777;
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {
    .gallery-hero-inner {
        gap: 30px;
        min-height: 450px;
    }

    .gallery-blueprint {
        min-height: 290px;
    }

    .blueprint-building {
        height: 165px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .gallery-intro-inner {
        gap: 30px;
    }

    .gallery-cta-inner {
        align-items: flex-start;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
    .gallery-container {
        width: calc(100% - 28px);
    }

    .gallery-hero-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 60px;
        padding-bottom: 45px;
    }

    .gallery-hero h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .gallery-hero h1 span {
        font-size: .56em;
    }

    .gallery-hero-content > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .gallery-hero-actions {
        gap: 10px;
    }

    .gallery-btn {
        min-height: 46px;
        padding: 12px 14px;
        gap: 10px;
        font-size: 11px;
    }

    .gallery-hero-visual {
        padding-right: 8px;
    }

    .gallery-blueprint {
        min-height: 285px;
        padding: 16px;
    }

    .blueprint-building {
        width: 82%;
        height: 165px;
        margin-top: 38px;
    }

    .blueprint-measure {
        left: 16px;
        font-size: 8px;
    }

    .gallery-visual-badge {
        right: 0;
        padding: 12px;
        font-size: 8px;
    }

    .gallery-hero-bottom-inner {
        justify-content: flex-start;
        padding-top: 18px;
        padding-bottom: 18px;
        gap: 13px 20px;
    }

    .gallery-hero-bottom-inner span {
        font-size: 10px;
    }

    .gallery-intro {
        padding: 50px 0;
    }

    .gallery-intro-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery-intro-heading h2 {
        font-size: 29px;
    }

    .gallery-intro-copy {
        padding-left: 17px;
    }

    .gallery-intro-copy p {
        font-size: 14px;
    }

    .gallery-showcase {
        padding: 65px 0;
    }

    .gallery-section-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .gallery-section-heading h2 {
        font-size: 34px;
    }

    .gallery-section-heading p {
        font-size: 13px;
    }

    .gallery-count {
        min-width: 76px;
        padding: 10px;
        gap: 4px;
        flex-direction: column;
        align-items: center;
    }

    .gallery-count strong {
        font-size: 20px;
    }

    .gallery-count span {
        font-size: 10px;
    }

    .gallery-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 2px 12px;
        margin-right: -2px;
        scrollbar-width: thin;
    }

    .gallery-filter {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 10px 13px;
        font-size: 11px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-card-info {
        padding: 17px;
    }

    .gallery-card-info h3 {
        font-size: 17px;
    }

    .gallery-image-overlay {
        display: none;
    }

    .gallery-note {
        font-size: 11px;
    }

    .gallery-cta {
        padding: 50px 0;
    }

    .gallery-cta-inner {
        flex-direction: column;
        gap: 25px;
    }

    .gallery-cta-content h2 {
        font-size: 29px;
    }

    .gallery-cta-actions {
        width: 100%;
        gap: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-lightbox {
        padding: 65px 12px 24px;
    }

    .gallery-lightbox-content img {
        max-width: 100%;
        max-height: calc(100vh - 210px);
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 12px;
        width: 43px;
        height: 43px;
        transform: none;
    }

    .gallery-lightbox-prev {
        left: 20px;
    }

    .gallery-lightbox-next {
        right: 20px;
    }

    .gallery-lightbox-caption h2 {
        font-size: 16px;
    }

    .gallery-lightbox-caption {
        padding-bottom: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page *,
    .gallery-lightbox * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
