@charset "utf-8";

.gallery-page{
    --grid-gap: 1rem;
}

.gallery-hero{
    position: relative;
    isolation: isolate;
    padding: 3.5rem 1.25rem 2.5rem;
    overflow: hidden;
}

.gallery-hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 12% 20%, rgba(42, 63, 95, .35), transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(196, 90, 56, .18), transparent 50%),
        linear-gradient(180deg, #14171e 0%, var(--bg-dark) 100%);
    z-index: -2;
}

.gallery-hero::after{
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--line);
}

.gallery-hero-inner{
    width: min(1280px, 100%);
    margin: 0 auto;
}

.gallery-kicker{
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .85rem;
    color: var(--rust);
    font-family: var(--font-nav);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.gallery-kicker::before{
    content: "";
    width: 1.6rem;
    height: 1px;
    background: currentColor;
}

.gallery-hero h1{
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.05;
    text-transform: uppercase;
}

.gallery-hero p{
    max-width: 38rem;
    margin-top: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.gallery-wrap{
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem 0 4.5rem;
}

.gallery-toolbar{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-bottom: 1.35rem;
}

.gallery-toolbar h2{
    font-size: 1.35rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-toolbar span{
    color: var(--text-muted);
    font-size: .9rem;
}

.gallery-grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

.gallery-card{
    position: relative;
    grid-column: span 4;
    min-height: 16rem;
    border-radius: .7rem;
    overflow: hidden;
    background: var(--bg-panel);
    cursor: zoom-in;
    isolation: isolate;
    transform: translateZ(0);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.gallery-card:nth-child(4n+1){ grid-column: span 7; min-height: 22rem; }
.gallery-card:nth-child(4n+2){ grid-column: span 5; min-height: 22rem; }

.gallery-card img,
.gallery-card .ph{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .7s var(--ease), filter .7s var(--ease);
}

.gallery-card:hover{
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.gallery-card:hover img,
.gallery-card:hover .ph{
    transform: scale(1.05);
    filter: saturate(1.08);
}

.gallery-card figcaption{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1rem .9rem;
    background: linear-gradient(transparent, rgba(8, 9, 12, .82));
    font-size: .85rem;
    letter-spacing: .04em;
}

.gallery-card figcaption strong{
    display: block;
    font-family: var(--font-nav);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-card figcaption em{
    font-style: normal;
    color: var(--text-muted);
    font-size: .78rem;
}

.ph{
    background:
        linear-gradient(160deg, rgba(255,255,255,.06), transparent 40%),
        var(--ph, #2a3140);
}

.ph::after{
    content: "";
    position: absolute;
    inset: 28% 12% 32%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70' fill='none'><path d='M18 48c8-1 18-14 32-16 10-18 28-24 48-24 22 0 36 6 48 14 14 2 38 2 52 8 10 1 18 8 24 14h6c4 2 6 6 4 10-14 4-28 2-40 2-4 8-14 12-24 12-12 0-22-6-26-14H86c-4 8-14 14-26 14s-22-6-26-14H18c-6 0-10-4-10-8 0-2 4-4 10-4z' stroke='%23ece8e0' stroke-width='2' opacity='.28'/><circle cx='62' cy='52' r='10' stroke='%23ece8e0' stroke-width='2' opacity='.28'/><circle cx='168' cy='52' r='10' stroke='%23ece8e0' stroke-width='2' opacity='.28'/></svg>") center / contain no-repeat;
    opacity: .9;
    pointer-events: none;
}

.ph-chrome{ --ph: linear-gradient(145deg, #3a414e, #1c222c 55%, #c45a38 140%); }
.ph-navy{ --ph: linear-gradient(145deg, #24344c, #121820 60%, #8a3b28 130%); }
.ph-dusk{ --ph: linear-gradient(145deg, #4a2e28, #17141a 50%, #2a3f5f 120%); }
.ph-steel{ --ph: linear-gradient(145deg, #6a655c, #22262e 58%, #3d2a24 125%); }

.gallery-empty{
    padding: 3rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--line);
    border-radius: .8rem;
}

.gallery-foot{
    padding: 1.4rem 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lightbox{
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(8, 9, 12, .88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
}

.lightbox.is-on{
    opacity: 1;
    visibility: visible;
}

.lightbox img,
.lightbox .ph{
    position: relative;
    width: min(1100px, 100%);
    height: min(78vh, 720px);
    object-fit: cover;
    border-radius: .6rem;
    box-shadow: var(--shadow);
}

.lightbox-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.35);
}

@media (max-width: 860px){
    .gallery-hero{ padding: 2.2rem 1rem 1.75rem; }
    .gallery-wrap{
        width: calc(100% - 1.25rem);
        padding: 1.2rem 0 3rem;
    }
    .gallery-card,
    .gallery-card:nth-child(4n+1),
    .gallery-card:nth-child(4n+2){
        grid-column: span 12;
        min-height: 14.5rem;
    }
}

@media (max-width: 640px){
    .gallery-hero h1{ letter-spacing: .02em; }
    .lightbox{ padding: .75rem; }
    .lightbox img,
    .lightbox .ph{ height: min(70vh, 520px); }
}
