﻿/* ---------- Base ---------- */
:root
{
    --bg: #ffffff;
    --ink: #2b2b2b;
    --muted: #6b6b6b;
    --line: rgba(0,0,0,0.18);
    --card: #ffffff;
}


*
{
    box-sizing: border-box;
}

html, body
{
    height: 100%;
}

body
{
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.page
{
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
}

/* ---------- Header ---------- */
.header
{
    padding: 56px 20px 18px;
    display: flex;
    justify-content: center;
}

.brand
{
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
}

.logo
{
    width: 184px;
    height: 184px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
}


    .logo img
    {
        width: 100%;
        height: 100%;
        object-fit: contain; /* use cover if the logo already includes padding */
        display: block;
    }

.wordmark
{
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
}

.title
{
    margin: 0;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: clamp(22px, 3vw, 34px);
}

.hairline
{
    height: 1px;
    background: var(--line);
    width: 100%;
}

/* ---------- Gallery ---------- */
.gallery
{
    display: flex;
    justify-content: center;
    padding: 100px 14px 12px;
}

.gallery-frame
{
    width: min(980px, 100%);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.scroller
{
    display: flex;
    gap: 26px;
    padding: 8px 6px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

    .scroller::-webkit-scrollbar
    {
        display: none; /* Chrome, Safari, Edge */
    }


.tile
{
    flex: 0 0 auto;
    margin: 0;
    scroll-snap-align: center;
}

    .tile img
    {
        width: 280px;
        height: 220px;
        object-fit: cover;
        display: block;
        border: 0;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
        background: var(--card);
        cursor: pointer;
    }

@media (max-width: 720px)
{
    .tile img
    {
        width: 240px;
        height: 190px;
    }
}

.nav-btn
{
    background: none;
    border: none;
    padding: 0 6px;
    color: var(--ink);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    /* optional polish */
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

    .nav-btn:hover
    {
        opacity: 1;
    }

    .nav-btn:active
    {
        transform: translateY(1px);
    }


/* ---------- Footer ---------- */
.footer
{
    padding: 26px 20px 46px;
    text-align: center;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.contact
{
    font-size: 34px;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.social
{
    display: flex;
    gap: 14px;
}

.social-link
{
    width: 54px;
    height: 54px;
    border: 1px solid rgba(0,0,0,0.20);
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
    display: grid;
    place-items: center;
    text-decoration: none;
}

    .social-link:hover
    {
        background: rgba(255,255,255,0.85);
    }

    .social-link svg
    {
        width: 26px;
        height: 26px;
        fill: var(--ink);
    }

/* ---------- Lightbox ---------- */
.lightbox
{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none; /* toggled by JS */
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

    .lightbox.is-open
    {
        display: flex;
    }

.lightbox-img
{
    max-width: min(1100px, 96vw);
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: #000;
}

.lightbox-close
{
    position: fixed;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

    .lightbox-close:hover
    {
        background: rgba(0,0,0,0.55);
    }
