/* =========================================================
   Yoga You — Casablanca
   Identité : trame shoji (Japon) × zellige (Maroc), encre & lumière
   ========================================================= */

:root {
  --ink: #0B1B18;
  --ink-soft: #12261F;
  --jade: #2F4A42;
  --sage: #8FB49A;
  --rice: #EDF1E8;
  --paper: #FAFBF7;
  --sand: #E0D2B8;
  --ochre: #A8722C;
  --ochre-light: #E0B45C;
  --text: #14251F;
  --muted: #4E6259;
  --line: rgba(15, 40, 34, .16);
  --line-dark: rgba(224, 210, 184, .18);
  --wa: #25D366;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --r: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--rice);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ochre); }

:focus-visible {
  outline: 3px solid var(--ochre-light);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}

h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.6rem, 760px); margin-inline: auto; }

.eyebrow {
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ochre);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  flex: none;
}
.on-dark .eyebrow, .hero .eyebrow { color: var(--ochre-light); }

.lead { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--muted); }
.on-dark .lead { color: #C6D6C9; }

/* ---------------------------------------------------- trame signature */
.lattice-rule {
  height: 34px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  border-block: 1px solid var(--line);
  opacity: .85;
}

/* ---------------------------------------------------- en-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 251, 247, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--body);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .5rem .7rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: .5rem;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { border-color: var(--ochre); }
.site-nav a[aria-current="page"] { border-color: var(--jade); }

.has-sub { position: relative; }
.has-sub > button {
  font: inherit; font-size: .92rem; font-weight: 500;
  background: none; border: 0; padding: .35rem 0; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: .35rem;
  border-bottom: 1.5px solid transparent;
}
.has-sub > button:hover { border-color: var(--ochre); }
.submenu {
  position: absolute;
  top: calc(100% + .55rem);
  left: -1rem;
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(11, 27, 24, .12);
  padding: .5rem;
  display: none;
  flex-direction: column;
  gap: 0;
}
.submenu.open { display: flex; }
.submenu li { width: 100%; }
.submenu a { display: block; padding: .5rem .7rem; border-radius: var(--r); border: 0; }
.submenu a:hover { background: var(--rice); color: var(--jade); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ochre); color: #FFF8EC; }
.btn-primary:hover { background: #8F5F22; color: #FFF8EC; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.on-dark .btn-ghost, .hero .btn-ghost, .section-dark .btn-ghost { border-color: var(--line-dark); color: var(--sand); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .section-dark .btn-ghost:hover { color: #fff; border-color: var(--sand); }
.btn-wa { background: var(--wa); color: #06301A; }
.btn-wa:hover { background: #1FBB59; color: #06301A; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

/* ---------------------------------------------------- héros */
.hero {
  background: var(--ink);
  color: var(--sand);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(224, 210, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(224, 210, 184, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.4rem) 0;
}
.hero h1 { color: #F6EFE0; }
.hero-figure {
  border: 1px solid var(--line-dark);
  padding: 10px;
  background: rgba(224, 210, 184, .04);
}
.hero-figure img { width: 100%; height: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

.hero-home .hero-inner { padding: clamp(3.4rem, 9vw, 6.6rem) 0; }
.hero-marks {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: #B9C9BB;
}

/* fil d'ariane */
.crumbs {
  font-size: .8rem;
  color: #A9BCAC;
  padding: .9rem 0 0;
  position: relative; z-index: 1;
}
.crumbs a { color: #A9BCAC; }
.crumbs a:hover { color: var(--ochre-light); }

/* ---------------------------------------------------- sections */
.section { padding: clamp(3.2rem, 7vw, 5.4rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark {
  background: var(--ink-soft);
  color: var(--sand);
  border-block: 1px solid rgba(0,0,0,.2);
}
.section-dark h2, .section-dark h3 { color: #F6EFE0; }
.section-head { max-width: 680px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-dark .section-head p { color: #C6D6C9; }

.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--ochre); }

/* grilles & cartes */
.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .2rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
a.card:hover { border-color: var(--ochre); transform: translateY(-3px); }
.card-more {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ochre);
}
.section-alt .card { background: var(--rice); }

.card-thumb {
  margin: -1.6rem -1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 45 / 20;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* points clés */
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.keys li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.section-dark .keys li { border-color: var(--line-dark); }
.keys li:last-child { border-bottom: 0; padding-bottom: 0; }
.keys .k-mark {
  width: 26px; height: 26px; flex: none; margin-top: .32rem;
  border: 1px solid var(--ochre);
  position: relative;
}
.keys .k-mark::before, .keys .k-mark::after {
  content: ""; position: absolute; background: var(--ochre); opacity: .55;
}
.keys .k-mark::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.keys .k-mark::after { top: 50%; left: 0; right: 0; height: 1px; }
.keys b { display: block; font-size: 1.02rem; }
.keys span { color: var(--muted); font-size: .95rem; }
.section-dark .keys span { color: #C6D6C9; }

/* déroulé d'une séance */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.4rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ochre);
}
.flow b { display: block; font-size: 1.06rem; font-family: var(--display); font-weight: 600; }
.flow p { margin: .25rem 0 0; color: var(--muted); font-size: .96rem; }

/* bloc de rappel */
.note {
  border-left: 3px solid var(--ochre);
  background: var(--paper);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.note p:last-child { margin-bottom: 0; }

/* appel à l'action */
.cta {
  background: var(--jade);
  color: #F1F6EF;
  border-radius: var(--r);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
}
.cta h2 { color: #FFF8EC; margin-bottom: .4rem; }
.cta p { margin: 0; color: #D6E4D8; }
.cta-actions { display: flex; flex-direction: column; gap: .7rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.contact-list li:last-child { border: 0; }
.contact-list b {
  display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .25rem;
}
.contact-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }

.form { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); padding: 1.6rem; border-radius: var(--r); }
.form label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; margin-top: .35rem;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .hint { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------- pied de page */
.site-footer {
  background: var(--ink);
  color: #BFD0C2;
  padding: clamp(2.8rem, 6vw, 4rem) 0 2rem;
  font-size: .93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.2rem; }
.site-footer h4 {
  font-family: var(--body); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sand); margin: 0 0 1rem;
}
.site-footer a { color: #D8E5DA; text-decoration: none; }
.site-footer a:hover { color: var(--ochre-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-brand .brand-name { color: #F6EFE0; }
.footer-brand p { color: #9FB4A3; margin-top: 1rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: #8DA292;
}

/* ---------------------------------------------------- bouton WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--wa);
  color: #06301A;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  padding: .8rem 1.15rem .8rem .9rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(6, 48, 26, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); color: #06301A; box-shadow: 0 16px 36px rgba(6, 48, 26, .34); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid var(--wa);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { opacity: .7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.32); }
}

/* apparition au défilement (seulement si JavaScript est actif) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------- responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.3rem 1.6rem;
    box-shadow: 0 20px 40px rgba(11, 27, 24, .12);
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border: 0; }
  .site-nav a, .has-sub > button { display: block; width: 100%; padding: .75rem 0; border: 0; text-align: left; }
  .submenu {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 .6rem .9rem; min-width: 0; background: none;
  }
  .submenu.open { display: block; }
  .submenu a { padding: .5rem 0; }
  .site-header { position: relative; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow li { grid-template-columns: 54px 1fr; gap: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: .85rem; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .wa-float, .site-nav, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------- questions fréquentes */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.4rem 1.15rem 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: .3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 1.4rem;
  color: var(--ochre);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--jade); }
.faq-body { padding: 0 2.4rem 1.3rem 0; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------------------------------------------------- tarifs */
.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}
.tarif-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rice);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.8rem 1.9rem;
  overflow: hidden;
}
.section-alt .tarif-card { background: var(--paper); }
.tarif-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(to right, var(--ochre), var(--ochre-light), var(--sage));
  opacity: .55;
}
.tarif-card.is-featured {
  border-color: rgba(168, 114, 44, .5);
  box-shadow: 0 18px 40px rgba(11, 27, 24, .10);
}
.tarif-card.is-featured::before { opacity: 1; }
.tarif-flag {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  background: var(--ink);
  color: var(--sand);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
}
.tarif-card h3 { margin: 0 0 .1rem; font-size: 1.45rem; }
.tarif-sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tarif-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.tarif-price b {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.tarif-price span { color: var(--muted); font-size: .95rem; }
.tarif-card > p { color: var(--muted); font-size: .97rem; }
.tarif-card .btn { margin-top: auto; align-self: flex-start; }
.tarif-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: .45rem;
  font-size: .95rem;
  color: var(--muted);
}
.tarif-includes li { position: relative; padding-left: 1.4rem; }
.tarif-includes li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 8px; height: 8px;
  border: 1px solid var(--ochre);
  transform: rotate(45deg);
}
.tarif-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: .93rem;
  max-width: 62ch;
}

/* bandeau de prix en tête de la page tarifs */
.price-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 1.8rem;
}
.price-band div {
  background: rgba(255, 255, 255, .045);
  padding: 1.3rem 1.4rem;
}
.price-band .pb-k {
  display: block;
  color: var(--sand);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .35rem;
  opacity: .85;
}
.price-band .pb-v {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  color: #FFF8EC;
  line-height: 1.15;
}
.price-band .pb-v small { font-family: var(--body); font-size: .8rem; font-weight: 400; color: var(--sand); }

/* ---------------------------------------------------- galerie du centre */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 122px;
  gap: 14px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--ink);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1);
}
.gallery figure:hover img { transform: scale(1.045); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem;
  color: #FFF8EC;
  font-size: .86rem;
  letter-spacing: .02em;
  background: linear-gradient(to top, rgba(11, 27, 24, .78), rgba(11, 27, 24, 0));
}
.gallery figure:nth-child(1) { grid-column: span 4; grid-row: span 4; }
.gallery figure:nth-child(2) { grid-column: span 2; grid-row: span 4; }
.gallery figure:nth-child(3),
.gallery figure:nth-child(4),
.gallery figure:nth-child(5) { grid-column: span 2; grid-row: span 2; }

@media (max-width: 940px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 12px; }
  .gallery figure { grid-column: auto; grid-row: auto; }
  .gallery figure img { height: auto; aspect-ratio: 4 / 3; }
  .gallery figure:nth-child(1) { grid-column: span 2; }
  .gallery figure:nth-child(2) img { aspect-ratio: 3 / 4; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery figure:nth-child(1) { grid-column: auto; }
  .gallery figcaption { font-size: .8rem; padding: 1.3rem .7rem .55rem; }
}
