html {
  scrollbar-gutter: stable;
}

.gallery-page {
  background: #000000;
  color: rgb(222, 192, 171);
  font-family: Arial, sans-serif;
}

.gallery-intro {
  padding: 52px 24px 44px;
  background: rgb(222, 192, 171);
  color: #20292e;
  text-align: center;
}

.gallery-eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
}

.gallery-intro h1,
.gallery-section-heading h2 {
  margin: 0;
  font-family: "Jost", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.035em;
}

.gallery-intro h1 {
  font-size: clamp(3.25rem, 5.7vw, 6rem);
}

.gallery-intro-subtitle {
  margin: 16px 0 26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.4;
}

.gallery-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gallery-category-nav a {
  min-width: 172px;
  padding: 12px 22px;
  border: 1px solid #20292e;
  color: inherit;
  font-family: "Jost", Arial, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.gallery-category-nav a:hover {
  background: #000000;
  color: rgb(222, 192, 171);
}

.gallery-section {
  max-width: 2040px;
  margin: 0 auto;
  padding: 58px clamp(20px, 1.45vw, 32px) 42px;
  scroll-margin-top: 24px;
}

.gallery-section + .gallery-section {
  border-top: 1px solid rgba(222, 192, 171, 0.24);
}

.gallery-section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.gallery-section-heading .gallery-eyebrow {
  opacity: 0.75;
}

.gallery-section-heading h2 {
  font-size: clamp(2.25rem, 3.2vw, 3.75rem);
}

.gallery-section-description {
  margin: 14px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.5;
}

.gallery-carousel {
  position: relative;
}

.gallery-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-viewport.is-loop-ready {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}

.gallery-track {
  --gallery-gap: clamp(24px, 3.4vw, 64px);
  display: flex;
  gap: var(--gallery-gap);
}

.is-loop-ready .gallery-track {
  transition: transform var(--gallery-slide-duration, 900ms) cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.is-loop-ready .gallery-track.is-repositioning,
.is-loop-ready .gallery-track.is-gliding {
  transition: none;
}

.gallery-card {
  flex: 0 0 calc((100% - 2 * var(--gallery-gap)) / 3);
  min-width: 0;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.gallery-photo-frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: clamp(8px, 0.7vw, 13px);
  overflow: hidden;
  border: 5px solid #f6e3d3;
  background: #000000;
}

.gallery-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-enlarge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  color: #f6e3d3;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-enlarge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.gallery-card:hover .gallery-enlarge,
.gallery-card:focus-visible .gallery-enlarge {
  opacity: 1;
  transform: none;
}

.gallery-card-caption {
  display: block;
  padding: 17px 4px 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.4;
}

.gallery-arrow,
.gallery-lightbox-arrow,
.gallery-lightbox-close {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff2e7;
  cursor: pointer;
}

.gallery-arrow[hidden] {
  display: none;
}

.gallery-arrow {
  position: absolute;
  z-index: 1;
  top: calc(50% - 24px);
  width: 48px;
  height: 76px;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.gallery-arrow-prev {
  left: -16px;
}

.gallery-arrow-next {
  right: -16px;
}

.gallery-arrow svg,
.gallery-lightbox-arrow svg {
  width: 26px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(222, 192, 171, 0.78);
}

.gallery-section-footer p {
  margin: 0;
}

.gallery-range {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.gallery-playback-controls {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  flex-shrink: 0;
}

.gallery-autoplay {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.gallery-autoplay[hidden] {
  display: none;
}

.gallery-autoplay:hover {
  color: #fff2e7;
}

.gallery-food-section {
  max-width: none;
  background-color: #f6ede2;
  background-image: radial-gradient(rgba(210, 173, 147, 0.18) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: #20292e;
}

.food-masonry-grid {
  --food-grid-gap: clamp(16px, 1.25vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: var(--food-grid-gap);
  max-width: 1960px;
  margin: 0 auto;
}

.food-masonry-column {
  display: flex;
  flex-direction: column;
  gap: var(--food-grid-gap);
  min-width: 0;
}

.food-masonry-item {
  --food-aspect: 1 / 1.55;
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.food-masonry-item--tall { --food-aspect: 1 / 1.95; }
.food-masonry-item--short { --food-aspect: 1 / 1.15; }

.food-photo-reveal,
.food-photo-frame {
  display: block;
}

.food-photo-frame {
  position: relative;
  aspect-ratio: var(--food-aspect);
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 2px 5px rgba(32, 41, 46, 0.08);
  transition: transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 800ms ease;
}

.food-photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.food-masonry-grid.is-food-reveal-ready .food-masonry-item.is-visible .food-photo-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms ease, transform 1400ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--food-reveal-delay, 0ms);
}

.food-masonry-grid.is-food-reveal-ready .food-masonry-item:not(.is-visible) .food-photo-reveal {
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  transition: none;
}

.food-masonry-item:focus-visible .food-photo-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0ms !important;
}

.food-masonry-item:focus-visible .food-photo-frame {
  transform: translateY(-8px);
  box-shadow: 0 18px 32px rgba(32, 41, 46, 0.2);
}

.food-masonry-item:focus-visible .gallery-enlarge {
  opacity: 1;
  transform: none;
}

.food-gallery-footer {
  max-width: 1960px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(32, 41, 46, 0.72);
}

@media (hover: hover) {
  .food-masonry-item:hover .food-photo-frame {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px rgba(32, 41, 46, 0.2);
  }

  .food-masonry-item:hover .food-photo-frame > img {
    animation: food-hover-rise 1000ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .food-masonry-item:hover .gallery-enlarge {
    opacity: 1;
    transform: none;
  }
}

@keyframes food-hover-rise {
  from { opacity: 0.55; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .food-masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .food-masonry-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .food-photo-frame {
    border-radius: 14px;
  }

  .food-masonry-item--tall {
    --food-aspect: 1 / 1.4;
  }
}

.gallery-page a:focus-visible,
.gallery-page button:focus-visible,
.gallery-viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

.gallery-page .gallery-category-nav a:focus-visible {
  outline-offset: 4px;
}

.gallery-modal-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  width: min(1440px, 100%);
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  margin: auto;
  padding: 64px 84px 28px;
  overflow: auto;
  border: 0;
  background: transparent;
  color: #f6e3d3;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
}

.gallery-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.gallery-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 164px);
  max-height: calc(100dvh - 164px);
  object-fit: contain;
}

.gallery-lightbox-image.is-changing {
  animation: gallery-photo-in 220ms ease;
}

.gallery-lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-lightbox-count {
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.gallery-lightbox-close {
  position: absolute;
  top: 6px;
  right: 18px;
  width: 48px;
  height: 48px;
}

.gallery-lightbox-close svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.gallery-lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 80px;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 10px;
}

.gallery-lightbox-next {
  right: 10px;
}

.gallery-lightbox-arrow:hover,
.gallery-lightbox-close:hover {
  color: rgb(222, 192, 171);
  background: rgba(255, 255, 255, 0.07);
}

.gallery-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes gallery-photo-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (max-width: 1050px) {
  .gallery-card {
    flex-basis: calc((100% - var(--gallery-gap)) / 2);
  }
}

@media (max-width: 680px) {
  .gallery-intro {
    padding: 40px 20px 32px;
  }

  .gallery-eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .gallery-category-nav a {
    min-width: 136px;
    padding: 11px 15px;
    font-size: 0.75rem;
  }

  .gallery-section {
    padding: 40px 20px 30px;
  }

  .gallery-section-heading {
    margin-bottom: 26px;
  }

  .gallery-card {
    flex-basis: 100%;
  }

  .gallery-photo-frame {
    border-width: 4px;
  }

  .gallery-enlarge {
    right: 16px;
    bottom: 16px;
    opacity: 1;
    transform: none;
  }

  .gallery-section-footer {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.6875rem;
  }

  .gallery-lightbox {
    padding: 58px 46px 20px;
  }

  .gallery-lightbox-arrow {
    width: 44px;
    height: 64px;
  }

  .gallery-lightbox-arrow svg {
    width: 20px;
    height: 32px;
  }

  .gallery-lightbox-prev { left: 0; }
  .gallery-lightbox-next { right: 0; }
  .gallery-lightbox-close { right: 6px; }

  .gallery-lightbox-caption {
    gap: 12px;
    margin-top: 16px;
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-loop-ready .gallery-track,
  .gallery-category-nav a,
  .gallery-enlarge {
    transition: none;
  }

  .gallery-lightbox-image.is-changing {
    animation: none;
  }

  .food-masonry-grid.is-food-reveal-ready .food-masonry-item .food-photo-reveal,
  .food-masonry-grid.is-food-reveal-ready .food-masonry-item.is-visible .food-photo-reveal,
  .food-masonry-grid.is-food-reveal-ready .food-masonry-item:not(.is-visible) .food-photo-reveal,
  .food-masonry-item .food-photo-frame,
  .food-masonry-item:hover .food-photo-frame,
  .food-masonry-item:focus-visible .food-photo-frame {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .food-masonry-item:hover .food-photo-frame > img {
    animation: none;
  }
}
