*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: #fff; color: #111; }

/* ── Hover transitions ── */
.artwork-img {
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
.artwork-cell:hover .artwork-img {
  filter: brightness(.97);
  transform: scale(1.012);
}
.lnk {
  transition: color .25s ease, opacity .25s ease;
  text-decoration: none;
}
.lnk:hover { opacity: .55; }

/* ── Header ── */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 64px;
  border-bottom: 1px solid #ededea;
}
#logo {
  font-family: 'Josefin Sans', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #111;
}
#logo .short { display: none; }
#nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  cursor: pointer;
}
.nav-link.inactive { color: #9a978d; }
#lang-toggle {
  display: inline-flex;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}
.lang-sep { color: #d8d6cf; }
.lang-btn { transition: color .25s ease; }

/* ── Hero ── */
#hero {
  border-bottom: 1px solid #ededea;
  cursor: pointer;
  background: #f4f3f1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 64px;
}
#hero img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}
#hero:hover img {
  filter: brightness(.97);
  transform: scale(1.012);
}

/* ── Gallery ── */
#gallery { padding: 54px 64px 84px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
}
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
}
.section-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #b0ada3;
}
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 28px;
  row-gap: 40px;
}
.artwork-cell { cursor: pointer; }
.artwork-frame {
  background: #f4f3f1;
  overflow: hidden;
  position: relative;
}
.artwork-frame picture {
  display: block;
  position: absolute;
  inset: 0;
}
.artwork-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: #bdbab2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.artwork-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #111;
  margin-top: 13px;
}
.artwork-sub {
  font-size: 11px;
  color: #9a978d;
  margin-top: 4px;
  letter-spacing: .02em;
}

/* ── About ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 54px;
  padding: 74px 64px;
  border-top: 1px solid #ededea;
  background: #fafafa;
}
.portrait-wrap {
  aspect-ratio: 4/5;
  background: #efefec;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #b0ada3;
}
.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #3a382f;
  margin: 18px 0 0;
  text-wrap: pretty;
  max-width: 480px;
}
.about-section-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b0ada3;
  margin-top: 40px;
  margin-bottom: 10px;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  font-size: 13px;
  line-height: 1.65;
  color: #3a382f;
  padding: 7px 0;
  border-bottom: 1px solid #ededea;
  max-width: 480px;
}
.about-list li:last-child { border-bottom: none; }

/* ── Footer ── */
#footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 64px;
  background: #fff;
  border-top: 1px solid #ededea;
}
.footer-copy {
  font-size: 11px;
  letter-spacing: .04em;
  color: #9a978d;
}
.footer-ig {
  color: #6a675f;
  display: flex;
  align-items: center;
}

/* ── Lightbox ── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 80px 40px;
}
#lightbox.open { display: flex; }

/* imagen — ocupa el espacio disponible sin sobrepasar */
#lb-img-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img-wrap img {
  display: block;
  max-width: 90vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

/* caption — siempre debajo de la imagen */
#lb-caption {
  flex-shrink: 0;
  text-align: center;
  margin-top: 20px;
}
#lb-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
#lb-spec {
  font-size: 11px;
  color: #8a877e;
  margin-top: 5px;
  letter-spacing: .04em;
}

/* cerrar */
#lb-close {
  position: absolute;
  top: 26px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfcdc6;
  transition: opacity .25s ease;
}
#lb-close:hover { opacity: .6; }
#lb-close-x { font-size: 20px; line-height: 1; font-weight: 300; }

/* flechas laterales — centradas verticalmente en el área de imagen */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  transition: opacity .25s ease, border-color .25s ease;
  user-select: none;
}
.lb-arrow:hover { opacity: .8; border-color: rgba(255,255,255,.8); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ── Responsive (≤768px) ── */
@media (max-width: 768px) {
  #header { padding: 16px 22px; }
  #logo { font-size: 12px; letter-spacing: .12em; }
  #logo .full { display: none; }
  #logo .short { display: inline; }
  #nav { gap: 12px; }
  .nav-link { font-size: 9px; letter-spacing: .12em; }
  #lang-toggle { font-size: 9px; gap: 4px; }
  .nav-link.about-link { display: none; }

  #hero { grid-template-columns: 1fr; gap: 0; padding: 22px; }
  .hero-meta-kicker { font-size: 10px; letter-spacing: .18em; margin-top: 16px; }
  .hero-title { font-size: 16px; margin-top: 8px; }
  .hero-spec { font-size: 10.5px; }

  #gallery { padding: 6px 22px 28px; }
  .section-header { margin-bottom: 20px; }
  #gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .artwork-title { font-size: 10px; letter-spacing: .04em; margin-top: 9px; }
  .artwork-sub { font-size: 9.5px; margin-top: 3px; }
  .placeholder-label { font-size: 9px; letter-spacing: .08em; }

  #about { grid-template-columns: 1fr; padding: 30px 22px; gap: 0; }
  .about-body p { font-size: 13px; line-height: 1.7; margin-top: 12px; max-width: none; }
  .about-kicker { margin-top: 18px; font-size: 9.5px; letter-spacing: .2em; }
  .about-section-title { margin-top: 30px; }
  .about-list li { font-size: 12px; max-width: none; }

  #footer {
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px 30px;
    text-align: center;
    background: #fafafa;
  }
  .footer-ig { order: -1; font-size: 9px; }
  .footer-copy { font-size: 9px; color: #b0ada3; }
}
