/* 1 to 10 — Trip to Japan · per-day photo strips + lightbox */

/* photos inside each timeline item */
.slot__shots { display: grid; gap: 10px; margin: 14px 0 4px; }
.slot__shots--1 { grid-template-columns: minmax(0, 1fr); }
.slot__shots--2, .slot__shots--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot__shots--3 .shot:first-child { grid-column: 1 / -1; }
.slot__shots--1 .shot__open, .slot__shots--3 .shot:first-child .shot__open { aspect-ratio: 3 / 2; }
.slot__shots--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot__shots--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot__shots--4 .shot:first-child, .slot__shots--5 .shot:first-child { grid-column: 1 / -1; }
.slot__shots--4 .shot:first-child .shot__open, .slot__shots--5 .shot:first-child .shot__open { aspect-ratio: 3 / 2; }
.slot__shots .shot figcaption .mono { display: none; }
.day__media .ph { cursor: zoom-in; }
.shot { margin: 0; min-width: 0; }
.shot__open {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--washi-2);
  cursor: zoom-in;
  isolation: isolate;
  box-shadow: var(--shadow-1);
  transition: transform 180ms var(--ease-ui), box-shadow 240ms var(--ease-ui);
}
.shot__open img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.shot__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); pointer-events: none; }
.shot__open:hover { box-shadow: var(--shadow-2); }
.shot__open:hover img { transform: scale(1.05); }
.shot__open:active { transform: scale(0.96); }
.shot__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 26, 49, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  scale: 0.8;
  transition: opacity 180ms var(--ease-ui), scale 180ms var(--ease-ui);
}
.shot__zoom svg { width: 16px; height: 16px; }
.shot__open:hover .shot__zoom, .shot__open:focus-visible .shot__zoom { opacity: 1; scale: 1; }
.shot figcaption { margin-top: 9px; font-size: 0.88rem; line-height: 1.45; color: #3a3e47; text-wrap: pretty; }
.shot figcaption .mono { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--shu-deep); margin-bottom: 2px; }

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(10, 15, 30, 0.985);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 15, 30, 0.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lbIn 220ms var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { position: relative; display: grid; place-items: center; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; overflow: hidden; padding: 64px 72px 8px; touch-action: pan-y; }
.lightbox__img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 160px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 200ms var(--ease-ui), transform 260ms var(--ease-out);
}
.lightbox__img.is-swapping { opacity: 0; transform: scale(0.985); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 24px 22px; max-width: 1100px; width: 100%; margin: 0 auto; }
.lightbox__cap { margin: 0; font: 600 1.05rem/1.4 var(--f-display); }
.lightbox__cap .mono { display: block; font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #ffb4a4; margin-bottom: 3px; }
.lightbox__meta { margin: 0; font: 0.72rem/1.4 var(--f-mono); color: rgba(255, 255, 255, 0.6); text-align: right; flex: none; max-width: 40%; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms var(--ease-ui), transform 160ms var(--ease-ui);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__btn:active { transform: scale(0.96); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; top: 26px; left: 24px; font: 500 0.75rem/1 var(--f-mono); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
  .shot__zoom { opacity: 1; scale: 1; }
  .lightbox__stage { padding: 64px 10px 8px; overflow: visible; }
  .lightbox__img { max-width: calc(100vw - 20px); max-height: calc(100dvh - 230px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -58px; translate: none; }
  .lightbox__prev { left: auto; right: 72px; }
  .lightbox__bar { flex-direction: column; padding: 14px 16px 22px; padding-right: 140px; }
  .lightbox__meta { text-align: left; max-width: none; }
}

/* ---------- the "how to do this" panel above the photos ---------- */
.lightbox[open] { grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__plan {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 72px 14px 24px;
  display: grid;
  gap: 10px;
  color: #fff;
  overflow-y: auto;
  max-height: 46dvh;
  overscroll-behavior: contain;
}
.lightbox__plan[hidden] { display: none; }
.plan__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.plan__status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--shu);
  font: 600 0.66rem/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan__title { margin: 0; color: #fff; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.plan__when { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.plan__how { margin: 0; font-size: 0.98rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); max-width: 70ch; }
.plan__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan__card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color 160ms var(--ease-ui), transform 160ms var(--ease-ui);
}
.plan__card:active { transform: scale(0.98); }
.plan__card-label { font: 600 0.64rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: #ffb4a4; }
.plan__card-jp { font: 700 1.05rem/1.5 var(--f-display); }
.plan__card-en { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.lightbox__close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 5; }
.lightbox__count { top: 14px; }

/* ---------- Book / Call / Website buttons ---------- */
.book-btn, .call-btn, .site-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font: 600 0.8rem/1 var(--f-body);
  transition: transform 160ms var(--ease-ui), background-color 160ms var(--ease-ui);
}
.book-btn:active, .call-btn:active, .site-btn:active { transform: scale(0.96); }
.book-btn svg, .call-btn svg, .site-btn svg { width: 16px; height: 16px; }
.book-btn { background: var(--shu); color: #fff; box-shadow: 0 6px 16px rgba(198, 62, 41, 0.28); }
.book-btn:hover { background: var(--shu-deep); }
.call-btn { background: var(--matsu); color: #fff; }
.site-btn { background: var(--paper); color: var(--ai); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.lightbox .site-btn, .lightbox .slot__map { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lightbox .slot__map { margin: 0; }

@media (max-width: 640px) {
  .lightbox__plan { padding: max(14px, env(safe-area-inset-top)) 64px 10px 16px; max-height: 50dvh; gap: 8px; }
  .plan__how { font-size: 0.92rem; }
  .plan__card-jp { font-size: 0.98rem; }
  .lightbox__stage { padding-top: 8px; }
  .lightbox__img { max-height: calc(50dvh - 120px); }
}
