/* The tourism album owns its screen; the exhibition keeps its existing dialogs. */
body.tourism-gallery-open { overflow: hidden; }
#tourism-gallery, #tourism-lightbox {
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; padding: 0;
  border: 0; border-radius: 0; box-shadow: none;
  background: #f6f4eb; color: #354a32; overscroll-behavior: contain;
}
#tourism-gallery::backdrop { background: #f6f4eb; backdrop-filter: none; }
#tourism-gallery button, #tourism-lightbox button { -webkit-tap-highlight-color: transparent; }
#tourism-gallery button:hover, #tourism-lightbox button:hover { filter: none; }
#tourism-gallery :focus-visible { outline: 2px solid #526641; outline-offset: 5px; }
.tourism-gallery-top {
  position: sticky; top: 0; z-index: 2; min-height: 44px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; margin: 0 32px; background: #f6f4eb;
  border-bottom: 1px solid #cdd1c3;
}
.tourism-gallery-top > button { min-height: 44px; padding: 0 6px; font-size: 14px; justify-self: start; }
.tourism-gallery-top > button:last-child { justify-self: end; min-width: 48px; font-size: 27px; font-weight: 300; }
.tourism-gallery-top > span { font-family: 'Songti SC',STSong,SimSun,serif; font-size: 15px; }
.tourism-gallery-page { width: calc(100% - 72px); max-width: 1360px; margin: 0 auto; padding: 30px 0 20px; }
.tourism-gallery-heading { margin: 0 0 20px; }
.tourism-gallery-eyebrow { margin: 0 0 12px; font-size: 12px; line-height: 1.5; letter-spacing: 2px; color: #66735f; }
.tourism-gallery-heading h1 {
  margin: 0 0 6px; font: 400 clamp(46px,7.2vw,90px)/1.1 'Songti SC',STSong,'Noto Serif SC',SimSun,serif;
  letter-spacing: .025em; color: #2d412f;
}
.tourism-gallery-subtitle { margin: 0; font-size: clamp(17px,1.8vw,23px); line-height: 1.6; color: #68755e; }
.tourism-gallery-feature { display: grid; grid-template-columns: minmax(0,3.65fr) minmax(0,1fr); gap: 32px; align-items: stretch; }
.tourism-gallery-photo { display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; cursor: zoom-in; }
.tourism-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tourism-gallery-photo:hover img { transform: scale(1.015); }
.tourism-gallery-feature > .tourism-gallery-photo { aspect-ratio: 1.85; }
.tourism-gallery-story { align-self: start; padding: 40px 0; }
.tourism-gallery-number { display: flex; align-items: center; gap: 20px; color: #6d7965; font: 15px Georgia,serif; margin: 0 0 32px; }
.tourism-gallery-number::after { content: ''; width: 56px; height: 1px; background: #c6cdbe; }
.tourism-gallery-story h2 { margin: 0 0 30px; font: 400 clamp(28px,4.5vw,56px)/1.35 'Songti SC',STSong,SimSun,serif; letter-spacing: .02em; }
.tourism-gallery-story h2 span { display: block; white-space: nowrap; }
.tourism-gallery-story > p:not(.tourism-gallery-number) { font-size: 18px; line-height: 1.9; color: #65715e; margin: 0; max-width: 15em; white-space: pre-line; }
.tourism-gallery-section-title { display: flex; align-items: center; gap: 20px; margin: 30px 0 22px; }
.tourism-gallery-section-title h2 { font: 400 clamp(24px,3vw,34px)/1.4 'Songti SC',STSong,SimSun,serif; margin: 0; flex-shrink: 0; }
.tourism-gallery-section-title::after { content: ''; flex: 1; height: 1px; background: #cdd1c3; }
.tourism-gallery-section-title > span { font: 11px Georgia,serif; letter-spacing: 1px; color: #6d7965; order: 1; }
.tourism-gallery-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.tourism-gallery-card { min-width: 0; margin: 0; }
.tourism-gallery-grid:has(> :nth-child(3)) > .tourism-gallery-card:first-child { grid-row: span 2; }
.tourism-gallery-card > .tourism-gallery-photo { aspect-ratio: 2.66; }
.tourism-gallery-card:first-child > .tourism-gallery-photo { aspect-ratio: 1.38; }
.tourism-gallery-card:nth-child(3) > .tourism-gallery-photo { aspect-ratio: 3.6; }
.tourism-gallery-grid:not(:has(> :nth-child(3))) .tourism-gallery-photo { aspect-ratio: 1.6; }
.tourism-gallery-caption { padding-top: 10px; }
.tourism-gallery-caption h3 { margin: 0 0 5px; font: 400 25px/1.35 'Songti SC',STSong,SimSun,serif; color: #354a32; }
.tourism-gallery-caption p { margin: 0; color: #65715e; font-size: 15px; line-height: 1.7; }
.tourism-gallery-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid #cdd1c3; }
.tourism-gallery-details h3 { margin: 0 0 8px; font: 400 24px/1.4 'Songti SC',STSong,SimSun,serif; }
.tourism-gallery-details p { margin: 0; font-size: 15px; line-height: 1.8; color: #65715e; }
.tourism-gallery-note { margin: 28px 0 0; padding: 14px 0 0; border-top: 1px solid #cdd1c3; font-size: 12px; line-height: 1.8; color: #687360; }

#tourism-lightbox { background: #182218; color: #f6f4eb; overflow: hidden; }
#tourism-lightbox::backdrop { background: #182218; backdrop-filter: none; }
.tourism-lightbox-top { display: flex; justify-content: space-between; align-items: center; height: 72px; padding: 0 28px; }
.tourism-lightbox-top button { min-width: 48px; min-height: 48px; color: inherit; }
.tourism-lightbox-top h2 { margin: 0; font-weight: 400; font-size: 19px; }
.tourism-lightbox-stage { position: relative; height: calc(100% - 160px); display: grid; place-items: center; padding: 0 80px; }
.tourism-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tourism-lightbox-prev, .tourism-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid #ffffff55; border-radius: 50%; color: inherit; font-size: 26px; }
.tourism-lightbox-prev { left: 20px; }
.tourism-lightbox-next { right: 20px; }
.tourism-lightbox-caption { text-align: center; margin: 16px 24px 0; font-size: 15px; line-height: 1.7; }
.tourism-lightbox-count { color: #c1c9b9; font-size: 13px; }
#tourism-lightbox :focus-visible { outline: 2px solid #e4edc9; outline-offset: 4px; }

@media(min-width:1600px) { .tourism-gallery-top { max-width: 1400px; margin: 0 auto; } }
@media(max-width:900px) {
  .tourism-gallery-feature { grid-template-columns: minmax(0,2.7fr) minmax(0,1fr); gap: 24px; }
  .tourism-gallery-story { padding: 16px 0; }
  .tourism-gallery-story h2 { font-size: 30px; margin-bottom: 18px; }
  .tourism-gallery-number { margin-bottom: 20px; }
  .tourism-gallery-story > p:not(.tourism-gallery-number) { font-size: 14px; }
}
@media(max-width:700px) {
  .tourism-gallery-top { margin: 0 18px; gap: 4px; padding-top: env(safe-area-inset-top); min-height: 58px; }
  .tourism-gallery-top > button { font-size: 13px; padding: 0; }
  .tourism-gallery-top > span { font-size: 12px; }
  .tourism-gallery-top > button:last-child { font-size: 25px; }
  .tourism-gallery-page { width: calc(100% - 40px); padding-top: 28px; padding-bottom: max(24px,env(safe-area-inset-bottom)); }
  .tourism-gallery-eyebrow { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 12px; }
  .tourism-gallery-heading { margin-bottom: 22px; }
  .tourism-gallery-heading h1 { font-size: clamp(40px,12vw,60px); margin-bottom: 9px; }
  .tourism-gallery-subtitle { font-size: 16px; }
  .tourism-gallery-feature { display: flex; flex-direction: column; gap: 20px; }
  .tourism-gallery-feature > .tourism-gallery-photo { aspect-ratio: 4/3; }
  .tourism-gallery-story { align-self: stretch; padding: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .tourism-gallery-number { grid-row: span 2; align-self: start; margin-top: 7px; gap: 10px; }
  .tourism-gallery-number::after { width: 22px; }
  .tourism-gallery-story h2 { font-size: 27px; line-height: 1.5; margin-bottom: 8px; }
  .tourism-gallery-story h2 span { display: inline; white-space: normal; }
  .tourism-gallery-story h2 span + span::before { content: '，'; }
  .tourism-gallery-story > p:not(.tourism-gallery-number) { font-size: 14px; max-width: none; }
  .tourism-gallery-section-title { margin: 32px 0 18px; gap: 12px; }
  .tourism-gallery-section-title h2 { font-size: 24px; }
  .tourism-gallery-section-title > span { display: none; }
  .tourism-gallery-grid { display: flex; flex-direction: column; gap: 26px; }
  .tourism-gallery-card { width: 100%; }
  .tourism-gallery-card > .tourism-gallery-photo,
  .tourism-gallery-card:first-child > .tourism-gallery-photo { aspect-ratio: 4/3; }
  .tourism-gallery-card:nth-child(2) > .tourism-gallery-photo { aspect-ratio: 2.66; }
  .tourism-gallery-card:nth-child(3) > .tourism-gallery-photo { aspect-ratio: 3.6; }
  .tourism-gallery-grid:not(:has(> :nth-child(3))) .tourism-gallery-photo { aspect-ratio: 4/3; }
  .tourism-gallery-caption { padding-top: 12px; }
  .tourism-gallery-caption h3 { font-size: 24px; }
  .tourism-gallery-caption p { font-size: 14px; }
  .tourism-gallery-details { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .tourism-gallery-note { margin-top: 28px; font-size: 11px; }
  .tourism-lightbox-top { height: 66px; padding: env(safe-area-inset-top) 16px 0; }
  .tourism-lightbox-top h2 { font-size: 17px; }
  .tourism-lightbox-stage { height: calc(100% - 230px); padding: 0 16px; }
  .tourism-lightbox-prev, .tourism-lightbox-next { top: auto; bottom: -65px; transform: none; }
  .tourism-lightbox-prev { left: calc(50% - 80px); }
  .tourism-lightbox-next { right: calc(50% - 80px); }
  .tourism-lightbox-caption { margin-top: 80px; font-size: 13px; }
}
@media(prefers-reduced-motion: reduce) { .tourism-gallery-photo img { transition: none; } }
