:root {
  --gallery-paper: #eee8db;
  --gallery-ink: #253333;
}
.tour {
  position: relative;
  isolation: isolate;
  overflow-anchor: none;
  background: var(--gallery-paper);
  color: var(--gallery-ink);
}
.tour:focus { outline: 0 }
.tour [hidden], .tour-lightbox [hidden] { display: none !important }
.tour-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tour-guide {
  position: relative;
  padding: clamp(85px, 10svh, 145px) var(--gutter) clamp(20px, 2.1vw, 42px);
  color: var(--ivory);
  background: var(--island-sea);
}
.tour-heading, .tour-layout, .tour-footer { width: 100%; max-width: 1950px; margin-inline: auto }
.tour-heading { position: relative }
.tour-heading h2 {
  margin: 0 0 clamp(22px, 2.4vw, 46px) -.042em;
  font: 500 clamp(5.2rem, 12.2vw, 15rem)/.96 var(--serif);
  letter-spacing: -.062em;
}
.tour-water, .tour-water img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.tour-water {
  opacity: .30;
  -webkit-mask-image: linear-gradient(transparent, black 48%, transparent);
  mask-image: linear-gradient(transparent, black 48%, transparent);
}
.tour-water img { object-fit: cover; object-position: 50% 68% }
.tour-shore {
  position: absolute; pointer-events: none; inset: calc(100% - 1px) 0 auto;
  height: clamp(145px, 17vw, 290px);
  background: linear-gradient(to bottom, var(--island-sea), #21434e 21%, #688485 47%, #b5beb0 72%, #e3dece 89%, var(--gallery-paper));
}
.tour-areas {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0 clamp(17px, 2.8vw, 63px);
}
.tour-areas a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; color: #d2dcdb;
  font: 400 clamp(.94rem, 1.13vw, 1.28rem)/1.25 Aktiv, sans-serif; white-space: nowrap;
}
.tour-areas a::after {
  content: ""; position: absolute; inset: auto 0 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
}
.tour-areas a[aria-selected="true"], .tour-areas a:hover { color: var(--ivory) }
.tour-areas a[aria-selected="true"]::after, .tour-areas a:hover::after { transform: scaleX(1) }
.tour-areas a:focus-visible { outline-offset: 4px }
.tour-layout {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  padding-bottom: clamp(32px, 4vw, 78px);
}
.tour-area-name {
  margin: 0 0 18px; font: 500 clamp(2rem, 3.8vw, 4.5rem)/1.08 var(--serif); letter-spacing: -.045em;
}
.tour-area { scroll-margin-top: 100px }
.tour-area + .tour-area { margin-top: 62px }
.tour:not(.is-ready) .tour-area:first-child > h3 { color: var(--ivory) }
.tour-board, .tour-roll {
  display: grid; align-items: start;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  column-gap: clamp(8px, .85vw, 17px);
  row-gap: clamp(38px, 5.2vw, 106px);
}
.tour-slide { min-width: 0; margin: 0; scroll-margin-top: max(88px, 11svh) }
.tour-slide:nth-child(6n + 1) { grid-column: span 12 }
.tour-slide:nth-child(6n + 2) { grid-column: span 7; margin-top: clamp(34px, 5.4vw, 108px) }
.tour-slide:nth-child(6n + 3) { grid-column: span 5; margin-top: clamp(12px, 1.65vw, 35px) }
.tour-slide:nth-child(6n + 4) { grid-column: span 7; margin-top: clamp(18px, 3vw, 60px) }
.tour-slide:nth-child(6n + 5) { grid-column: span 10 }
.tour-slide:nth-child(6n) { grid-column: span 7; margin-top: clamp(32px, 5vw, 94px) }
.tour-original {
  display: block; position: relative; width: 100%;
  cursor: zoom-in; background: #d2d1c4 center / cover no-repeat;
}
.tour-original img { display: block; width: 100%; height: auto; aspect-ratio: var(--photo-ratio) }
.tour-original:focus-visible { outline: 2px solid var(--gallery-ink); outline-offset: 4px; box-shadow: 0 0 0 3px var(--gallery-paper) }
.tour-slide figcaption { padding-top: clamp(9px, .85vw, 16px) }
.tour-caption { display: block; margin: 0; font: 500 clamp(1.06rem, 1.5vw, 1.8rem)/1.18 var(--serif); letter-spacing: -.033em }
.tour-slide figcaption p { margin: 7px 0 0; font-size: .92rem; line-height: 1.45 }
.tour-board figcaption p, .tour[data-space="all"] .tour-board .tour-pair { display: none }
.tour-pair, .tour-room-related {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: .875rem;
}
.tour-more {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 48px; margin: clamp(40px, 5vw, 95px) auto 0; padding: 0 1px;
  border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--gallery-ink);
  font: 400 1rem/1.4 Aktiv,sans-serif; cursor: pointer;
}
.tour-more::after { content: "+" / ""; font-size: 1.25em }
.tour .tour-to-map {
  width: calc(100% - 2 * var(--gutter)); justify-content: space-between; gap: 18px;
}
.enhanced .mast.on-gallery-paper {
  --mast-ground: color-mix(in srgb, var(--island-sea), var(--gallery-paper) var(--paper-share, 0%));
  color: var(--ivory); padding-bottom: 0;
}
.enhanced .mast.on-gallery-paper::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 -14px;
  background: linear-gradient(to bottom, var(--mast-ground), color-mix(in srgb, var(--mast-ground) 90%, transparent) 48%, transparent);
}
.enhanced .mast.on-gallery-paper.gallery-ink { color: var(--gallery-ink) }
.mast.gallery-ink .signature img { filter: brightness(.21) sepia(.22) }
.mast.gallery-ink .stay:not([open]) > summary { background: rgb(238 232 219 / .42) }
.mast-spaces { display: none }
.mast.gallery-browsing .mast-spaces:not([hidden]) {
  display: inline-flex; align-items: center; position: relative; margin-left: auto;
}
.mast-spaces select {
  min-height: 44px; max-width: 145px; padding: 0 19px 0 2px; cursor: pointer;
  appearance: none; border: 0; border-radius: 0; background: transparent; color: inherit;
  font: 400 .94rem/1.3 Aktiv,sans-serif;
}
.mast-spaces::after {
  content: ""; position: absolute; right: 4px; width: 6px; height: 6px;
  border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); pointer-events: none;
}
.mast-spaces select option { color: var(--gallery-ink); background: var(--gallery-paper) }

.tour-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 30px; padding: clamp(20px,2.8vw,55px) 0 max(clamp(30px,4.4vw,90px),env(safe-area-inset-bottom)) }
.tour-footer a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9rem }
.tour-footer > div { display: flex; flex-wrap: wrap; gap: 0 clamp(14px,2.4vw,40px) }
.tour-footer .tour-book { font: 500 clamp(1.8rem,3.4vw,4.2rem)/1.1 var(--serif); letter-spacing: -.046em }
.tour-book span { font: 400 .56em/1 Aktiv,sans-serif }
.tour-footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em }

.tour-lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: #101f28; color: #f2ede1;
}
.tour-lightbox::backdrop { background: #101f28 }
.tour-room {
  display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100%; gap: clamp(8px,1.6svh,22px);
  padding: max(10px,env(safe-area-inset-top)) max(var(--gutter),env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));
}
.tour-room-head, .tour-room-foot, .tour-room-arrows { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.tour-room-brand { font: 500 clamp(1.55rem,2.25vw,2.6rem)/1 var(--serif); letter-spacing: -.05em }
.tour-picker { margin-left: auto; display: inline-flex; align-items: center; position: relative }
.tour-picker::after { content: ""; position: absolute; right: 13px; width: 7px; height: 7px; margin-top: -4px; border-bottom: 1px solid; border-right: 1px solid; transform: rotate(45deg); pointer-events: none }
.tour-picker select { color: inherit; background: #192e38; font: inherit; font-size: .9rem; padding: 0 32px 0 12px; border: 1px solid #84918e; border-radius: 0; height: 44px; cursor: pointer; appearance: none }
.tour-close, .tour-arrow { color: inherit; background: transparent; font: inherit; cursor: pointer }
.tour-close { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0; border: 0 }
.tour-close i { font: 400 1.5rem/1 Aktiv,sans-serif }
.tour-projection { min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom }
.tour-projection img { width: 100%; height: 100%; min-height: 0; object-fit: contain; grid-area: 1/1 }
.tour-room-info { min-width: 0 }
.tour-room-info h2 { font: 500 clamp(1.45rem,2.4vw,2.9rem)/1.1 var(--serif); letter-spacing: -.04em }
.tour-room-note { margin-top: 6px; font-size: .94rem; line-height: 1.4 }
.tour-room-arrows { gap: 7px; flex-shrink: 0 }
.tour-arrow { display: inline-grid; place-items: center; width: 45px; height: 45px; padding: 0; border: 1px solid #899991; border-radius: 50% }
.tour-arrow:disabled { opacity: .32; cursor: default }
.tour-arrow:not(:disabled):hover { border-color: currentColor }
@media (prefers-reduced-motion: no-preference) {
  .tour-areas a::after { transition: transform 180ms ease-out }
}
@media (max-width: 1000px) {
  .tour-areas { gap: 0 clamp(12px, 2.1vw, 25px) }
  .tour-heading h2 { font-size: clamp(5.1rem, 13.4vw, 9rem) }
}
@media (max-width: 760px), (max-width: 1024px) and (max-aspect-ratio: 9/10) {
  .tour-guide { padding-top: max(81px, 9svh); padding-bottom: 19px }
  .tour-heading h2 { margin-bottom: 15px; font-size: clamp(3.65rem, 16.4vw, 6.75rem); line-height: 1 }
  .tour-areas { gap: 0 clamp(12px, 4.1vw, 26px) }
  .tour-areas a { font-size: clamp(.875rem, 3.65vw, 1rem); min-height: 44px }
  .tour-shore { height: clamp(100px, 28vw, 178px) }
  .tour-board, .tour-roll { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(11px,3.2vw,22px); row-gap: clamp(22px, 5.8vw, 40px) }
  .tour-slide:nth-child(n) { grid-column: span 1; margin-top: 0 }
  .tour-slide:nth-child(3n + 1) { grid-column: 1 / -1 }
  .tour-slide:nth-child(3n) { margin-top: clamp(15px, 5vw, 40px) }
  .tour-caption { font-size: clamp(1.06rem, 4.3vw, 1.45rem) }
  .tour-pair { font-size: .875rem; min-height: 44px }
  .tour-footer { flex-wrap: wrap; gap: 3px 16px }
  .tour-room { padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); gap: 6px }
  .tour-room-head, .tour-room-foot { gap: 10px }
  .tour-room-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto }
  .tour-room-head .tour-picker { justify-self: end; min-width: 0; width: min(100%, 150px) }
  .tour-picker select { min-width: 0; width: 100%; padding-inline: 8px 24px }
  .tour-room-brand { font-size: clamp(1.18rem, 5vw, 1.8rem) }
  .tour-room-foot { align-items: start }
  .tour-picker select, .tour-close { font-size: .875rem }
  .tour-room-note { font-size: .875rem }
}
@media (max-width: 550px) {
  .mast.gallery-browsing { gap: 7px }
  .mast.gallery-browsing .signature { min-width: 44px }
  .mast.gallery-browsing .signature span { display: none }
  .mast-spaces select { max-width: min(37vw, 136px); font-size: .875rem }
}
@media (max-height: 510px) and (orientation: landscape) {
  .tour-guide { padding-top: 67px }
  .tour-heading h2 { margin-bottom: 6px; font-size: clamp(3.9rem,9vw,6.5rem) }
  .tour-room { gap: 2px; padding-block: max(3px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-bottom)) }
  .tour-room-info h2 { font-size: 1.3rem }
  .tour-room-note { display: none }
}
