:root { --ink: #172238; --paper: #f5f2ea; --blue: #3158d4; --red: #ed6a4a; --muted: #6c7480; --line: #c9c7bf; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.gallery-header { border-bottom: 1px solid var(--line); }.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 3rem), 1200px); min-height: 78px; margin: auto; }.gallery-brand { font-weight: 700; letter-spacing: -.05em; text-decoration: none; }.gallery-brand span { color: var(--blue); }.back-link { color: var(--muted); font: .7rem ui-monospace, monospace; text-decoration: none; }.back-link:hover { color: var(--red); }
main { width: min(calc(100% - 3rem), 1200px); margin: auto; }.gallery-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: end; padding: 7rem 0 5rem; }.eyebrow { color: var(--red); font: .65rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }.gallery-intro h1, .upload-page h1 { margin: 1rem 0 0; font-size: clamp(3.5rem, 8vw, 8rem); letter-spacing: -.08em; line-height: .88; }.gallery-intro h1 em, .upload-page h1 em { color: var(--blue); font-style: normal; }.intro-copy { max-width: 320px; margin: 0 0 .5rem; color: var(--muted); font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 6rem; }.gallery-item { margin: 0; }.gallery-button { display: block; width: 100%; padding: 0; border: 0; background: #d8dce5; cursor: zoom-in; }.gallery-button img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .2s ease; }.gallery-button:hover img, .gallery-button:focus-visible img { filter: saturate(1.2) contrast(1.05); }.gallery-item figcaption { padding-top: .55rem; color: var(--muted); font-size: .8rem; }
.empty-gallery { padding: 6rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }.empty-gallery p { margin-bottom: .4rem; font-size: 2rem; }.empty-gallery span { color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 3rem; background: rgba(23,34,56,.94); }.lightbox[hidden] { display: none; }.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }.lightbox p { position: absolute; bottom: 1.5rem; max-width: 90vw; margin: 0; color: white; text-align: center; }.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; border: 0; background: transparent; color: white; cursor: pointer; font-size: 2rem; }
.upload-page { max-width: 680px; padding: 5rem 0; }.upload-page > .back-link { display: inline-block; margin-bottom: 5rem; }.upload-page h1 { margin-bottom: 3rem; }.upload-page form { display: grid; gap: .7rem; max-width: 500px; }.upload-page label { margin-top: 1rem; font-weight: 700; }.upload-page label span { color: var(--muted); font-weight: 400; }.upload-page input[type=file], .upload-page input[type=text] { width: 100%; padding: .85rem; border: 1px solid var(--line); background: white; font: inherit; }.upload-page button { width: fit-content; margin-top: 1rem; padding: .85rem 1rem; border: 0; background: var(--blue); color: white; cursor: pointer; font: .7rem ui-monospace, monospace; text-transform: uppercase; }.upload-page button:hover, .upload-page button:focus-visible { background: var(--red); }.upload-message { padding: .8rem; border-left: 3px solid var(--blue); background: white; }.upload-message.error { border-color: var(--red); }.upload-message.success { border-color: #2e936b; }.upload-help { max-width: 430px; margin-top: 3rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .header-inner { width: min(calc(100% - 2rem), 1200px); }.back-link { font-size: .6rem; }.gallery-intro { display: block; padding: 5rem 0 3rem; }.intro-copy { margin-top: 2rem; }.gallery-grid { grid-template-columns: 1fr 1fr; gap: .65rem; padding-bottom: 4rem; }.upload-page { width: min(calc(100% - 2rem), 680px); padding-top: 3rem; }.upload-page > .back-link { margin-bottom: 4rem; } }

/* Gallery presentation adapted from the original image-site interaction. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 6rem; }
.date-separator { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin-top: 1rem; color: var(--muted); font: .7rem ui-monospace, monospace; text-transform: uppercase; }
.date-separator::after { flex: 1; height: 1px; background: var(--line); content: ''; }
.date-separator span { white-space: nowrap; }
.gallery-item { min-width: 0; }
.gallery-button { width: 100%; }
.gallery-button img { aspect-ratio: 4 / 3; }
.lightbox-content { display: flex; max-width: 92vw; max-height: 90vh; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox-content img { max-width: 92vw; max-height: 82vh; }
.lightbox-content p { position: static; max-width: 80vw; color: white; text-align: center; }
.lightbox-arrow { position: absolute; top: 50%; z-index: 1; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(0,0,0,.25); color: white; cursor: pointer; font-size: 2.4rem; line-height: 1; transform: translateY(-50%); }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible { background: var(--red); border-color: var(--red); }
.lightbox-prev { left: 1.5rem; }.lightbox-next { right: 1.5rem; }
.lightbox-open { overflow: hidden; }

@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .65rem; padding-bottom: 4rem; }.date-separator { grid-column: 1 / -1; }.lightbox { padding: 1rem; }.lightbox-arrow { top: auto; bottom: 1.5rem; transform: none; }.lightbox-prev { left: 1.5rem; }.lightbox-next { right: 1.5rem; } }

/* Full-viewport viewer: broad side zones navigate, the centre closes. */
.lightbox { padding: 0; }
.lightbox-content { position: relative; z-index: 1; width: 100vw; height: 100vh; max-width: none; max-height: none; justify-content: center; cursor: zoom-out; }
.lightbox-content img { width: 100vw; height: 100vh; max-width: none; max-height: none; object-fit: contain; }
.lightbox-content p { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; z-index: 2; margin: 0; }
.lightbox-arrow { position: absolute; top: 0; bottom: 0; z-index: 3; width: 30%; height: auto; border: 0; border-radius: 0; background: transparent; opacity: 0; cursor: pointer; font-size: 4rem; transform: none; }
.lightbox-arrow:hover, .lightbox-arrow:focus-visible { background: rgba(23,34,56,.2); border: 0; opacity: 1; }
.lightbox-prev { left: 0; }.lightbox-next { right: 0; }
.lightbox-close { z-index: 4; }

.gallery-header .header-inner { min-height: 52px; padding-top: .55rem; padding-bottom: .55rem; }
.gallery-intro { padding-top: 4rem; padding-bottom: 3rem; }

.gallery-title { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.gallery-title h1 { margin: 0; font-family: inherit; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.gallery-title .intro-copy { margin: 0; }

@media (max-width: 700px) {
    .gallery-intro { padding-top: 3rem; padding-bottom: 2rem; }
    .gallery-title { display: block; padding: 1.5rem 0; }.gallery-title .intro-copy { margin-top: 1rem; }
}

.upload-page { width: min(calc(100% - 2rem), 560px); padding: 2.5rem 0 4rem; }
.upload-page > .back-link { margin-bottom: 2.5rem; }
.upload-page h1 { margin: .7rem 0 2rem; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: .92; }
.upload-page form { gap: .55rem; padding: 1.4rem; border: 1px solid var(--line); background: rgba(255,255,255,.58); }
.upload-page label { margin-top: .6rem; font-size: .85rem; }
.upload-page input[type=file], .upload-page input[type=text] { padding: .7rem; font-size: .9rem; }
.upload-page button { margin-top: .8rem; padding: .7rem .85rem; }
.upload-help { margin-top: 1.5rem; font-size: .75rem; }
