@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600&family=Josefin+Slab:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --paper: #ebe4d6;
  --ink: #8f6334;
  --body-ink: #8f6334;
  --heading-font: "Josefin Sans", Arial, sans-serif;
  --body-font: "Josefin Slab", Georgia, serif;
  --muted: #8f6334;
  --line: #cfc5b4;
  --accent: #704923;
  --highlight: #ded4c2;
  --gutter: clamp(18px, 3vw, 32px);
  --page-width: 78%;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
.page-shell { display: flex; flex-direction: column; min-height: 100svh; width: var(--page-width); max-width: 2280px; margin: 0 auto; }
.page-shell > main { flex: 1; }
.page-shell.work-page { width: 100%; max-width: none; }
.work-page > .site-header, .work-page > .site-footer, .work-page .work-section { width: var(--page-width); max-width: 2280px; margin-inline: auto; }
.work-main { display: flex; flex-direction: column; touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
.work-main .work-section { flex: 1; }
.work-section { padding-bottom: 52px; }
.info-page { width: 100%; max-width: 1360px; }
.info-page .text-section { margin-top: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; background: var(--paper); padding: 14px; }
.skip-link:focus { top: 12px; }
.site-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 22px 0; }
.wordmark { display: block; width: fit-content; max-width: 100%; text-decoration: none; }
.site-logo { display: block; width: 200px; max-width: 100%; height: auto; }
nav { display: flex; gap: 32px; font-size: 15px; }
nav a { padding: 12px 0; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.section-heading h1, .eyebrow { font-size: 12px; line-height: 1.5; font-weight: 400; letter-spacing: .11em; text-transform: uppercase; }
.section-index { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 24px; }
.project { min-width: 0; }
.project-button { display: block; width: 100%; cursor: pointer; text-align: left; color: inherit; padding: 0; background: none; border: 0; text-decoration: none; }
.project-image { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: #333c39; isolation: isolate; }
.project:nth-child(2) .project-image { background: #494a3b; }
.project:nth-child(3) .project-image { background: #4a3d33; }
.project .project-image.portrait-source { background: #101110; }
.project-image.portrait-source img { object-fit: contain; }
.project-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.6,.3,1), filter .4s; }
.project-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transform: scale(var(--preview-scale, 1.6)); transition: opacity .65s; }
.preview-ready .project-preview { opacity: 1; }
.project-preview.vimeo-preview { transform: none; background: #101110; }
.image-fallback { position: absolute; inset: 0; display: grid; place-content: center; color: #eeeee8; font-family: var(--heading-font); font-size: clamp(22px, 3vw, 42px); text-align: center; padding: 30px; }
.image-fallback small { font: 12px/1.5 var(--heading-font); letter-spacing: .08em; margin-top: 12px; text-transform: uppercase; }
.play-label { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; color: white; background: rgb(18 20 18 / 72%); backdrop-filter: blur(6px); font-size: 12px; letter-spacing: .02em; opacity: 0; transition: opacity .2s; }
.play-label::before { content: ''; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.project-caption { display: block; padding: 12px 4px 0; text-align: center; }
.project-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(15px, 1.1vw, 20px); line-height: 1.4; font-weight: 400; }
.project-button:focus-visible .project-image img { transform: scale(1.035); }
.project-button:focus-visible .play-label { opacity: 1; }
@media (hover: hover) {
  .project-button:hover .project-image img { transform: scale(1.035); filter: brightness(.88); }
  .project-button:hover .project-title { color: var(--accent); }
  .project-button:hover .play-label { opacity: 1; }
}
.sample-note { max-width: 780px; margin-top: 44px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.text-section { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; border-top: 1px solid var(--line); padding: 52px 0 68px; }
.about-section { margin-top: 96px; }
.about-content { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.statement { font-family: var(--heading-font); font-weight: 400; font-size: clamp(42px, 4.9vw, 74px); line-height: 1.04; letter-spacing: -.05em; }
.biography { max-width: 340px; padding-top: 4px; font-size: 16px; line-height: 1.75; }
.biography p + p { margin-top: 28px; }
.muted { color: var(--muted); }
.contact-section { padding-top: 48px; }
.contact-content { display: flex; justify-content: space-between; gap: 32px; }
.contact-title { font-size: clamp(25px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.contact-details { min-width: 220px; max-width: 100%; }
.contact-details .eyebrow { margin-bottom: 16px; }
.contact-details > .muted { font-size: 14px; line-height: 1.6; }
.email-link { font-size: 16px; overflow-wrap: anywhere; }
.location { font-size: 12px; margin-top: 24px; color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 16px 0; font-size: 12px; color: var(--muted); }
.site-footer a { padding: 10px 0; text-decoration: none; }
.footer-logo { display: block; width: 86px; height: auto; }
dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 32px; margin: 0; color: #f3f2ee; background: rgb(16 17 16 / 97%); border: 0; overflow-y: auto; }
dialog[open] { display: grid; place-items: center; }
dialog::backdrop { background: #101110; }
.player-panel { width: min(100%, 1120px); min-width: 0; }
.player-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; }
.player-header .eyebrow { color: #b0b1a9; margin-bottom: 5px; }
.player-header h2 { font-size: 23px; font-weight: 400; }
.close-button { display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0; color: inherit; border: 1px solid #62645c; padding: 9px 14px; background: transparent; font-size: 14px; cursor: pointer; }
.close-button span { font-size: 24px; }
.close-button:hover { background: #34362f; }
.video-frame { aspect-ratio: 16 / 9; background: black; }
.video-frame.is-portrait { aspect-ratio: var(--video-ratio); width: min(100%, calc(65svh * var(--video-ratio))); margin-inline: auto; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 13px; line-height: 1.5; }
.player-footer p { color: #b0b1a9; }
.player-footer a { flex-shrink: 0; }
.player-help { color: #b0b1a9; font-size: 12px; line-height: 1.5; margin-top: 16px; }
@media (max-width: 1000px) {
  :root { --page-width: calc(100% - var(--gutter) * 2); }
  .site-header { gap: 20px; }
  .text-section { grid-template-columns: 1fr 4fr; }
  .about-content { gap: 28px; }
  .contact-content { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 20px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .site-logo { width: clamp(120px, 36vw, 152px); }
  nav { gap: 14px; font-size: 14px; }
  nav a { padding: 10px 0; }
  .section-heading { padding: 8px 0 12px; }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .project-image { min-height: 200px; border-radius: 12px; }
  .project-caption { padding-top: 12px; }
  .play-label { left: 12px; bottom: 12px; }
  .sample-note { margin-top: 24px; }
  .text-section { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 0 42px; }
  .about-section { margin-top: 52px; }
  .about-content { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .statement { font-size: 52px; }
  .biography { max-width: 430px; }
  .contact-content { gap: 30px; }
  .contact-title { font-size: 32px; }
  .site-footer { gap: 16px; flex-wrap: wrap; padding: 20px 0; }
  dialog { padding: 18px; }
  .player-header h2 { font-size: 19px; }
  .player-footer { flex-direction: column; gap: 10px; }
}
@media (orientation: portrait) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Work 分类：每个面板保留原有的三列 / 竖屏单列网格。 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.work-heading { gap: 20px; }
.work-tabs { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 6px; margin: -6px; }
.work-tabs::-webkit-scrollbar { display: none; }
.work-tabs button { position: relative; flex-shrink: 0; border: 0; background: transparent; padding: 9px 12px; font-size: 13px; line-height: 1.5; letter-spacing: .055em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.work-tabs button:hover, .work-tabs button[aria-selected="true"] { color: var(--ink); }
.work-tabs button[aria-selected="true"] { color: var(--ink); }
.work-controls { display: flex; align-items: center; flex-shrink: 0; gap: 6px; }
.work-controls .section-index { margin-right: 12px; white-space: nowrap; }
.preview-toggle { display: grid; place-content: center; width: 36px; height: 36px; margin-right: 6px; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 15px; cursor: pointer; }
.preview-toggle:hover { color: var(--ink); border-color: var(--accent); }
.category-arrow { display: grid; place-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 26px; line-height: 1; }
.category-arrow:disabled { opacity: .25; cursor: default; }
.category-arrow:hover:enabled { background: var(--highlight); }
.work-viewport { overflow: hidden; transition: height .32s ease; }
.work-track { display: flex; align-items: flex-start; transition: transform .38s cubic-bezier(.22,.7,.28,1); }
.work-panel { flex: 0 0 100%; min-width: 0; padding: 6px; }
.work-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.work-panel .project-button:focus-visible { outline-offset: 3px; }
.work-viewport { margin: -6px; }
.work-main.is-dragging, .work-main.is-dragging * { cursor: grabbing; }
.work-main.is-dragging .work-track { transition: none; }
.work-empty { min-height: clamp(300px, 36vw, 500px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; padding: 32px; }
.work-empty h2 { font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.work-empty p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.photo-label::before { display: none; }
.video-frame.is-photo { aspect-ratio: auto; background: transparent; }
.video-frame.is-photo img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
@media (max-width: 760px) {
  .work-heading { flex-wrap: wrap; gap: 14px; }
  .work-tabs { flex: 1 1 100%; gap: 4px; }
  .work-tabs button { padding: 9px 10px; font-size: 12px; }
  .work-controls { margin-left: auto; gap: 0; }
  .work-controls .section-index { display: none; }
  .category-arrow { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Project pages: full-width player, information, then optional photographs. */
.detail-breadcrumb { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding: 18px 0 24px; font-size: 14px; line-height: 1.5; }
.detail-breadcrumb a { flex-shrink: 0; }
.detail-breadcrumb span { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-player { width: 100%; aspect-ratio: var(--video-ratio, 1.7778); background: #101110; border-radius: 14px; overflow: hidden; }
.detail-player-portrait { width: min(100%, calc(76svh * var(--video-ratio))); margin-inline: auto; }
.detail-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-information { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 64px); padding: 36px 0 60px; font-size: 16px; line-height: 1.65; }
.project-heading { grid-column: 1 / -1; min-width: 0; }
.project-information h1 { font-size: clamp(22px, 1.65vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; max-width: 100%; text-wrap: balance; overflow-wrap: break-word; }
.project-category { color: var(--muted); margin-top: 14px; font-size: 14px; }
.project-description p + p { margin-top: 18px; }
.project-facts { grid-column: 2; color: var(--muted); font-size: 14px; }
.project-facts > * + * { margin-top: 12px; }
.project-credits { margin: 0; white-space: pre-line; }
.project-credits div { display: flex; flex-wrap: wrap; gap: 6px; }
.project-credits dt::after { content: '.'; }
.project-credits dd { margin: 0; color: var(--ink); }
.project-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.project-title-row h1 { min-width: 0; }
.project-gallery { columns: 3; column-gap: 16px; }
.gallery-photo { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--highlight); cursor: zoom-in; break-inside: avoid; }
.gallery-photo img { display: block; width: 100%; height: auto; }
.hero-photo { margin-bottom: 0; border-radius: 14px; }
.hero-photo img { max-height: 78svh; object-fit: contain; background: #151713; }
.project-pagination { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; margin-top: 48px; border-top: 1px solid var(--line); padding: 28px 0 56px; font-size: 15px; }
.project-pagination a { max-width: 65%; text-decoration: none; }
.project-pagination a:last-child:not(:first-child) { text-align: right; }
.project-pagination a:hover { text-decoration: underline; }
.project-pagination span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.project-pagination strong { font-weight: 400; line-height: 1.5; }
.photo-viewer { width: min(100%, 1440px); }
.photo-toolbar, .photo-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; }
#full-photo { display: block; width: 100%; height: 76svh; object-fit: contain; }
.photo-navigation button:disabled { opacity: .3; cursor: default; }
@media (max-width: 900px) {
  .project-gallery { columns: 2; }
  .project-information { grid-template-columns: 1fr 1fr; }
  .project-facts { grid-column: 2; }
  .project-description { grid-column: 1; }
}
@media (max-width: 600px) {
  .detail-breadcrumb { padding: 12px 0 18px; gap: 12px; }
  .project-information { grid-template-columns: 1fr; gap: 22px; padding: 26px 0 36px; }
  .project-facts, .project-description { grid-column: auto; grid-row: auto; }
  .project-gallery { columns: 1; }
  .project-pagination { gap: 20px; padding-bottom: 36px; }
  .project-pagination a { max-width: 58%; }
  .hero-photo img { max-height: none; }
}

/* Type and brown ink hierarchy shared by every page. */
h1, h2, h3, .project-title, .statement, .contact-title, .work-tabs, .eyebrow, nav, .detail-breadcrumb, .preview-toggle, .category-arrow, .close-button, .play-label { font-family: var(--heading-font); }
.biography, .project-description, .contact-details { color: var(--body-ink); }
.project-information { row-gap: 24px; }
.project-heading .project-category { margin-top: 10px; }
@media (max-width: 600px) {
  .project-heading, .project-description, .project-facts { grid-column: 1; }
  .project-information h1 { font-size: 22px; }
}

/* Keep slender slab lettering as readable as the selected category. */
.biography, .project-description, .project-category, .project-facts, .contact-details { font-weight: 500; }
@media (max-width: 600px) {
  .project-title-row { flex-wrap: wrap; gap: 12px; }
}

/* A full-width celluloid stage with the original parchment header and footer. */
.work-main {
  --ink: #eee4cf;
  --muted: #b9aa92;
  --accent: #d2b88c;
  --line: rgb(210 184 140 / 22%);
  --highlight: rgb(210 184 140 / 10%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #20211f;
  color: var(--ink);
  padding-top: 28px;
  padding-bottom: 30px;
}
.work-main .work-section { position: relative; z-index: 1; }
.work-main .section-heading { border-top: 0; padding-top: 16px; padding-bottom: 26px; }
.work-main .work-tabs button { color: var(--muted); font-weight: 400; }
.work-main .work-tabs button[aria-selected="true"] { color: #eee4cf; font-weight: 600; }
.work-main .work-tabs button:hover { color: var(--accent); }
.work-main .project-title { font-family: var(--heading-font); color: #eee4cf; }
.film-atmosphere { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.film-glow {
  position: absolute;
  inset: -60px;
  opacity: .68;
  background:
    radial-gradient(ellipse 35% 38% at 0% 100%, rgb(204 119 42 / 50%), transparent 78%),
    radial-gradient(ellipse 28% 32% at 100% 0%, rgb(191 148 74 / 32%), transparent 80%);
  animation: film-halation 16s ease-in-out infinite alternate;
}
.film-rail {
  position: absolute;
  left: -152px;
  right: -152px;
  height: 24px;
  opacity: .7;
  background: url('/assets/film-perforation.svg') 0 center / 38px 24px repeat-x;
}
.film-rail-top { top: 5px; }
.film-rail-bottom { bottom: 5px; }
@keyframes film-halation {
  from { transform: translate(-10px, 4px) scale(1); filter: brightness(.88); }
  to { transform: translate(18px, -8px) scale(1.06); filter: brightness(1.14); }
}
@media (max-width: 640px) {
  .work-main { padding-top: 28px; padding-bottom: 28px; }
  .work-main .section-heading { padding-bottom: 18px; }
  .film-glow { background-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .film-glow { animation: none; }
}

/* One shared footer for all published pages. */
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; flex-wrap: nowrap; }
.site-footer > p:first-child { justify-self: start; white-space: nowrap; }
.site-footer .footer-location { justify-self: center; font-family: var(--heading-font); font-size: 11px; font-weight: 400; letter-spacing: .16em; line-height: 1.5; white-space: nowrap; }
.site-footer .footer-socials { justify-self: end; display: flex; align-items: center; gap: 0; }
.site-footer .footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; color: var(--ink); border-radius: 50%; }
.site-footer .footer-socials a:hover { color: var(--accent); background: var(--highlight); }
.footer-socials svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-return { display: flex; justify-content: flex-end; padding-top: 16px; }
.page-return a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; }
@media (max-width: 640px) {
  .site-footer { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; padding: 12px 0; }
  .site-footer > p:first-child { font-size: 9px; }
  .site-footer .footer-location { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 360px) { .site-footer > p:first-child { font-size: 8px; } .site-footer .footer-location { font-size: 9px; letter-spacing: .04em; } }

/* Shared header coordinates, independent of each page's content width. */
.page-shell > .site-header {
  width: min(90vw, 2280px);
  max-width: none;
  margin-inline: 0;
  align-self: center;
  flex-shrink: 0;
  padding: 24px 0;
}
.site-header > nav { line-height: 1.5; }
@media (max-width: 1000px) {
  .page-shell > .site-header { width: calc(100vw - var(--gutter) * 2); }
}
@media (max-width: 640px) {
  .page-shell > .site-header { padding: 16px 0; }
}

/* Fit every film format within the available first-screen space. */
.detail-player,
.detail-player-portrait {
  --player-height: max(220px, calc(100svh - 290px));
  width: min(100%, calc(var(--player-height) * var(--video-ratio, 1.7778)));
  margin-inline: auto;
}
.detail-page .project-information { padding-top: 24px; }
@media (max-width: 600px) {
  .detail-player { --player-height: max(180px, calc(100svh - 275px)); }
  .detail-page .project-information { padding-top: 20px; }
}

/* Center project titles above their category and description. */
.project-caption, .project-caption .project-title { text-align: center; }
.detail-page .project-title-row { display: block; }
.detail-page .project-title-row h1 { text-align: center; }
.detail-page .project-category { text-align: center; }

/* Related film versions and excerpts sit beneath the project introduction. */
.related-videos { margin: 0 0 44px; }
.related-video-grid { columns: 3; column-gap: 24px; }
.related-video { display: block; min-width: 0; margin-bottom: 24px; break-inside: avoid; }
.related-video-player { width: 100%; aspect-ratio: var(--video-ratio, 1.7778); overflow: hidden; border-radius: 14px; background: #101110; }
.related-video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .related-video-grid { columns: 2; }
}
@media (max-width: 600px) {
  .related-video-grid { columns: 1; }
}

/* Photography opens with its title and flows directly into the full gallery. */
.photography-detail .project-information { padding: 8px 0 26px; row-gap: 12px; }
.photography-detail .project-description { grid-column: 1 / -1; font-size: 14px; }
.photo-group + .photo-group { margin-top: 36px; }
.photo-group h2 { font-size: 18px; font-weight: 400; margin: 0 0 18px; }
.photo-group .project-gallery { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.photo-group .gallery-photo { margin: 0; }
@media (max-width: 900px) { .photo-group .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .photo-group .project-gallery { grid-template-columns: minmax(0, 1fr); } }
