/* ==========================================================================
   Ophthalmology Research Laboratory — lab.eye.edu.kg
   Bilingual static site (Kyrgyz / English)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:         #f5f9fa;
  --bg-alt:     #ecf3f5;
  --surface:    #ffffff;
  --surface-2:  #f0f6f7;
  --ink:        #0b1f28;
  --ink-2:      #3b5865;
  --ink-3:      #6d8994;
  --line:       #dae7eb;
  --line-soft:  #e8f0f2;
  --brand:      #0e7c8a;
  --brand-2:    #17a2ad;
  --brand-deep: #06414a;
  --brand-tint: #e2f2f4;
  --accent:     #d97a2b;
  --accent-tint:#fbeee1;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 40, .05), 0 2px 8px rgba(11, 31, 40, .04);
  --shadow-md: 0 4px 12px rgba(11, 31, 40, .07), 0 16px 40px rgba(11, 31, 40, .07);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Noto Sans", "Helvetica Neue", Arial, "PT Sans", sans-serif;

  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(64px, 8vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #071319;
    --bg-alt:     #0a1a21;
    --surface:    #0d2028;
    --surface-2:  #112932;
    --ink:        #e8f2f4;
    --ink-2:      #a9c3cc;
    --ink-3:      #7d9aa5;
    --line:       #1b333d;
    --line-soft:  #162b34;
    --brand:      #35b8c4;
    --brand-2:    #52d0d9;
    --brand-deep: #bfeaee;
    --brand-tint: #0f2f36;
    --accent:     #eb9a56;
    --accent-tint:#2c1e12;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 680; letter-spacing: -.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Bilingual switching ----------
   Both languages live in the DOM; CSS reveals one.
   Works with JavaScript disabled (Kyrgyz is the default).            */
[data-l] { display: none; }
html[data-lang="ky"] [data-l="ky"],
html[data-lang="en"] [data-l="en"] { display: contents; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--pad-x); }

section { padding-block: var(--sec-y); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.sec-head p  { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); }

.lead { color: var(--ink-2); font-size: clamp(16px, 1.7vw, 19px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 124, 138, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(14, 124, 138, .34); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 2px 14px rgba(11,31,40,.05); }

.nav { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.brand-text span { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 540;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .04em;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lang-switch button:hover { color: var(--ink); }
html[data-lang="ky"] .lang-switch button[data-set="ky"],
html[data-lang="en"] .lang-switch button[data-set="en"] {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(52% 46% at 78% 18%, color-mix(in srgb, var(--brand-2) 22%, transparent) 0%, transparent 68%),
    radial-gradient(46% 44% at 10% 8%,  color-mix(in srgb, var(--brand) 15%, transparent) 0%, transparent 66%),
    radial-gradient(40% 40% at 60% 92%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.hero-badge i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent);
  margin-left: 5px;
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 60ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 420px); height: auto; filter: drop-shadow(0 24px 48px rgba(11,31,40,.16)); }

/* iris animation */
.iris-ring { transform-origin: 210px 210px; animation: spin 42s linear infinite; }
.iris-ring-2 { transform-origin: 210px 210px; animation: spin 60s linear infinite reverse; }
.iris-pupil { transform-origin: 210px 210px; animation: pulse 5.5s ease-in-out infinite; }
.scan-line { animation: scan 4.5s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(.9); } }
@keyframes scan  { 0% { opacity: 0; transform: translateY(-96px); }
                   12%,72% { opacity: 1; }
                   100% { opacity: 0; transform: translateY(96px); } }
@media (prefers-reduced-motion: reduce) {
  .iris-ring, .iris-ring-2, .iris-pupil, .scan-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat { background: var(--surface); padding: clamp(22px, 3vw, 32px); text-align: center; }
.stat b {
  display: block;
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1.1;
}
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- Generic band ---------- */
.band-alt { background: var(--bg-alt); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about-copy p + p { margin-top: 18px; }
.about-points { display: grid; gap: 16px; }
.point {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.point .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand);
}
.point h4 { font-size: 16.5px; margin-bottom: 4px; }
.point p  { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* ---------- Card grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p  { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: 12.5px;
  font-weight: 560;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
}

/* ---------- Facilities ---------- */
.equip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.equip-item { background: var(--surface); padding: 26px 24px; display: flex; gap: 15px; align-items: flex-start; }
.equip-item .ico { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent); }
.equip-item h4 { font-size: 16px; margin-bottom: 5px; }
.equip-item p  { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.avatar {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 25px;
  font-weight: 640;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 8px 20px rgba(14,124,138,.28);
}
.member h4 { font-size: 17px; margin-bottom: 5px; }
.member .role { font-size: 14px; color: var(--brand); font-weight: 580; margin-bottom: 10px; }
.member .bio  { font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* ---------- Projects / timeline ---------- */
.projects { display: grid; gap: 16px; }
.project {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.project:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); transform: translateX(3px); }
.project .yr { font-size: 14px; font-weight: 640; color: var(--ink-3); letter-spacing: .03em; }
.project h4 { font-size: 17px; margin-bottom: 5px; }
.project p  { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.status {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.status.active { background: var(--brand-tint); color: var(--brand); }
.status.done   { background: var(--surface-2); color: var(--ink-3); }
.status.plan   { background: var(--accent-tint); color: var(--accent); }

/* ---------- Collaboration ---------- */
.collab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.collab-card .n {
  font-size: 13px; font-weight: 700; color: var(--brand);
  letter-spacing: .1em; margin-bottom: 14px; display: block;
}
.collab-card h3 { font-size: 19px; margin-bottom: 10px; }
.collab-card p  { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.contact-list { display: grid; gap: 20px; margin-top: 28px; }
.contact-row { display: flex; gap: 15px; align-items: flex-start; }
.contact-row .ico { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-tint); color: var(--brand); }
.contact-row .k { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.contact-row .v { font-size: 16px; color: var(--ink); font-weight: 550; }
.contact-note {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 24px;
  align-self: start;
}
.contact-note h4 { font-size: 16.5px; margin-bottom: 10px; }
.contact-note p  { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.hours { margin-top: 16px; display: grid; gap: 8px; font-size: 14.5px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.hours span { color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: color-mix(in srgb, #ffffff 82%, transparent);
  padding-block: clamp(48px, 6vw, 72px) 28px;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #061219; border-top: 1px solid var(--line); color: var(--ink-2); }
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 36px;
}
.site-footer h5 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; color: #fff; font-weight: 640; }
@media (prefers-color-scheme: dark) { .site-footer h5 { color: var(--ink); } }
.site-footer p, .site-footer li { font-size: 15px; line-height: 1.7; }
.site-footer a { color: inherit; opacity: .82; }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
@media (prefers-color-scheme: dark) { .footer-brand { color: var(--ink); } }
.footer-brand b { font-size: 17px; }
.footer-bot {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  opacity: .72;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .hero-art    { order: -1; }
  .hero-art svg{ width: min(72%, 300px); }
  .about-grid  { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--pad-x) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .brand-text span { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .project { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .project .status { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Lab photograph ---------- */
.photo-figure {
  margin: 0 0 clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.photo-figure img { display: block; width: 100%; height: auto; }
.photo-figure figcaption {
  padding: 15px clamp(18px, 2.4vw, 24px);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

/* ---------- Key reference ---------- */
.ref-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.ref-card > .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
}
.ref-card h3 { font-size: 19px; margin-bottom: 12px; }
.ref-cite {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-2);
  padding-left: 0;
  border: 0;
  margin: 0;
}
.ref-cite b { color: var(--ink); font-weight: 640; }
.ref-cite i { font-style: italic; }
.ref-doi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-all;
}
.ref-follow {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}
@media (max-width: 620px) {
  .ref-card { grid-template-columns: 1fr; }
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.photo-grid .photo-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.photo-grid .photo-figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-grid .photo-figure figcaption { flex: 1; }
