/* Design tokens */
:root {
  --bg: #faf9f7;
  --bg-dark: #151412;
  --bg-dark-2: #1e1c19;
  --gold: #b8913a;
  --gold-light: #d4ac5c;
  --text: #1c1a17;
  --text-muted: #6b6560;
  --text-light: #a09890;
  --border: #e8e2d8;
  --surface: #f2ede4;
  --white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid currentColor;
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

/* Section */
.section {
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .section { padding-block: 7rem; }
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.section-title-light {
  color: var(--white);
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── NAVIGATION ─────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: var(--bg-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .nav-container { padding-inline: 2rem; }
}

.nav-logo img {
  height: 42px;
  width: auto;
  transition: opacity var(--transition);
}

.nav-logo:hover img {
  opacity: 0.8;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  padding-block: 0.25rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

.bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  background: var(--bg-dark-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.nav-mobile.open {
  max-height: 400px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-mobile ul {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-link {
  display: block;
  padding: 0.625rem 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ─── HERO ────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #1a1a1aa6;
}

.slide {
  position: absolute;
  inset: -2px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,8,0.55) 0%,
    rgba(10,9,8,0.38) 50%,
    rgba(10,9,8,0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-inline: 1.25rem;
  max-width: 640px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.4));
  animation: heroFadeIn 1s ease 0.3s both;
}

@media (min-width: 768px) {
  .hero-logo { width: 150px; height: 150px; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  animation: heroFadeIn 1s ease 0.5s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  margin-bottom: 2.25rem;
  animation: heroFadeIn 1s ease 0.7s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: heroFadeIn 1s ease 0.9s both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s ease infinite;
  transition: color var(--transition);
}

.hero-scroll:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── NOSOTROS ────────────────────────────────────────── */

.nosotros-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nosotros-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.nosotros-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.0625rem;
}

.nosotros-text .section-title {
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.feature-list svg {
  color: var(--gold);
  flex-shrink: 0;
}

.nosotros-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .nosotros-image img { height: 580px; }
}

/* ─── GALLERY ─────────────────────────────────────────── */

.gallery-grid {
  columns: 2;
  column-gap: 0.6rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 3;
    column-gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 4;
    column-gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  .gallery-item { margin-bottom: 0.75rem; }
}

@media (min-width: 1024px) {
  .gallery-item { margin-bottom: 1rem; }
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

/* ─── CARTA ───────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-panel {
  animation: fadeIn 0.35s ease;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.menu-cat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}

.menu-cat:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.menu-cat-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item span:first-child {
  color: var(--text);
}

.price {
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Carta full image */
.carta-cta {
  margin-top: 3rem;
  text-align: center;
}

/* .carta-img-wrap {
  margin-top: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.carta-img-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
} */

/* Platos grid */
.platos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .platos-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .platos-grid { grid-template-columns: repeat(4, 1fr); }
}

.plato-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}

.plato-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.plato-item:hover img {
  transform: scale(1.07);
}

.plato-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 1.5rem 1rem 0.75rem;
  transform: translateY(4px);
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.plato-item:hover .plato-label {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HORARIO ─────────────────────────────────────────── */

.horario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .horario-grid { grid-template-columns: 1fr 1fr; }
}

.horario-card {
  background: var(--bg-dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.horario-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.horario-card--featured {
  border-color: rgba(184,145,58,0.35);
  background: rgba(184,145,58,0.06);
}

.horario-card--featured:hover {
  border-color: rgba(184,145,58,0.6);
}

.horario-icon {
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.horario-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.horario-hours {
  font-size: 1.625rem;
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
}

/* ─── CONTACTO ────────────────────────────────────────── */

.contacto-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1rem;
  color: var(--text);
  transition: color var(--transition);
}

.contact-value:hover {
  color: var(--gold);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-actions .btn-outline {
  color: var(--text);
  border-color: var(--border);
}

.contact-actions .btn-outline:hover {
  background: var(--surface);
  color: var(--text);
}

.contacto-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contacto-map iframe {
  display: block;
}

/* ─── FOOTER ──────────────────────────────────────────── */

.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 3rem; }
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-social:hover {
  color: var(--white);
}

.footer-nav h3,
.footer-contact-col h3,
.footer-hours-col h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.footer-contact-col a:hover {
  color: var(--white);
}

.footer-hours-col dl {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-hours-col dt {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.footer-hours-col dd {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ─── LIGHTBOX ────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,7,6,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: zoom-out;
  animation: fadeIn 0.25s ease;
}

@media (min-width: 768px) {
  .lightbox { padding: 1.5rem; }
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  bottom: 1.25rem;
  color: rgba(255,255,255,0.5);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), background var(--transition);
  z-index: 1;
  line-height: 0;
}

.lightbox-prev { right: calc(50% + 2.5rem); }
.lightbox-next { left: calc(50% + 2.5rem); }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.6rem;
  }

  .lightbox-prev { right: auto; left: 1.5rem; }
  .lightbox-next { left: auto; right: 1.5rem; }

  .lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
  .lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
}

.lightbox-caption {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.lightbox-caption:empty {
  opacity: 0;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  pointer-events: none;
}

#lightbox-img {
  max-width: 96vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  cursor: default;
}

@media (min-width: 768px) {
  #lightbox-img {
    max-width: min(90vw, calc(100vw - 8rem), 950px);
    max-height: 86vh;
  }
}

@keyframes lbOpen {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lbNext {
  from { opacity: 0; transform: translateX(52px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lbPrev {
  from { opacity: 0; transform: translateX(-52px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

#lightbox-img {
  animation: lbOpen 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-img.anim-open {
  animation: lbOpen 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-img.anim-next {
  animation: lbNext 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-img.anim-prev {
  animation: lbPrev 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
