.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 22px;
  color: #fff;
  background: var(--olive-deep);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 55px rgba(31, 29, 20, 0.25);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: 0.3s ease;
}

.site-toast--error { background: #873f2d; }
.site-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.setup-notice {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 180px 0 100px;
  background: var(--paper);
}

.setup-notice .shell { max-width: 760px; }
.setup-notice h1 {
  margin: 0 0 20px;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.setup-notice code {
  padding: 2px 6px;
  color: var(--olive-deep);
  background: rgba(85, 87, 47, 0.1);
}

.contact-booking-form input,
.contact-booking-form select,
.contact-booking-form textarea {
  font: inherit;
}

.form-notice {
  padding: 12px 15px;
  color: var(--olive-deep);
  background: rgba(85, 87, 47, 0.09);
  border-left: 3px solid var(--olive);
}

.menu-group-card__image img,
.rice-card > img,
.hotpot-section__image img {
  width: 100%;
}

/* Gallery preview, navigation and incremental loading */
.space-gallery__grid > figure {
  position: relative;
  cursor: zoom-in;
}

.space-gallery__grid > figure::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-family: var(--serif, serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  background: rgba(54, 54, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  pointer-events: none;
}

.space-gallery__grid > figure:hover::after,
.space-gallery__grid > figure:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.space-gallery__grid > figure:hover img {
  filter: brightness(0.92);
}

.space-gallery__grid > figure:focus-visible {
  outline: 2px solid var(--olive-deep, #55572f);
  outline-offset: 6px;
}

.space-gallery__item--hidden,
.space-gallery__grid > figure[hidden] {
  display: none !important;
}

.space-gallery__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(42px, 6vw, 72px);
}

.space-gallery__more[hidden] {
  display: none;
}

.space-gallery__more-button {
  min-width: 168px;
  justify-content: center;
  gap: 12px;
  color: var(--olive-deep, #55572f);
  background: transparent;
  border: 1px solid rgba(85, 87, 47, 0.45);
}

.space-gallery__more-button:hover,
.space-gallery__more-button:focus-visible {
  color: #fff;
  background: var(--olive-deep, #55572f);
  border-color: var(--olive-deep, #55572f);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 20, 12, 0.94);
  backdrop-filter: blur(5px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  width: min(1380px, 100%);
  max-height: calc(100vh - 56px);
}

.gallery-lightbox__figure {
  min-width: 0;
  margin: 0;
}

.gallery-lightbox__image-wrap {
  display: grid;
  min-height: min(72vh, 760px);
  place-items: center;
}

.gallery-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(78vh, 900px);
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-lightbox.is-changing .gallery-lightbox__image {
  opacity: 0;
  transform: scale(0.992);
}

.gallery-lightbox__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.gallery-lightbox__counter {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: var(--olive, #74764c);
  border-color: rgba(255, 255, 255, 0.8);
  outline: none;
}

.gallery-lightbox__close {
  position: absolute;
  right: 6px;
  top: 0;
  z-index: 2;
  width: 46px;
  height: 46px;
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
  transform: translateY(-8px);
}

.gallery-lightbox__nav {
  width: 48px;
  height: 48px;
  font-family: var(--serif, serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.gallery-lightbox__nav--prev { justify-self: start; }
.gallery-lightbox__nav--next { justify-self: end; }

@media (max-width: 767px) {
  .space-gallery__grid > figure::after {
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    opacity: 1;
    transform: none;
  }

  .gallery-lightbox {
    padding: 16px 14px 18px;
  }

  .gallery-lightbox__dialog {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .gallery-lightbox__image-wrap {
    min-height: 0;
  }

  .gallery-lightbox__image {
    max-height: calc(100vh - 145px);
  }

  .gallery-lightbox__close {
    position: fixed;
    right: 16px;
    top: 16px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .gallery-lightbox__nav {
    position: fixed;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox__nav--prev { left: 16px; }
  .gallery-lightbox__nav--next { right: 16px; }

  .gallery-lightbox__meta {
    min-height: 60px;
    padding: 14px 58px 0;
    text-align: center;
  }

  .gallery-lightbox__caption {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox__image,
  .space-gallery__grid > figure::after {
    transition: none;
  }
}
