/* Editorial photo tour and pastry case. */
.cafe-tour,
.cake-gallery {
  --room-ink: #382820;
  --room-cocoa: #653d2b;
  --room-paper: var(--cafe-paper);
  padding: clamp(3.25rem, 6.5vw, 6.5rem) var(--page-gutter, clamp(1.125rem, 6vw, 6rem));
  color: var(--room-ink);
  font-family: 'DM Sans', sans-serif;
}

.cafe-tour { background: var(--room-paper); }
.cake-gallery { background: #fff; }
.cafe-tour > :not(.sr-only),
.cake-gallery > * { max-width: 76rem; margin-inline: auto; }
.tour-intro,
.cake-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.tour-intro h2,
.cake-gallery-head h2 {
  margin: 0;
  color: var(--room-ink);
  font: 600 clamp(2.25rem, 4.35vw, 4.5rem)/1.03 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.tour-intro > p,
.cake-gallery-copy p,
#room-description,
.map-note {
  margin: 0;
  color: #5b493f;
  font: 400 1rem/1.55 'DM Sans', sans-serif;
}
.tour-intro > p, .cake-gallery-copy { max-width: 32ch; }
.room-choices {
  display: flex;
  gap: .375rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.room-choices button {
  min-height: 44px;
  padding: .6rem 1.2rem;
  border: 0;
  border-radius: 100px;
  color: var(--room-ink);
  background: #eae1d6;
  font: 500 1rem/1.25 'DM Sans', sans-serif;
  scroll-margin-top: 6.25rem;
}
.room-choices button[aria-pressed="true"] { background: var(--room-cocoa); color: white; }
.tour-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.8vw, 4rem);
  align-items: start;
}
.room-detail { min-width: 0; }
.room-visual { position: relative; }
.room-photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: #fff;
  border: 0;
  background: #e8ded1;
  border-radius: var(--cafe-radius-photo);
}
.room-photo-open > img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: inherit; }
.photo-zoom {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  position: absolute;
  top: .875rem;
  right: .875rem;
  padding: .5rem .75rem;
  background: #332820ed;
  color: white;
  border-radius: 100px;
  font: 500 .875rem/1.25 'DM Sans', sans-serif;
}
.photo-zoom svg, .photo-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.room-photo-info {
  margin: 1rem 0 .3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.room-photo-info h3 {
  margin: 0;
  color: var(--room-ink);
  font: 600 clamp(1.75rem, 3vw, 2.6rem)/1.1 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.028em;
}
.photo-controls { display: flex; align-items: center; gap: .3rem; }
.photo-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--room-cocoa);
  background: #eae1d6;
}
.photo-controls span { min-width: 2.3rem; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; }
#room-description { max-width: 60ch; }
.room-thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 .4rem; }
.room-thumbnails button {
  width: clamp(3.25rem, 10vw, 4.375rem);
  height: clamp(2.75rem, 7vw, 3.3rem);
  padding: 2px;
  border: none;
  background: transparent;
  outline-offset: 2px;
  border-radius: .7rem;
}
.room-thumbnails button[aria-pressed="true"] { background: var(--room-cocoa); }
.room-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: .55rem; }
.cake-menu-link,
.room-walk-next {
  display: inline-flex;
  align-items: center;
  padding: .4rem 0;
  min-height: 44px;
  font: 500 .9375rem/1.4 'DM Sans', sans-serif;
  color: var(--room-cocoa);
  text-decoration: underline;
  text-underline-offset: .22em;
  border: none;
  background: transparent;
}
.tour-map-panel {
  min-width: 0;
  margin: 0;
  background: var(--cafe-blush);
  padding: .75rem clamp(.85rem, 2vw, 1.5rem);
  border-radius: var(--cafe-radius-panel);
}
.tour-map-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: 600 clamp(1.625rem, 2.75vw, 2.4rem)/1.2 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.025em;
}
.tour-map-panel > summary::-webkit-details-marker { display: none; }
.map-toggle { display: grid; place-content: center; width: 24px; height: 24px; }
.map-toggle::before { content: ''; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: 8px; height: 8px; transform: rotate(45deg); }
.tour-map-panel[open] .map-toggle::before { transform: rotate(225deg); }
.cafe-map { display: block; width: 100%; height: auto; max-width: 29rem; margin: 0 auto; overflow: visible; }
.tour-map-panel .map-note { font-size: .875rem; margin-bottom: .3rem; }
.map-room { cursor: pointer; }
.room-floor { fill: #e7dac8; stroke: #bbaa93; stroke-width: .7; }
.map-room.is-active .room-floor { fill: #cfb08d; }
.map-room:focus-visible { outline: none; }
.map-room:focus-visible .room-floor { stroke: #58361f; stroke-width: 5; }
.map-room-name { fill: #463224; font: 600 17px 'DM Sans', sans-serif; letter-spacing: -.4px; }
.map-furniture { fill: #c7b298; stroke: #a48b6b; stroke-width: 1; }
.map-detail { fill: #604932; font: 11px 'DM Sans', sans-serif; }
.map-walls { fill: none; stroke: #856e54; stroke-width: 5; stroke-linecap: square; pointer-events: none; }
.map-route { fill: none; stroke: #9c7855; stroke-width: 2; }
.map-outside { fill: #644a31; font: 15px 'DM Sans', sans-serif; }
.map-service-floor { fill: #e9e3d9; stroke: #c7bba9; stroke-width: .7; }
.map-service-label { fill: #685541; font: 500 17px 'DM Sans', sans-serif; }
.map-counter-label { font-size: 14px; }

.cake-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem) clamp(.875rem, 2.2vw, 2rem);
}
.cake-photos figure { margin: 0; min-width: 0; }
.cake-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: #e8ded0; border-radius: 1rem; }
/* Keep the original slice and its price tag together in the square frame. */
.cake-photo img {
  position: absolute;
  display: block;
  width: calc(1080 / var(--crop-size, 1080) * 100%);
  max-width: none;
  height: auto;
  left: calc(-100% * var(--crop-x, 0) / var(--crop-size, 1080));
  top: calc(-100% * var(--crop-y, 0) / var(--crop-size, 1080));
}
.cake-photos figcaption {
  margin-top: .7rem;
  color: var(--room-ink);
  font: 500 clamp(1rem, 1.5vw, 1.2rem)/1.35 'DM Sans', sans-serif;
  overflow-wrap: break-word;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cafe-lightbox { padding: 0; border: 0; border-radius: var(--cafe-radius-panel); background: #2c221c; color: #fff; width: min(72rem,94vw); max-width: 94vw; max-height: 94dvh; overflow: auto; }
.cafe-lightbox::backdrop { background: #1b1511e8; }
.lightbox-top, .lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .75rem 1rem; }
.lightbox-top > span { font: 600 1.65rem/1.15 'Cormorant Garamond', Georgia, serif; }
.lightbox-close, .lightbox-prev, .lightbox-next { min-width: 44px; min-height: 44px; border: 0; background: #44352b; color: white; }
.lightbox-close { padding: .5rem .9rem; border-radius: 100px; font-size: .9rem; }
.lightbox-image-wrap { position: relative; display: grid; place-items: center; background: #1d1713; min-height: 140px; }
.lightbox-image-wrap img { width: 100%; height: min(68dvh, 48rem); object-fit: contain; }
.lightbox-prev, .lightbox-next { position: absolute; top: calc(50% - 22px); display:grid; place-items:center; padding: 0; border-radius: 50%; font-size: 1.25rem; }
.lightbox-prev { left: .65rem; }
.lightbox-next { right: .65rem; }
.lightbox-caption p { margin: 0; font: 400 .94rem/1.4 'DM Sans', sans-serif; color: #f2e5d9; }
.lightbox-caption span { font-size: .875rem; color: #f2e5d9; white-space: nowrap; }
.cafe-tour :is(button, summary):focus-visible, .cafe-lightbox button:focus-visible { outline: 3px solid #9b4d27; outline-offset: 3px; }
.cafe-lightbox button:focus-visible { outline-color: #ffdfb8; }
@media (hover:hover) and (pointer:fine) {
  .room-choices button:not([aria-pressed="true"]):hover, .photo-controls button:hover { background: #dbcab7; }
  .room-walk-next:hover, .cake-menu-link:hover { text-decoration-thickness: 2px; }
  .room-thumbnails button:not([aria-pressed="true"]):hover { background: #c8ac8d; }
  .map-room:hover .room-floor { stroke: var(--room-cocoa); stroke-width: 2.5; }
  .photo-controls button, .lightbox-prev, .lightbox-next { transition: transform 130ms cubic-bezier(.23,1,.32,1); }
  .photo-controls button:active, .lightbox-prev:active, .lightbox-next:active { transform: scale(.96); }
}
@media (max-width:760px) {
  .tour-intro, .cake-gallery-head { display: grid; justify-content: start; gap: .7rem; }
  .tour-intro > p, .cake-gallery-copy { max-width: 45ch; }
  .room-choices { gap: .25rem; }
  .room-choices button { padding-inline: clamp(.5rem, 2.2vw, 1rem); font-size: clamp(.875rem, 3.6vw, 1rem); }
  .tour-stage { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .room-photo-open > img { aspect-ratio: 4 / 3; }
  .photo-zoom { top: .6rem; right: .6rem; padding: .5rem; }
  .photo-zoom span { display: none; }
  .room-photo-info { margin-top: .6rem; }
  .room-thumbnails { margin-top: .7rem; }
  .tour-map-panel { padding: .45rem .85rem; }
  .tour-map-panel .map-note { padding-bottom: .4rem; }
  .cake-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem .75rem; }
  .cake-photos figcaption { margin-top: .5rem; }
  .lightbox-caption { align-items: start; }
}
@media (prefers-reduced-motion:reduce) {
  .cafe-tour *, .cafe-lightbox * { transition: none !important; }
}
