/* Load after the page styles. Keep photographs neutral and show full products. */
.hero .hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #eeece7;
}

.food-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.food-photo,
.food-menu-revised .food-photo,
.drink-menu-cards .food-photo {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eeece7;
}

/* Reset the previous 125% plate enlargement as well as hover zooms. */
.food-photo > img,
.food-menu-revised .food-photo > img,
.food-menu-revised .food-photo > img.food-photo-matched,
.drink-menu-cards .food-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: none !important;
}

.purpose-card img {
  aspect-ratio: 3 / 2;
  object-position: center;
}

.home-interior.books-corner figure,
.rooftop-figure {
  max-width: 1040px;
  margin-inline: auto;
}

.home-interior.books-corner img,
.rooftop-figure img,
.workshop-about figure > img:not(.artwork-image),
.lounge-hero figure > img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #eeece7;
}

.drink-feature > figure > img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #eeece7;
}

/* Editorial category photos replace the repeated individual drink photos. */
.drink-category-visual {
  max-width: 720px;
  margin: 0 auto 24px;
  background: transparent;
}

.drink-category-visual > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: #eeece7;
}

.drink-category-visual > figcaption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.drink-menu-cards .food-photo {
  display: none;
}

.drink-menu-cards .food-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  align-items: stretch;
}

.drink-menu-cards .food-card {
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.drink-menu-cards .food-info {
  padding-top: 0;
}

/* Preserve complete bottle labels and cocktail glass silhouettes. */
.fentimans-photo img,
.cocktail-mood-grid img {
  object-fit: contain;
  object-position: center;
  background: #eeece7;
}

/* Only normal gallery photographs get a common frame. Legacy viewport
   coordinates continue to work on .is-cropped without being overridden. */
.gallery-grid .photo-window:not(.is-cropped),
.gallery-grid .gallery-card:first-child .photo-window:not(.is-cropped) {
  aspect-ratio: 3 / 2;
  max-width: none;
  background: #eeece7;
}

.photo-window:not(.is-cropped) > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.purpose-card img.artwork-image {
  object-fit: contain;
  background: #eeece7;
}

.layout-reference {
  margin-top: 42px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.layout-reference summary { cursor: pointer; font-size: 13px; }
.layout-reference p { margin: 18px 0; color: var(--muted); font-size: 12px; }
.layout-reference img { display: block; width: 100%; height: auto; }

/* A wide plan and an enlarged photo retain their original proportions. */
.gallery-grid .gallery-card.is-wide .photo-window:not(.is-cropped),
.dialog-photo .photo-window:not(.is-cropped) {
  aspect-ratio: var(--image-ratio, 4 / 3);
}

@media (max-width: 800px) {
  .food-grid,
  .food-menu-revised .food-grid,
  .drink-menu-cards .food-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .drink-category-visual > img {
    aspect-ratio: 3 / 2;
  }

  .drink-menu-cards .food-grid {
    gap: 0 14px;
  }

  .drink-menu-cards .food-card {
    padding: 15px 0;
  }
}
