/* Virginia Chouhy — estilos */

:root {
  --bg: #0c0b0a;
  --bg-2: #151311;
  --fg: #ece6dc;
  --muted: rgba(236, 230, 220, .56);
  --faint: rgba(236, 230, 220, .16);
  --accent: #c4572e;
  --font: 'Montserrat', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { padding-inline: var(--gutter); }
.label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- navegación */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
  transition: transform .7s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: .04em; }
.nav__menu { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__menu a {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
}
.nav__menu a::after, .footer__list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav__menu a:hover::after, .footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------------------------------------------- cortina y cursor */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.js .curtain { transform: translateY(0); }
html:not(.js) .curtain { display: none; }
.curtain__line { width: min(240px, 40vw); height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 80;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  mix-blend-mode: difference;
  display: none;
  place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .3s;
}
.has-cursor .cursor { display: grid; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; background: var(--fg); }
.cursor__label {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bg);
  opacity: 0; transition: opacity .3s;
}
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-hidden { width: 0; height: 0; margin: 0; }

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
}
.hero__name {
  font-family: var(--font);
  font-weight: 300;
  margin: 0;
  line-height: 1;
  letter-spacing: -.03em;
  display: flex;
  flex-wrap: wrap;
  column-gap: .28em;
  font-size: clamp(40px, 7vw, 120px);
}
.hero__first { font-weight: 200; }
.hero__sub {
  display: flex; justify-content: space-between; gap: 24px;
  margin: clamp(28px, 4vw, 56px) 0 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--faint);
  padding-top: 18px;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  width: 1px; height: 56px;
  background: linear-gradient(var(--fg), transparent);
  transform-origin: top;
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); opacity: 1 } 60% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

/* Imagen que se expande con el scroll */
.expand { height: 100svh; position: relative; overflow: hidden; }
.expand__frame { position: absolute; inset: 0; overflow: hidden; }
.expand__img { width: 100%; height: 100%; object-fit: cover; }
.js .expand__frame { clip-path: inset(18% 30% 18% 30%); }
/* Portada: varias fotos que se funden entre sí */
[data-slides] .expand__img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
[data-slides] .expand__img.is-on { opacity: 1; }

/* ---------------------------------------------------------------- textos */

.statement { padding-block: clamp(120px, 18vw, 260px); max-width: 1500px; }
.statement__text, .o-text__body p {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(22px, 2.9vw, 44px);
  line-height: 1.3;
  letter-spacing: -.015em;
  margin: 28px 0 0;
}
.o-text__body p + p { margin-top: .7em; }
[data-fill] .word { color: var(--fg); }

.sec-head { display: grid; gap: 20px; padding-bottom: clamp(40px, 6vw, 80px); }
.sec-head__title {
  font-family: var(--font); font-weight: 300;
  font-size: clamp(44px, 7vw, 112px); line-height: 1; letter-spacing: -.04em; margin: 0;
}
.sec-head__rule { display: block; width: 72px; height: 1px; background: var(--fg); transform-origin: left; }
.sec-head__note { max-width: 32ch; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- lista de obras */

.works { padding-block: 40px clamp(80px, 12vw, 180px); position: relative; }
.works__list { list-style: none; margin: 0; }
.works__item { border-top: 1px solid var(--faint); }
.works__item:last-child { border-bottom: 1px solid var(--faint); }
.works__item a {
  display: grid;
  grid-template-columns: 3.5em 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 30px) 0;
  transition: color .5s var(--ease);
}
.works__num, .works__year { font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.works__title {
  font-family: var(--font); font-weight: 300;
  font-size: clamp(24px, 3.4vw, 54px); line-height: 1.1; letter-spacing: -.02em;
  transition: transform .8s var(--ease), color .5s;
}
.works__thumb { display: none; }
@media (hover: hover) {
  .works__list:hover .works__title { color: var(--muted); }
  .works__item a:hover .works__title { color: var(--fg); transform: translateX(.35em); }
}

.preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(240px, 24vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
}
.preview__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.15);
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.preview__img.is-on { opacity: 1; transform: scale(1); }

/* ---------------------------------------------------------------- tira horizontal */

.strip { position: relative; }
.strip__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.strip__label { margin-bottom: 28px; }
.strip__track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gutter); width: max-content; align-items: flex-end; }
.strip__item { display: block; flex: none; }
.strip__media { display: block; overflow: hidden; height: min(62svh, 620px); }
.strip__item:nth-child(even) .strip__media { height: min(48svh, 480px); }
.strip__media img { height: 100%; width: auto; object-fit: cover; transition: transform 1.4s var(--ease); }
.strip__item:hover .strip__media img { transform: scale(1.04); }
.strip__cap { display: flex; justify-content: space-between; gap: 24px; padding-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- bio */

.bio { padding-block: clamp(100px, 14vw, 200px) clamp(60px, 8vw, 120px); }
.bio__grid { display: grid; }
.bio__text p { margin: 0 0 1.1em; max-width: 58ch; font-size: clamp(16px, 1.15vw, 18px); }
.link-arrow { display: inline-flex; gap: 10px; margin-top: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--faint); padding-bottom: 6px; transition: border-color .4s, gap .5s var(--ease); }
.link-arrow:hover { border-color: var(--fg); gap: 18px; }

.shows__head { margin-top: clamp(70px, 9vw, 130px); }
.shows { list-style: none; padding: 0; margin: 24px 0 0; }
.shows__row {
  display: grid;
  grid-template-columns: 6em 1.2fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--faint);
}
.shows__row:last-child { border-bottom: 1px solid var(--faint); }
.shows__year { color: var(--muted); font-size: 14px; letter-spacing: .1em; }
.shows__title { font-family: var(--font); font-size: clamp(16px, 1.3vw, 20px); font-weight: 400; line-height: 1.35; }
.shows__place { color: var(--muted); }

.cv { margin-top: clamp(80px, 10vw, 150px); }
.cv__intro { max-width: 62ch; }
.cv__intro p { margin: 0 0 .8em; color: var(--muted); }
.cv__cierre { margin: 40px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.footer { padding-top: clamp(100px, 14vw, 200px); border-top: 1px solid var(--faint); overflow: hidden; }
.footer__top { display: grid; gap: 22px; justify-items: start; }
.footer__mail {
  font-family: var(--font); font-weight: 300;
  font-size: clamp(20px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.01em;
  position: relative; overflow-wrap: anywhere;
}
.footer__mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease);
}
.footer__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.copy { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.copy:hover { color: var(--fg); }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: clamp(80px, 10vw, 140px); max-width: 760px; }
.footer__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.footer__list a { position: relative; }
.footer__name {
  font-family: var(--font); font-weight: 300; color: var(--accent);
  font-size: clamp(40px, 7vw, 120px); line-height: 1; letter-spacing: -.03em;
  margin: clamp(60px, 9vw, 120px) 0 0; padding-inline: var(--gutter);
  display: flex; flex-wrap: wrap; column-gap: .25em;
}
.footer__name span:first-child { font-weight: 200; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* ---------------------------------------------------------------- página de obra */

.o-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 96px); }
.o-hero__count { display: flex; gap: 10px; }
.o-hero__title {
  font-family: var(--font); font-weight: 300;
  font-size: clamp(36px, 6vw, 100px); line-height: 1.02; letter-spacing: -.035em;
  margin: 24px 0 0; max-width: 18ch;
}
.o-hero__meta {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
  margin: clamp(32px, 4vw, 56px) 0 0; padding-top: 18px; border-top: 1px solid var(--faint);
  color: var(--muted); font-size: 15px;
}
.o-hero__meta span:last-child { max-width: 46ch; }

.o-text { padding-block: clamp(100px, 14vw, 200px) clamp(60px, 8vw, 120px); display: grid; gap: clamp(60px, 8vw, 120px); }
.o-text__body { max-width: 1300px; }

.poem { font-family: var(--font); font-weight: 300; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.6; display: grid; max-width: 40ch; margin-inline: auto 8vw; }
.poem__line { display: block; }

.poem-cols { font-family: var(--font); font-weight: 300; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; display: grid; }
.cols__row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; column-gap: 32px; }
.cols__c--0 { grid-column: 1; }
.cols__c--1 { grid-column: 2; }
.cols__c--2 { grid-column: 3; }
.cols__gap { height: 1.2em; }

.ficha { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.ficha__row { border-top: 1px solid var(--faint); padding: 18px 0; }
.ficha dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ficha dd { margin: 0; }
.o-desc { max-width: 62ch; margin-left: auto; font-size: clamp(15px, 1.1vw, 17px); }
.o-desc p { margin: 0 0 1em; white-space: pre-line; }

.epigraph { margin: 0; max-width: 58ch; margin-left: auto; font-family: var(--font); font-style: italic; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--muted); }
.epigraph p { margin: 0 0 14px; }
.epigraph cite { font-family: var(--font); font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.manifesto { display: grid; gap: 28px; }

/* texto curatorial */
.o-cur { padding-bottom: clamp(80px, 12vw, 180px); display: grid; grid-template-columns: 1fr 2fr; gap: 24px clamp(24px, 6vw, 96px); }
.o-cur__body { font-family: var(--font); font-weight: 300; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.7; }
.o-cur__body p { margin: 0 0 1em; }
.o-cur__firma { font-family: var(--font); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* grupos de la galería */
.g__group { display: grid; gap: clamp(64px, 10vw, 160px); }
.g-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; border-top: 1px solid var(--faint); padding-top: 28px; }
.g-head__title { font-family: var(--font); font-weight: 300; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.g-head__sub { margin: 14px 0 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.g-head__map { margin: 0; flex: none; width: clamp(96px, 12vw, 180px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.g-head__map img { width: 100%; height: 100%; object-fit: cover; }

/* grilla (series grandes: retratos, pirograbados) */
.g__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: start; }
.g__cell .g__media img { aspect-ratio: auto; }
.g__cell:nth-child(4n+2), .g__cell:nth-child(4n+4) { margin-top: clamp(24px, 5vw, 80px); }

/* galería editorial */
.g { display: grid; gap: clamp(64px, 10vw, 160px); padding-bottom: clamp(80px, 12vw, 180px); }
.g__row { display: grid; }
.g__fig { margin: 0; }
.g__btn { display: block; width: 100%; cursor: zoom-in; }
.has-cursor .g__btn { cursor: none; }
.g__media { display: block; overflow: hidden; background: var(--bg-2); }
.g__media img { width: 100%; transform-origin: center; }
.g__fig figcaption { padding-top: 12px; font-size: 13px; color: var(--muted); }
.g__row--full { margin-inline: calc(var(--gutter) * -1); }
.g__row--full figcaption { padding-inline: var(--gutter); }
.g__row--wide { width: 72%; }
.g__row--wide.right { margin-left: auto; }
.g__row--single-v { width: 42%; }
.g__row--single-v.right { margin-left: auto; margin-right: 8%; }
.g__row--single-v.left { margin-left: 8%; }
.g__row--single-s { width: 52%; margin-inline: auto; }
.g__row--pair { grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: start; }
.g__row--pair .g__fig:nth-child(2) { margin-top: 18%; }
.g__row--pair.pair--small { width: 80%; margin-inline: auto; }

/* video */
.o-video { padding-bottom: clamp(80px, 12vw, 180px); display: grid; gap: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video__poster { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .6s, transform 1.4s var(--ease); }
.video:hover .video__poster { opacity: .85; transform: scale(1.03); }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.has-cursor .video__play { cursor: none; }
.video__icon { width: 88px; height: 88px; border: 1px solid var(--fg); border-radius: 50%; position: relative; transition: transform .6s var(--ease); }
.video__icon::after { content: ''; position: absolute; left: 36px; top: 30px; border-left: 20px solid var(--fg); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video:hover .video__icon { transform: scale(1.1); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* prensa */
.o-press { padding-bottom: clamp(80px, 12vw, 180px); display: grid; gap: 24px; }
.press { list-style: none; padding: 0; margin: 0; }
.press li { border-top: 1px solid var(--faint); }
.press li:last-child { border-bottom: 1px solid var(--faint); }
.press a { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--font); font-size: clamp(16px, 1.4vw, 21px); line-height: 1.4; transition: padding .6s var(--ease), color .4s; }
.press__arrow { font-family: var(--font); transition: transform .6s var(--ease); }
.press a:hover { padding-left: 16px; }
.press a:hover .press__arrow { transform: translate(4px, -4px); color: var(--accent); }

/* siguiente obra */
.next { border-top: 1px solid var(--faint); }
.next__link { display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(100px, 14vw, 200px) var(--gutter); position: relative; }
.next__title { font-family: var(--font); font-weight: 300; font-size: clamp(32px, 5.4vw, 88px); line-height: 1.05; letter-spacing: -.035em; position: relative; z-index: 2; mix-blend-mode: difference; color: #fff; }
.next__img {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: clamp(200px, 26vw, 420px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(-50%, -50%) scale(0); transition: transform 1s var(--ease);
}
.next__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform 1.6s var(--ease); }
.next__link:hover .next__img { transform: translate(-50%, -50%) scale(1); }
.next__link:hover .next__img img { transform: scale(1); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(8, 7, 6, .97);
  display: grid; place-items: center;
  padding: 64px var(--gutter) 72px;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { font-size: 13px; color: var(--muted); text-align: center; min-height: 1.6em; }
.lightbox__count { position: absolute; top: 26px; left: var(--gutter); }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; width: 64px; height: 64px; display: grid; place-items: center; color: var(--muted); transition: color .3s; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--fg); }
.lightbox__prev { left: calc(var(--gutter) - 20px); }
.lightbox__next { right: calc(var(--gutter) - 20px); }

/* utilidades de animación (los estados iniciales sólo con JS activo) */
.split-line { overflow: hidden; display: block; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------------------------------------------------------------- móvil */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-block: 18px; }
  .nav__logo { font-size: 13px; }
  .nav__menu { gap: 16px; }
  .nav__menu a { font-size: 11px; letter-spacing: .12em; }
  .hero__sub { flex-direction: column; gap: 6px; }
  .js .expand__frame { clip-path: inset(22% 12% 22% 12%); }
  .works__item a { grid-template-columns: 2.4em 1fr; row-gap: 14px; }
  .works__year { grid-column: 2; margin-top: -8px; }
  .works__thumb { display: block; grid-column: 2; overflow: hidden; aspect-ratio: 16 / 10; }
  .works__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .preview { display: none; }
  .strip__media { height: 52svh; }
  .strip__item:nth-child(even) .strip__media { height: 40svh; }
  .shows__row { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .o-hero__meta { grid-template-columns: 1fr; gap: 6px; }
  .poem { margin-inline: 0; }
  .cols__row { grid-template-columns: 1fr; }
  .cols__c--1 { grid-column: 1; padding-left: 14%; }
  .cols__c--2 { grid-column: 1; padding-left: 34%; }
  .g { gap: 56px; }
  .g__row--wide, .g__row--single-v, .g__row--single-s, .g__row--pair.pair--small { width: 100%; margin: 0; }
  .g__row--single-v.right, .g__row--single-v.left { margin: 0; }
  .g__row--single-v { width: 82%; }
  .g__row--single-v.right { margin-left: auto; }
  .g__row--pair { gap: 14px; }
  .g__group { gap: 56px; }
  .g__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g__cell:nth-child(4n+4) { margin-top: 0; }
  .g__cell:nth-child(2n) { margin-top: 32px; }
  .g-head { align-items: flex-start; }
  .o-cur { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .expand__frame { clip-path: none; }
  .curtain { display: none; }
}

/* Si el JS falla, la cortina se va sola */
.js .curtain { animation: curtain-fallback .8s 4s forwards; }
@keyframes curtain-fallback { to { transform: translateY(-100%); visibility: hidden; } }
