@import url('fonts.css');

:root {
  --dark: #0a1510;
  --deep: #080f0b;
  --surface: #10221a;
  --light: #f7f4e8;
  --soft: #bfcab8;
  --lime: #c7dea1;
  --line: #d9eac335;
  --heading: 'Instrument Serif', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--light); background: var(--dark); font: 500 1rem/1.72 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
h1, h2, h3 { font: 400 1em/.91 var(--heading); letter-spacing: -.019em; }
h1 { font-size: clamp(5.5rem, 12vw, 12.4rem); }
h2 { font-size: clamp(4.1rem, 8.7vw, 9.1rem); }
h3 { font-size: clamp(2.15rem, 4.3vw, 4.55rem); }
em { font-weight: inherit; color: var(--lime); }
.wrap { width: min(100% - 116px, 1360px); margin-inline: auto; }
.section { padding-block: clamp(84px, 12vw, 174px); }
.label { margin-bottom: 17px; color: var(--lime); font-size: .875rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.skip { position: fixed; z-index: 14; top: 10px; left: 10px; padding: 11px 15px; color: var(--deep); background: var(--light); transform: translateY(-160%); }
.skip:focus { transform: none; }

.opening { position: fixed; z-index: 11; inset: 0; pointer-events: none; display: grid; place-items: center; background: var(--deep); animation: fade-intro .8s .1s both ease; }
.opening img { width: 128px; height: auto; animation: opening-mark .75s both ease; }
@keyframes fade-intro { 0%, 38% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes opening-mark { from { opacity: 0; transform: translateY(8px); } 52% { opacity: 1; } to { opacity: 0; transform: translateY(-4px); } }
.site-header { position: fixed; z-index: 5; inset: 0 0 auto; transition: background .28s; }
.site-header.is-scrolled { background: #0a1510ee; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(15px); }
.site-nav { display: flex; height: 76px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #ffffff20; }
.site-header.is-scrolled .site-nav { border-color: transparent; }
.brand { flex: none; }
.brand img { width: 90px; height: auto; }
#hauptmenue { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 37px); font-size: .875rem; font-weight: 700; }
#hauptmenue a { color: #f5f3e8; }
#hauptmenue a:hover { color: var(--lime); }
#hauptmenue .nav-invoice { color: var(--lime); border: 1px solid #c6dba680; border-radius: 2px; padding: 8px 14px; }
#hauptmenue .nav-invoice:hover { color: var(--deep); background: var(--lime); }
.language-switch { display: flex; flex: none; gap: 3px; margin-left: 4px; border: 1px solid var(--line); border-radius: 3px; padding: 3px; }
.language-switch a { display: grid; min-width: 34px; min-height: 34px; place-items: center; border-radius: 2px; color: var(--light); font-size: .875rem; font-weight: 800; }
.language-switch a[aria-current], .language-switch a:hover { color: var(--deep); background: var(--lime); }
.menu-toggle { display: none; }
.scroll-progress { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 2px; background: var(--lime); transform: scaleX(var(--page-progress, 0)); transform-origin: left center; pointer-events: none; }

.hero { position: relative; display: flex; align-items: center; min-height: max(740px, 100svh); overflow: hidden; isolation: isolate; background: #07110b; }
.hero-media { position: absolute; z-index: -3; inset: -1px; background: #091710 url('assets/fotos/meva-studyo.webp') 64% 50% / cover no-repeat; transform: translateY(var(--hero-shift, 0px)) scale(1.035); }
.hero-product { position: absolute; z-index: -1; top: 50%; right: max(5%, calc((100% - 1280px) / 2)); width: min(39vw, 610px); height: min(76%, 790px); object-fit: contain; transform: translateY(-46%); filter: drop-shadow(0 20px 34px #000a); }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 63% center; opacity: 0; }
.hero.has-video .hero-video { opacity: .65; }
.hero::after { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #060e08b0, #06100900 63%), linear-gradient(0deg, #0a1510 0%, transparent 21%, transparent 80%, #050d0870 100%); pointer-events: none; }
.hero-copy { padding-block: 110px 125px; }
.hero-copy .label { margin-bottom: 22px; }
.hero h1 { width: fit-content; font-size: clamp(5rem, 10.4vw, 11rem); text-shadow: 0 10px 42px #0007; animation: title-enter 1.1s .28s backwards ease-out; }
.hero h1 em { display: inline-block; margin-left: .36em; }
@keyframes title-enter { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-description { margin-top: 29px; color: #e0e9d8; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 2px; font-size: .875rem; font-weight: 800; line-height: 1.3; transition: background .23s, color .23s, border-color .23s; }
.button-lime { background: var(--lime); color: #142016; }
.button-lime:hover { background: var(--light); }
.button-outline { background: transparent; border-color: #c7dea188; color: var(--lime); }
.button-outline:hover, .button-outline[aria-pressed=true] { background: var(--lime); color: var(--deep); }
.button-green { background: #20533c; color: #fff; }
.button-green:hover { background: #143725; }
.text-link { width: fit-content; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; color: var(--lime); background: transparent; font-size: .9375rem; font-weight: 800; }
.text-link:hover { color: var(--light); }
.hero-foot { position: absolute; inset: auto 0 27px; display: flex; justify-content: space-between; align-items: end; color: #edede4; }
.scroll-cue { display: inline-flex; align-items: center; gap: 11px; font-size: .875rem; }
.scroll-cue span { height: 35px; width: 1px; background: var(--lime); animation: cue 2s ease-in-out infinite; transform-origin: bottom; }
@keyframes cue { 50% { transform: scaleY(.55); } }
.hero-coordinate { text-align: right; font-size: .875rem; }
.hero-coordinate span { color: var(--soft); }

.showroom { background: radial-gradient(ellipse at 72% 52%, #193d2b, var(--dark) 68%); min-height: 90svh; display: grid; align-items: center; }
.showroom-grid { display: grid; grid-template-columns: minmax(0,.98fr) minmax(0,1.02fr); gap: clamp(25px, 6vw, 102px); align-items: center; }
.showroom-intro { margin: 22px 0 29px; max-width: 36ch; color: var(--soft); }
.product-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.product-picker button { min-height: 45px; padding: 8px 12px; border: 1px solid var(--line); color: var(--soft); background: #ffffff05; border-radius: 2px; font-size: .875rem; font-weight: 700; }
.product-picker button:hover { border-color: var(--lime); color: var(--lime); }
.product-picker button[aria-pressed=true] { border-color: var(--lime); color: var(--deep); background: var(--lime); }
.showroom-selection { min-height: 93px; margin-bottom: 12px; }
.showroom-selection h3 { font-size: clamp(2.5rem, 4vw, 4rem); }
.showroom-selection p { margin-top: 9px; color: var(--soft); }
.showroom-display { min-width: 0; }
.product-stage { height: clamp(365px, 43vw, 580px); display: grid; place-items: center; position: relative; isolation: isolate; border: 1px solid #c7dea135; background: radial-gradient(ellipse at center, #5c75572e, #06100b40 65%); }
.stage-rings { position: absolute; z-index: -1; width: 72%; aspect-ratio: 1; border: 1px solid #c7dea124; border-radius: 50%; box-shadow: 0 0 0 20px #c7dea109, inset 0 0 0 22px #c7dea109; }
.stage-rings::after { content: ''; position: absolute; inset: 49% -5%; border-top: 1px solid #c7dea123; transform: rotate(-21deg); }
.product-object { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.product-object picture { width: 68%; height: 86%; min-height: 0; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.product-object img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(17px 20px 34px #061108a0); }
@keyframes float { 0%, 100% { transform: translateY(5px) rotate(-5deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }

.journey { background: #101f17; }
.journey-grid { padding-block: clamp(85px, 10vw, 145px); display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,.76fr); align-items: start; gap: clamp(32px, 8vw, 120px); }
.journey-scene { position: sticky; top: 112px; }
.journey-scene h2 { margin-bottom: 27px; font-size: clamp(3.75rem, 6.8vw, 7.6rem); }
.journey-image { aspect-ratio: 1.65; position: relative; overflow: hidden; background: #0a120d; }
.journey-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .48s ease, transform .85s ease; filter: saturate(.82); }
.journey-image img:first-child { opacity: 1; transform: none; }
.journey-image[data-step] img { opacity: 0; transform: scale(1.06); }
.journey-image[data-step="0"] img:nth-child(1), .journey-image[data-step="1"] img:nth-child(2), .journey-image[data-step="2"] img:nth-child(3) { opacity: 1; transform: none; }
.journey-steps { list-style: none; padding: 0; }
.journey-step { min-height: clamp(280px, 45svh, 480px); display: flex; flex-direction: column; justify-content: center; align-items: start; padding: 28px 0 28px 25px; border-left: 1px solid var(--line); }
.journey-step.is-current { border-color: var(--lime); }
.step-count { margin-bottom: 20px; color: var(--lime); font-size: .9rem; font-weight: 700; letter-spacing: .1em; }
.journey-step p { margin-top: 16px; max-width: 40ch; color: var(--soft); }
.journey-step .text-link { margin-top: 18px; }

.finder { position: relative; display: grid; place-items: center; min-height: min(780px, 90svh); isolation: isolate; overflow: hidden; text-align: center; }
.finder-photo { position: absolute; z-index: -2; inset: -4%; transform: translateY(var(--finder-shift, 0px)) scale(1.05); background: url('assets/fotos/sandvic-servis.webp') 50% 57% / cover no-repeat; }
.finder::after { position: absolute; content: ''; z-index: -1; inset: 0; background: linear-gradient(90deg, #07120bcf, #07120b69 55%, #07120bcc), linear-gradient(0deg, #0a1510 0%, #0a151030 49%, #101f17 100%); }
.finder-inner { padding-block: 78px; }
.finder h2 { text-shadow: 0 4px 26px #0008; }
.finder p:not(.label) { margin: 22px auto; color: #f2f2e9; }
.contact { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: end; gap: clamp(28px, 8vw, 120px); }
.contact p:not(.label) { margin: 23px 0; color: var(--soft); }
.contact address { font-style: normal; }
.contact address a { display: block; padding-block: 13px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact address a:hover { color: var(--lime); }
.contact address span { display: block; color: var(--soft); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.footer-layout { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 29px; color: var(--soft); }
.footer-layout img { width: 80px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-left: auto; font-size: .875rem; }
.footer-links a:hover { color: var(--lime); }

.motion [data-reveal] { transition: transform .75s cubic-bezier(.19,1,.22,1), opacity .55s; }
.motion [data-reveal]:not(.is-visible) { opacity: .03; transform: translateY(25px); }

@media (max-width: 990px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: max(640px, 91svh); }
  .hero h1 { font-size: clamp(5.4rem, 13.5vw, 9rem); }
  .journey-grid { gap: 34px; }
}
@media (max-width: 1090px) {
  html { scroll-padding-top: 65px; }
  .wrap { width: calc(100% - 38px); }
  .site-nav { height: 63px; }
  .brand img { width: 72px; }
  .menu-toggle { display: block; min-height: 42px; padding: 5px 13px; font-size: .875rem; font-weight: 750; border: 1px solid var(--line); color: var(--light); background: #0b170fc9; border-radius: 2px; }
  .language-switch { margin-left: auto; }
  .site-nav:has(.menu-toggle:not([hidden])) #hauptmenue:not(.is-open) { display: none; }
  #hauptmenue { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 19px 23px; background: #0b170ffa; box-shadow: 0 14px 30px #0008; }
  #hauptmenue a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  #hauptmenue .nav-invoice { width: fit-content; margin-top: 14px; }
}
@media (max-width: 710px) {
  .hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; align-items: end; padding-top: 89px; }
  .hero-media { background-position: 76% 38%; transform: none; }
  .hero-video { object-position: 64% center; }
  .hero.has-video::after { background: linear-gradient(0deg, #0a1510 0%, #071008ed 20%, #071008ce 40%, #07100817 71%, #07100870 100%); }
  .hero-product { position: relative; inset: auto; justify-self: center; width: min(66vw, 300px); height: min(42svh, 380px); transform: none; }
  .hero::after { background: linear-gradient(0deg, #0a1510 0%, #071008d6 21%, #07100800 74%, #07100866 100%); }
  .hero-copy { padding-block: 25px 89px; }
  .hero-copy .label { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(4.25rem, 16.5vw, 7.6rem); }
  .hero h1 em { margin-left: .25em; }
  .hero-description { margin-top: 17px; font-size: 1rem; }
  .actions { margin-top: 18px; gap: 12px 14px; }
  .hero-foot { bottom: 20px; }
  .hero-coordinate { display: none; }
  .showroom-grid, .journey-grid, .contact { grid-template-columns: 1fr; }
  .product-picker { margin-bottom: 21px; }
  .showroom-selection { min-height: 72px; }
  .showroom-display { margin-top: 5px; }
  .product-stage { height: clamp(340px, 85vw, 460px); }
  .journey-scene { position: static; }
  .journey-step { min-height: 0; padding: 22px 0 26px 18px; }
  .step-count { margin-bottom: 13px; }
  .finder { min-height: 610px; }
  .finder h2 { font-size: clamp(3.2rem, 11vw, 6rem); }
  .footer-links { width: 100%; margin: 0; }
  .site-dialog { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .opening { display: none; }
  .motion [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
.site-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 42px 36px 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 25px 75px #061c1280; }
.site-dialog::backdrop { background: #081e15ad; backdrop-filter: blur(5px); }
.site-dialog h2 { font-size: clamp(2.1rem, 5vw, 3.25rem); margin-bottom: 15px; }
.close-dialog { position: absolute; right: 13px; top: 13px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 1.6rem; line-height: 1; }
.close-dialog:hover { background: var(--mist); }
.detail-product { display: block; margin: 15px auto; max-width: 85%; height: min(24vh, 210px); object-fit: contain; }
.detail-photo { width: 100%; height: auto; max-height: 58dvh; object-fit: contain; }
#detail-content .button { margin-top: 18px; }
.invoice-dialog { background: radial-gradient(ellipse at 90% 0%, #e4efd5, var(--paper) 65%); }
.invoice-dialog.is-expanded { width: min(780px, calc(100% - 28px)); }
.invoice-dialog h2 { overflow-wrap: anywhere; }
.invoice-dialog h2 em { white-space: nowrap; }
.invoice-dialog .label { padding-right: 32px; }
.invoice-summary { color: var(--body); }
.invoice-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 19px; }
.invoice-later { border: 0; background: transparent; color: var(--body); padding: 12px 0 0; margin-top: 7px; font-size: .9375rem; }
#formular-rahmen { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
#formular-rahmen iframe { display: block; width: 100%; height: min(540px, 60dvh); min-height: 270px; border: 0; background: white; }

.site-dialog {
  --paper: #f6f8ee;
  --ink: #183829;
  --body: #3b5346;
  --line: #cad9c6;
  --mist: #e5eddd;
  --green: #27543c;
  --deep: #122b1e;
  color-scheme: light;
}
.site-dialog .label, .site-dialog em, .site-dialog .text-link { color: var(--green); }
.site-dialog .text-link:hover { color: var(--deep); }
.site-dialog h2 { line-height: 1; }
.site-dialog .invoice-summary, .site-dialog .invoice-later { color: #41574a; }
@media (max-width: 710px) { .site-dialog { padding-inline: 21px; } }

html[lang=tr] .hero h1 { font-size: clamp(4.6rem, 11.5vw, 11.5rem); }
html[lang=tr] .showroom h2, html[lang=tr] .contact h2 { font-size: clamp(3.4rem, 7.5vw, 7.9rem); }
@media (max-width: 710px) {
  html[lang=tr] .hero h1 { font-size: clamp(4.05rem, 16.5vw, 7.2rem); }
  html[lang=tr] .showroom h2, html[lang=tr] .contact h2 { font-size: clamp(3rem, 12.7vw, 5.8rem); }
}

/* Different contrast levels keep food warm and production imagery readable. */
.grade-factory { --photo-grade: contrast(1.11) saturate(.81) brightness(.91); }
.grade-grill { --photo-grade: contrast(1.12) saturate(.92) brightness(.88) sepia(.09); }
.grade-location { --photo-grade: contrast(1.13) saturate(.80) brightness(.90) sepia(.08); }
.grade-halal { --photo-grade: contrast(1.05) saturate(.94) brightness(.96); }
.grade-cutout { --photo-grade: contrast(1.08) saturate(.91) brightness(1.07); }
.journey-image img,
.photo-card img,
.photo-preview img { filter: var(--photo-grade, none); }

.serving {
  padding-block: clamp(76px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 6vw, 95px);
  align-items: center;
}
.serving-photo { overflow: hidden; margin: 0; border: 1px solid var(--line); }
.serving-photo img { width: 100%; height: auto; }
.serving h2, .quality h2, .gallery-heading h2 { font-size: clamp(3.6rem, 7.6vw, 7.9rem); }
.serving-copy > p:not(.label), .quality p { margin: 20px 0; color: var(--soft); max-width: 46ch; }
.quality {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
  border-block: 1px solid var(--line);
  padding-block: clamp(52px, 7vw, 114px);
}
.quality-marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quality-marks figure { margin: 0; display: grid; justify-items: center; align-content: center; padding: 14px; background: linear-gradient(160deg, #263b2c, #0b1911); border: 1px solid var(--line); text-align: center; }
.quality-marks img { width: min(100%, 132px); height: auto; }
.quality-marks figcaption { margin-top: 7px; font-size: .875rem; line-height: 1.4; color: var(--soft); overflow-wrap: anywhere; }
.quality-marks .text-link { font-size: inherit; }

.gallery-section { padding-block: clamp(76px, 12vw, 150px); }
.gallery-heading { margin-bottom: 22px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.gallery-filters button {
  min-height: 43px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--soft);
  background: transparent;
  font-size: .9rem;
  font-weight: 750;
}
.gallery-filters button:hover { border-color: var(--lime); color: var(--lime); }
.gallery-filters button[aria-pressed=true] { color: var(--deep); background: var(--lime); border-color: var(--lime); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.photo-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); }
.photo-link { display: grid; position: relative; aspect-ratio: 1.57; align-items: end; isolation: isolate; background: #15251c; }
.photo-link:focus-visible { outline-offset: -3px; }
.photo-link::after { content: ''; position: absolute; z-index: -1; inset: 47% 0 0; background: linear-gradient(transparent, #080f0bea 88%); pointer-events: none; }
.photo-link img { position: absolute; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; transition: transform .4s; }
.grade-cutout .photo-link { background: radial-gradient(ellipse at center, #55462c, #12281c 69%, #0d1a14); }
.grade-cutout .photo-link img { inset: 8% 9%; width: 82%; height: 76%; object-fit: contain; }
.photo-link:hover img { transform: scale(1.045); }
.photo-link span { display: block; position: relative; padding: 14px; font-size: .875rem; font-weight: 750; line-height: 1.4; }
.gallery-more { margin-top: 20px; }
.gallery-count { margin-top: 12px; color: var(--soft); font-size: .875rem; }
.gallery-count:empty { display: none; }

.gallery-dialog { max-width: min(1020px, calc(100% - 20px)); width: 100%; max-height: calc(100dvh - 18px); margin: auto; padding: 10px; background: var(--deep); border: 1px solid var(--line); color: var(--light); }
.gallery-dialog::backdrop { background: #060e0af0; }
.photo-preview { margin: 0; text-align: center; min-height: 110px; }
.photo-preview img { width: 100%; height: min(67dvh, 690px); object-fit: contain; background: radial-gradient(ellipse at center, #1e3124, var(--deep)); }
.photo-preview figcaption { margin: 10px 38px 0; font-size: .96rem; }
.photo-controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 9px; }
.photo-controls button, .photo-close { min-width: 43px; min-height: 43px; border: 1px solid var(--line); background: var(--deep); color: var(--light); font-size: 1.5rem; line-height: 1; }
.photo-controls button:hover, .photo-close:hover { border-color: var(--lime); }
.photo-close { position: absolute; z-index: 1; right: 16px; top: 16px; }

@media (max-width: 820px) {
  .serving, .quality { grid-template-columns: 1fr; }
  .quality-marks { max-width: 490px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .photo-link { aspect-ratio: 1.21; }
  .photo-link span { padding: 8px; }
  .photo-preview figcaption { margin-inline: 12px; }
}

/* Keep the fixed navigation below the WordPress admin toolbar. */
html:has(#wpadminbar) .site-header { top: 32px; }
@media (max-width: 782px) {
  html:has(#wpadminbar) .site-header { top: 46px; }
  html:has(#wpadminbar) .site-header.is-scrolled { top: 0; }
}
