/* ============================================================
   Photography — full brutalist mode.
   Black, white, loud type, hard edges.
   ============================================================ */

:root {
    --black: #0a0a0a;
    --white: #f2f2f2;
    --hot: #ff2d00;
    --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, "Courier New", monospace;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

.ph {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

.ph img { display: block; max-width: 100%; }
.ph ::selection { background: var(--hot); color: #000; }

/* ---------- TOP BAR ---------- */
.ph-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px clamp(16px, 4vw, 40px);
    border-bottom: 3px solid var(--white);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    background: var(--black);
    z-index: 10;
}

.ph-top__back { color: var(--white); text-decoration: none; }
.ph-top__back:hover { color: var(--hot); }
.ph-top__meta { opacity: 0.6; }

/* ---------- MARQUEE ---------- */
.marquee {
    overflow: hidden;
    border-bottom: 3px solid var(--white);
    background: var(--hot);
    color: #000;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: scroll 22s linear infinite;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(20px, 4vw, 38px);
    padding: 10px 0;
    text-transform: uppercase;
}

.marquee__track span { white-space: nowrap; }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; }
}

/* ---------- HERO ---------- */
.ph-hero {
    padding: clamp(40px, 8vw, 100px) clamp(16px, 4vw, 40px);
    border-bottom: 3px solid var(--white);
}

.ph-hero__title {
    margin: 0;
    font-size: clamp(72px, 24vw, 320px);
    line-height: 0.82;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ph-hero__note {
    font-family: var(--mono);
    font-size: clamp(13px, 2vw, 17px);
    margin: 28px 0 0;
    opacity: 0.7;
}

/* ---------- GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 3px;
    background: var(--white);   /* gaps show as hard white lines */
    border-bottom: 3px solid var(--white);
}

.frame {
    margin: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--black);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.frame--tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.frame--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.frame--big  { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }

/* if both --tall and --wide are used together, treat it as a big 2x2 block */
.frame--tall.frame--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }

.frame { cursor: pointer; }

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: filter .3s ease, transform .4s ease;
}

.frame:hover img { filter: grayscale(0); transform: scale(1.03); }

/* hover hint badge */
.frame::after {
    content: "↗ VIEW";
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #000;
    background: var(--hot);
    padding: 4px 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.frame:hover::after { opacity: 1; transform: none; }

/* placeholder label (shown until you drop in a real <img>) */
.frame__tag {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #555;
    border: 1px dashed #444;
    padding: 6px 12px;
}

.frame:hover .frame__tag { color: var(--hot); border-color: var(--hot); }

/* ---------- FOOTER ---------- */
.ph-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 22px clamp(16px, 4vw, 40px);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.ph-foot a { color: var(--white); text-decoration: none; }
.ph-foot a:hover { color: var(--hot); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    grid-template-rows: 1fr;
    place-items: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(5, 5, 5, 0.94);
}

.lightbox.is-open { display: grid; }

.lightbox__stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1100px;
    width: 100%;
    max-height: 100%;
}

.lightbox__img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid var(--white);
    background: var(--black);
}

.lightbox__cap {
    border-top: 3px solid var(--hot);
    padding-top: 14px;
    max-width: 70ch;
}

.lightbox__count {
    display: block;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--hot);
    margin-bottom: 8px;
}

.lightbox__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lightbox__desc {
    margin: 0;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.8;
}

/* controls */
.lightbox__close,
.lightbox__nav {
    position: fixed;
    z-index: 101;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    font-family: var(--mono);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--hot); color: #000; border-color: var(--hot); }

.lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 22px;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 600px) {
    .lightbox__nav { top: auto; bottom: 16px; transform: none; }
    .lightbox__nav--prev { left: 16px; }
    .lightbox__nav--next { right: 16px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .frame--wide { grid-column: span 2; }
}
