:root {
  color-scheme: light;
  --bg: #f2f8ff;
  --bg-2: #e8f3ff;
  --glass: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.4);
  --text: #12304a;
  --muted: #5a728a;
  --accent: #4cc9f0;
  --accent-2: #8bd3dd;
  --accent-3: #b8e1ff;
  --shadow: 0 12px 30px rgba(18, 48, 74, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 40%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 252, 255, 0.85);
  border-bottom: 1px solid rgba(170, 210, 240, 0.4);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-kicker {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.brand-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(76, 201, 240, 0.18);
}

.nav a.is-active {
  background: rgba(76, 201, 240, 0.28);
  font-weight: 600;
}

.hero {
  padding: 60px 0 40px;
}

.page-hero {
  padding: 40px 0 10px;
}

.page-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  padding: 70px 0 40px;
  overflow: hidden;
}

.hero-visual__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(16, 46, 72, 0.35), rgba(76, 201, 240, 0.25)), url("assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-visual__content {
  position: relative;
  z-index: 1;
  padding: 30px;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-visual__kicker {
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #e8f7ff;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-visual h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: #ffffff;
}

.hero-visual__meta {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-visual__actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual__note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hero-card {
  padding: 28px;
}

.hero-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
}

.hero-kicker {
  color: var(--muted);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #69c6ff 100%);
  color: #083049;
}

.btn.ghost {
  border-color: rgba(76, 201, 240, 0.6);
}

.hero-meta {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.qr-card img {
  width: 180px;
  margin: 10px auto 0;
}

.qr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.link {
  color: #005f88;
  font-weight: 600;
  text-decoration: none;
}

.section {
  padding: 40px 0 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h3 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.info-card {
  padding: 20px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.cta-card {
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.onecoin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.onecoin-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.onecoin-card .badge {
  align-self: start;
}

.first-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.first-card {
  padding: 18px;
}

.stamp-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.stamp-card img {
  width: 120px;
  height: auto;
}

.qr-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text);
  backdrop-filter: blur(10px);
}

.video-card {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(120, 160, 190, 0.25);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-card {
  padding: 18px 22px;
  display: grid;
  gap: 6px;
}

.filters,
.map-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 18px;
}

.filter-item label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.filter-item input,
.filter-item select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 190, 0.3);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.filter-item.toggle {
  align-self: end;
  display: flex;
  flex-direction: column;
}

.booth-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.booth-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.booth-card.is-highlight {
  box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.7), var(--shadow);
  background: rgba(255, 255, 255, 0.85);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

details p {
  margin: 8px 0 0;
}

.number-jump {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 8px;
}

.number-jump button {
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  padding: 16px;
}

.booth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.booth-table th,
.booth-table td {
  border-bottom: 1px solid rgba(120, 160, 190, 0.25);
  padding: 10px 8px;
  text-align: left;
}

.booth-table th {
  background: rgba(255, 255, 255, 0.6);
}
.booth-card__media {
  border-radius: 14px;
  overflow: hidden;
}

.booth-card__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(76, 201, 240, 0.2);
  color: #0b4f6b;
}

.map-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: start;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(40px, 1fr));
  gap: 10px;
  padding: 18px;
  min-height: 380px;
}

.map-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.map-cell.label {
  background: rgba(141, 211, 221, 0.35);
  color: #0d455f;
  font-weight: 600;
}

.booth-button {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(90, 140, 170, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.booth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 48, 74, 0.15);
}

.booth-button.is-query {
  background: rgba(255, 230, 156, 0.9);
}

.booth-button.is-self {
  background: rgba(121, 255, 220, 0.6);
  box-shadow: 0 0 0 2px rgba(48, 160, 130, 0.6) inset;
}

.booth-button.is-highlight {
  background: rgba(107, 178, 255, 0.6);
}

.map-side {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.map-side ul {
  padding-left: 18px;
  margin: 0;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

.map-legend {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.legend-dot.query {
  background: rgba(107, 178, 255, 0.6);
}

.legend-dot.self {
  background: rgba(121, 255, 220, 0.7);
}

.legend-dot.match {
  background: rgba(255, 230, 156, 0.9);
}

.here-banner,
.self-banner {
  margin: 16px 0;
  padding: 12px 18px;
  font-weight: 600;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.access-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.access-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.access-card--map img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 48, 74, 0.18);
}

.map-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.map-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.map-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.map-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-image img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.pdf-frame {
  width: 100%;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 190, 0.25);
  background: rgba(255, 255, 255, 0.6);
}

.pdf-frame object {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.course-card {
  padding: 18px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.route-card {
  padding: 18px;
}

.note-box {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 18px;
}

.site-footer {
  margin-top: 60px;
  padding: 30px 0 40px;
  background: rgba(235, 246, 255, 0.9);
}

.footer-inner {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cta-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 160, 190, 0.35);
  border-radius: 999px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 10px 24px rgba(18, 48, 74, 0.16);
  z-index: 30;
}

.cta-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.2);
}

.cta-btn:focus-visible,
.nav a:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.8);
  outline-offset: 2px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 45, 0.45);
}

.modal-card {
  position: relative;
  max-width: 520px;
  width: min(100%, 520px);
  padding: 22px;
  z-index: 1;
}

.image-modal .modal-card {
  max-width: 92vw;
  width: auto;
  padding: 12px;
}

.image-modal img {
  max-width: 88vw;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.modal-actions .primary {
  background: rgba(76, 201, 240, 0.7);
}

.modal-actions .ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(76, 201, 240, 0.6);
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
  }
  .map-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-visual__content {
    max-width: 100%;
  }
  .cta-bar {
    width: calc(100% - 24px);
    justify-content: center;
  }
}

.reservation-closed { max-width: 920px; margin: 48px auto; padding: 0 16px; }
.closed-box { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.closed-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn.secondary { background: #f2f2f2; color: #333; }
.photo-hero { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.08); margin: 16px 0; }
.photo-hero img { width: 100%; height: auto; display: block; }
.photo-hero figcaption { padding: 10px 12px; font-size: 14px; opacity: .8; }

/* ===== Gallery page ===== */
.gallery-hero { max-width: 1100px; margin: 24px auto 40px; padding: 0 16px; }
.gallery-title { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--text); }
.gallery-lead { margin: 0 0 14px; opacity: .8; font-size: .95rem; }

.group-photo-link { display: block; border-radius: 22px; overflow: hidden; }
.group-photo {
  width: 100%; height: auto; display: block;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.group-photo-link:hover .group-photo { transform: scale(1.01); }

.slider-block { max-width: 1100px; margin: 0 auto 34px; padding: 0 16px; }
.slider-block h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--text); }

.slider {
  position: relative;
  background: #f7f7fb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  height: min(520px, 62vh);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider .slide-img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease;
}
.slider .slide-img.is-show { opacity: 1; }

.slider-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none; border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.slider-nav:hover { background: rgba(0,0,0,.65); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

.slider-controls { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.thumbs-block { max-width: 1100px; margin: 0 auto 60px; padding: 0 16px; }
.thumbs-block h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--text); }
.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.thumb {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.thumb:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
.thumb img {
  width: 100%; height: 120px;
  object-fit: cover; display: block;
}

.gallery-footer {
  text-align: center; padding: 32px 20px 44px;
  font-size: .85rem; color: var(--muted);
}
.gallery-footer a { color: #005f88; text-decoration: none; font-weight: 600; }
.gallery-footer a:hover { text-decoration: underline; }

/* Gallery button with group photo background */
.gallery-btn {
  position: relative;
  overflow: hidden;
  background: transparent !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
  color: #fff;
}
.gallery-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/20260222/gallery/thumb/group.jpg") center / cover no-repeat;
  opacity: .35;
  transform: scale(1.1);
}
.gallery-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(236, 72, 153, .62);
}
.gallery-btn span,
.gallery-btn {
  isolation: isolate;
}

/* Ticker (shared between index & thanks) */
.ticker {
  overflow: hidden;
  background: rgba(255,255,255,.7);
  border-top: 1px solid rgba(216,129,157,.15);
  border-bottom: 1px solid rgba(216,129,157,.15);
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
  font-size: 1rem;
  color: #d8819d;
  font-weight: 500;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 24px; width: auto; }
}

/* Shutter overlay for index gallery transition */
.idx-shutter { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; }
.idx-shutter.is-active { display: block; pointer-events: auto; }
.idx-shutter__flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.idx-shutter__flash.fire { animation: idx-flash .2s ease-out; }
@keyframes idx-flash { 0%{opacity:0} 40%{opacity:1} 100%{opacity:0} }
.idx-shutter__curtain-t,
.idx-shutter__curtain-b { position: absolute; left: 0; right: 0; height: 50%; background: rgba(10,10,10,.9); }
.idx-shutter__curtain-t { top: -50%; }
.idx-shutter__curtain-b { bottom: -50%; }
.idx-shutter__curtain-t.fire { animation: idx-ct .6s ease-in-out; }
.idx-shutter__curtain-b.fire { animation: idx-cb .6s ease-in-out; }
@keyframes idx-ct { 0%{top:-50%} 35%{top:0} 65%{top:0} 100%{top:-50%} }
@keyframes idx-cb { 0%{bottom:-50%} 35%{bottom:0} 65%{bottom:0} 100%{bottom:-50%} }

.idx-photo-modal { position: fixed; inset: 0; z-index: 10000; display: none; background: rgba(0,0,0,.7); }
.idx-photo-modal.is-open { display: flex; align-items: center; justify-content: center; }
.idx-photo-modal img {
  max-width: 94vw; max-height: 88vh; object-fit: contain;
  border-radius: 18px; box-shadow: 0 20px 70px rgba(0,0,0,.5);
  transition: transform 1.8s cubic-bezier(.22,1,.36,1), opacity 1s ease;
}
.idx-photo-modal img.zoom-in { transform: scale(1); opacity: 1; }
.idx-photo-modal img.zoom-out { transform: scale(.08); opacity: 0; }

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 20px;
  }
  .map-grid {
    grid-template-columns: repeat(4, minmax(40px, 1fr));
  }
  .stamp-card {
    grid-template-columns: 1fr;
  }
  .pdf-frame {
    min-height: 360px;
  }
  .slider { height: min(320px, 50vh); }
  .thumbs-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .thumb img { height: 90px; }
}
