body.restaurant-gallery-page {
  --gallery-gold: #edce72;
  --gallery-gold-deep: #cea042;
  --gallery-ink: #fff8eb;
  --gallery-muted: #b9ada0;
  --gallery-panel: #15110d;
}

body.restaurant-gallery-page .main {
  background: #070403;
}

.gallery-hero {
  position: relative;
  min-height: min(760px, calc(100svh - var(--nav-height)));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 82% 30%, rgba(206, 160, 66, 0.22), transparent 58%),
    radial-gradient(ellipse at 8% 88%, rgba(135, 72, 31, 0.18), transparent 55%),
    linear-gradient(180deg, #0c0806 0%, #070403 100%);
  border-bottom: 1px solid rgba(206, 160, 66, 0.14);
}

.gallery-hero__glow {
  position: absolute;
  z-index: -2;
  top: -30%;
  right: -12%;
  width: min(760px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 206, 114, 0.16), transparent 68%);
  filter: blur(12px);
  animation: galleryGlow 14s ease-in-out infinite alternate;
}

.gallery-hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(237, 206, 114, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 206, 114, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse at 58% 44%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at 58% 44%, #000 0%, transparent 76%);
}

.gallery-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.gallery-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.gallery-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(237, 206, 114, 0.34);
  border-radius: 999px;
  background: rgba(21, 17, 13, 0.72);
  color: var(--gallery-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: galleryRise 720ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

.gallery-hero__title {
  margin: 0;
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4rem, 8.4vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.88;
  animation: galleryRise 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.gallery-hero__title span {
  background-image: linear-gradient(110deg, #fff8eb 0%, #edce72 46%, #cea042 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gallery-hero__lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 248, 235, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.8;
  text-wrap: pretty;
  animation: galleryRise 820ms cubic-bezier(0.22, 1, 0.36, 1) 260ms both;
}

.gallery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: galleryRise 820ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

.gallery-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 0.4rem;
  color: var(--gallery-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: galleryRise 820ms cubic-bezier(0.22, 1, 0.36, 1) 460ms both;
}

.gallery-hero__stats strong {
  color: var(--gallery-gold);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.gallery-hero__showcase {
  position: relative;
  height: min(540px, 62vw);
  animation: galleryRise 1000ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.gallery-hero__frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(237, 206, 114, 0.32);
  border-radius: 28px;
  background: var(--gallery-panel);
  box-shadow: 0 42px 90px -50px rgba(0, 0, 0, 0.95), 0 0 70px -50px rgba(206, 160, 66, 0.8);
}

.gallery-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.gallery-hero__frame--back {
  top: 4%;
  right: 0;
  width: 64%;
  height: 68%;
  transform: rotate(6deg);
  animation: galleryFloatBack 9s ease-in-out infinite alternate;
}

.gallery-hero__frame--front {
  bottom: 0;
  left: 0;
  width: 66%;
  height: 62%;
  transform: rotate(-5deg);
  animation: galleryFloatFront 11s ease-in-out infinite alternate;
}

.gallery-hero__frame:hover img {
  transform: scale(1.07);
}

.gallery-hero__frame-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 248, 235, 0.12);
  border-radius: 999px;
  background: rgba(7, 4, 3, 0.72);
  color: var(--gallery-ink);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-hero__seal {
  position: absolute;
  top: 44%;
  right: 4%;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(237, 206, 114, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle, #24190f, #0b0705 72%);
  color: var(--gallery-gold);
  text-align: center;
  box-shadow: 0 20px 50px -28px rgba(0, 0, 0, 0.9);
  animation: gallerySeal 18s linear infinite;
}

.gallery-hero__seal i {
  font-size: 1.2rem;
}

.gallery-hero__seal span {
  max-width: 72px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.gallery-section {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(206, 160, 66, 0.08), transparent 52%),
    linear-gradient(180deg, #070403 0%, #0b0806 100%);
}

.gallery-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.4rem);
}

.gallery-intro .eyebrow {
  color: var(--gallery-gold);
  letter-spacing: 0.28em;
}

.gallery-intro h2 {
  margin: 0.5rem 0 0.7rem;
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.gallery-intro p {
  max-width: 560px;
  margin: 0;
  color: var(--gallery-muted);
  line-height: 1.75;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.gallery-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 248, 235, 0.12);
  border-radius: 999px;
  background: rgba(21, 17, 13, 0.72);
  color: rgba(255, 248, 235, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 220ms var(--ease), color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.gallery-filter span {
  color: var(--gallery-gold);
  font-size: 0.66rem;
}

.gallery-filter:hover {
  border-color: rgba(237, 206, 114, 0.42);
  color: var(--gallery-ink);
  transform: translateY(-2px);
}

.gallery-filter.is-active {
  border-color: rgba(237, 206, 114, 0.6);
  background: rgba(206, 160, 66, 0.16);
  color: var(--gallery-ink);
  box-shadow: 0 12px 30px -22px rgba(206, 160, 66, 0.95);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.35rem);
}

.gallery-tile {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 235, 0.08);
  border-radius: 22px;
  background: var(--gallery-panel);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 360ms var(--ease), box-shadow 360ms var(--ease), transform 360ms var(--ease);
}

.gallery-tile:nth-child(1),
.gallery-tile:nth-child(8) {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.gallery-tile:nth-child(4),
.gallery-tile:nth-child(9) {
  aspect-ratio: 3 / 4;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 248, 235, 0.2) 48%, transparent 72%);
  transform: translateX(-120%);
  pointer-events: none;
}

.gallery-tile:hover::after {
  animation: gallerySweep 900ms ease-out;
}

.gallery-mosaic.gallery-ready .gallery-tile {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
  transition-delay: calc(var(--tile-index, 0) * 45ms);
}

.gallery-mosaic.gallery-ready .gallery-tile.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-tile.is-hidden {
  display: none;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms var(--ease);
}

.gallery-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

.gallery-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 4, 3, 0.9) 100%);
  pointer-events: none;
}

.gallery-tile__content {
  position: absolute;
  z-index: 2;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

.gallery-tile__label {
  color: var(--gallery-gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-tile__title {
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.gallery-tile__zoom {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 50%;
  background: rgba(7, 4, 3, 0.58);
  color: var(--gallery-ink);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-tile:hover {
  border-color: rgba(237, 206, 114, 0.5);
  box-shadow: 0 32px 70px -48px rgba(206, 160, 66, 0.95);
  transform: translateY(-4px);
}

.gallery-tile:hover .gallery-tile__zoom,
.gallery-tile:focus-visible .gallery-tile__zoom {
  opacity: 1;
  transform: scale(1);
}

.gallery-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  color: rgba(255, 248, 235, 0.52);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.gallery-note i {
  color: var(--gallery-gold);
}

.gallery-lightbox {
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(5, 3, 2, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox .lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  max-width: min(1100px, 88vw);
}

.gallery-lightbox .lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  border: 1px solid rgba(237, 206, 114, 0.28);
  border-radius: 20px;
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 1);
  object-fit: contain;
}

.gallery-lightbox .lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  color: rgba(255, 248, 235, 0.8);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.gallery-lightbox .lightbox__title {
  color: var(--gallery-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.gallery-lightbox .lightbox__count {
  color: var(--gallery-gold);
  font-variant-numeric: tabular-nums;
}

.gallery-lightbox .lightbox__close {
  top: 1rem;
  right: 1.2rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 50%;
  background: rgba(21, 17, 13, 0.8);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.gallery-lightbox .lightbox__close:hover {
  border-color: rgba(237, 206, 114, 0.55);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: 50%;
  background: rgba(21, 17, 13, 0.8);
  color: var(--gallery-ink);
  font-size: 1.3rem;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}

.lightbox__nav:hover {
  border-color: rgba(237, 206, 114, 0.55);
  background: rgba(206, 160, 66, 0.18);
}

.lightbox__nav--prev {
  left: clamp(0.5rem, 2vw, 2rem);
}

.lightbox__nav--next {
  right: clamp(0.5rem, 2vw, 2rem);
}

@keyframes galleryGlow {
  from { transform: translate3d(-4%, 2%, 0) scale(0.94); opacity: 0.7; }
  to { transform: translate3d(5%, -4%, 0) scale(1.08); opacity: 1; }
}

@keyframes galleryRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes galleryFloatBack {
  from { transform: translate3d(0, 0, 0) rotate(6deg); }
  to { transform: translate3d(-14px, 16px, 0) rotate(3deg); }
}

@keyframes galleryFloatFront {
  from { transform: translate3d(0, 0, 0) rotate(-5deg); }
  to { transform: translate3d(16px, -12px, 0) rotate(-2deg); }
}

@keyframes gallerySeal {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gallerySweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .gallery-hero__inner {
    grid-template-columns: 1fr;
  }

  .gallery-hero__showcase {
    display: none;
  }

  .gallery-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-filters {
    justify-content: flex-start;
  }

  .gallery-tile,
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(8) {
    grid-column: span 6;
  }

  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(9) {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 620px) {
  .gallery-hero {
    min-height: auto;
  }

  .gallery-hero__title {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }

  .gallery-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-hero__glow,
  .gallery-hero__kicker,
  .gallery-hero__title,
  .gallery-hero__lead,
  .gallery-hero__actions,
  .gallery-hero__stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery-tile,
  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(8) {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }

  .gallery-tile:nth-child(4),
  .gallery-tile:nth-child(9) {
    aspect-ratio: 4 / 3;
  }

  .lightbox__nav {
    top: auto;
    bottom: 1rem;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .gallery-lightbox .lightbox__figure {
    max-width: 92vw;
  }

  .gallery-lightbox .lightbox__image {
    max-height: 68vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-hero__glow,
  .gallery-hero__frame--back,
  .gallery-hero__frame--front,
  .gallery-hero__seal,
  .gallery-hero__kicker,
  .gallery-hero__title,
  .gallery-hero__lead,
  .gallery-hero__actions,
  .gallery-hero__stats,
  .gallery-hero__showcase {
    animation: none !important;
  }

  .gallery-mosaic.gallery-ready .gallery-tile {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .gallery-tile:hover::after {
    animation: none !important;
  }
}
