@font-face {
  font-family:"Euclid Gallery";
  src:local("EuclidCircularA-Bold"),url("assets/fonts/EuclidCircularA-Bold.ttf") format("truetype");
  font-weight:700; font-style:normal; font-display:swap;
}
html.gallery-lenis-active { scroll-behavior:auto !important; }
.gallery-page .main { position:relative; }
.gallery-scroll-guide{position:fixed;z-index:30;left:calc(var(--sidebar) + 10px);top:50%;translate:0 -50%;display:grid;justify-items:center;width:26px;color:#fdd957;}
.gallery-scroll-guide[hidden]{display:none;}
.gallery-scroll-track{position:relative;width:22px;height:116px;margin:5px 0;touch-action:none;cursor:ns-resize;}
.gallery-scroll-rail{position:absolute;left:50%;top:0;bottom:0;width:2px;translate:-50% 0;border-radius:3px;background:rgba(253,217,87,.24);}
.gallery-scroll-thumb{position:absolute;left:50%;top:0;width:4px;height:22px;border-radius:4px;background:#fdd957;pointer-events:none;}
.gallery-scroll-track:focus-visible{outline:1px solid #fdd957;outline-offset:3px;border-radius:4px;}
.gallery-page-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.gallery-entry-pending .gallery-page .gallery-showcase { opacity:0; }
.gallery-showcase { padding:0 5.5vw 5svh; }
.gallery-project { min-height:100vh; min-height:100svh; display:flex; align-items:center; justify-content:center; padding:0; }
.gallery-project-card { position:relative; display:block; width:100%; margin:0; }
.gallery-cover-stage { position:relative; z-index:1; display:block; width:58%; max-width:min(680px,calc((100svh - 200px) * 100 / 76)); aspect-ratio:100 / 76; margin-inline:auto; transform:none; }
.gallery-cover { width:100%; height:100%; aspect-ratio:100 / 76; margin:0; overflow:hidden; background:var(--paper); }
.gallery-cover img { display:block; width:100%; height:100%; object-fit:cover; filter:none; transition:transform 550ms var(--ease); }
.gallery-cover img[src*="fridgekey-cover"] { object-fit:contain; background:#292a36; }
/* The surrounding information is drawn from each existing case study. */
.gallery-project-left { position:absolute; z-index:2; top:50%; left:0; width:18%; transform:translateY(-50%); }
.gallery-project-facts { display:grid; gap:20px; margin:0; }
.gallery-project-facts > div { display:grid; grid-template-columns:52px minmax(0,1fr); gap:10px; align-items:start; }
.gallery-project-facts dt { color:var(--muted); font-size:11px; line-height:1.5; }
.gallery-project-facts dd { margin:0; color:var(--ink); font-size:12px; line-height:1.5; }
.gallery-work-index { margin-top:44px; }
.gallery-work-label { display:block; margin-bottom:12px; color:var(--muted); font-size:11px; line-height:1.5; }
.gallery-project-number { display:flex; align-items:baseline; justify-content:space-between; gap:10px; color:#fdd957; }
.gallery-project-number > span { font-family:var(--font-heading); font-size:clamp(60px,7.4vw,124px); font-weight:400; line-height:.85; letter-spacing:-.07em; }
.gallery-project-number small { color:var(--muted); font-size:12px; font-weight:400; letter-spacing:0; }
.gallery-project-info { position:absolute; z-index:2; top:50%; right:0; width:20%; transform:translateY(-50%); text-align:center; }
.gallery-project-type { margin:0 0 10px; color:var(--muted); font-size:12px; line-height:1.5; }
.gallery-project-info h2 { margin:0; font-family:"Euclid Gallery",var(--font-heading); color:var(--gallery-title-color,#fdd957); font-size:clamp(18px,1.9vw,32px); font-weight:700; line-height:1.1; letter-spacing:-.025em; }
/* These accents apply only to the right-hand project name. */
.gallery-project-title-link { display:inline-block; max-width:100%; color:var(--gallery-title-color,#fdd957); }
.gallery-project-title-link[href="projects/project-04.html"] { --gallery-title-color:#b58092; }
.gallery-project-title-link[href="projects/fridgekey.html"] { --gallery-title-color:#fff; }
.gallery-title-key { color:#3b5bff; }
.gallery-project-title-link[href="projects/naborfood.html"] { --gallery-title-color:#a5cf4a; }
.gallery-project-title-link[href="projects/project-03.html"] { --gallery-title-color:#ffd5d0; }
.gallery-project-divider { display:block; width:20px; height:1px; margin:20px auto; background:#fdd957; }
.gallery-project-summary { margin:0 auto; max-width:30ch; color:var(--ink); font-size:13px; line-height:1.6; }
.gallery-scroll-linked .gallery-project-card { will-change:opacity; }
.gallery-cover-stage:hover .gallery-cover img { transform:scale(1.025); }
.gallery-project-title-link:hover { text-decoration:underline; text-underline-offset:.15em; }
.gallery-project-card a:focus-visible { outline:2px solid #fdd957; outline-offset:6px; }
.gallery-project-card:has(a:focus-visible) { opacity:1 !important; }
.gallery-project-card:has(a:focus-visible) :is(.gallery-cover,.gallery-project-number) { transform:none !important; }
.gallery-project-card:has(a:focus-visible) .gallery-cover { opacity:1 !important; }
@media (max-width:1100px) {
  .gallery-project-facts { gap:14px; }
  .gallery-project-facts > div { display:block; }
  .gallery-project-facts dt { margin-bottom:4px; font-size:10px; }
  .gallery-project-facts dd { font-size:11px; }
  .gallery-work-index { margin-top:28px; }
  .gallery-project-number > span { font-size:clamp(56px,7vw,90px); }
  .gallery-project-type { font-size:10px; }
  .gallery-project-summary { font-size:12px; }
}
@media (max-width:820px) {
  .gallery-scroll-guide{left:0;width:18px;}
  .gallery-scroll-track{width:18px;height:92px;}
  .gallery-showcase { padding-inline:20px; padding-bottom:140px; }
  .gallery-project { min-height:calc(100svh - 56px); }
  .gallery-cover-stage { width:100%; max-width:640px; }
  .gallery-project-left { top:calc(100% + 24px); width:42%; transform:none; }
  .gallery-project-facts { gap:10px; }
  .gallery-project-facts > div { display:grid; grid-template-columns:42px minmax(0,1fr); gap:6px; }
  .gallery-project-facts dt { margin:0; }
  .gallery-project-facts dd { font-size:10px; line-height:1.5; }
  .gallery-work-index { margin-top:22px; }
  .gallery-work-label { font-size:10px; margin-bottom:8px; }
  .gallery-project-number > span { font-size:48px; }
  .gallery-project-number small { font-size:10px; }
  .gallery-project-info { top:calc(100% + 24px); width:50%; transform:none; }
  .gallery-project-info h2 { font-size:clamp(20px,5vw,28px); }
  .gallery-project-type { margin-bottom:10px; font-size:10px; }
  .gallery-project-divider { margin:14px auto; }
  .gallery-project-summary { font-size:12px; line-height:1.55; }
}
@media (max-width:820px) and (max-height:650px) {
  .gallery-cover-stage { width:min(100%,calc((100svh - 300px) * 100 / 76)); }
}
@media (prefers-reduced-motion:reduce) {
  .gallery-entry-pending .gallery-page .gallery-showcase { opacity:1; }
  .gallery-scroll-linked .gallery-project-card { opacity:1 !important; will-change:auto; }
  .gallery-showcase,.gallery-cover-stage,.gallery-cover { opacity:1 !important; }
  .gallery-showcase,.gallery-cover-stage,.gallery-cover,.gallery-cover img,.gallery-project-number { transform:none !important; translate:none !important; transition:none; }
}
@media print {
  .gallery-scroll-guide{display:none;}
  .gallery-project { min-height:0; padding:40px 0 220px; break-inside:avoid; }
  .gallery-entry-pending .gallery-page .gallery-showcase,.gallery-scroll-linked .gallery-project-card { opacity:1 !important; }
  .gallery-showcase,.gallery-cover-stage,.gallery-cover { opacity:1 !important; }
  .gallery-showcase,.gallery-cover,.gallery-project-number { transform:none !important; translate:none !important; }
  .gallery-project-number,.gallery-project-title-link,.gallery-title-key { color:#423c30; }
}
