:root {
  color-scheme: light;
  --background: #f7f7f3;
  --ink: #111111;
  --line: #cdcdc5;
  --blue: #2944ed;
  font-family: Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
}

.header, main {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.header h1, .studio {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.header h1 { margin-inline-start: auto; }
.language {
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 700;
  text-underline-offset: .2em;
}
.studio { color: inherit; text-decoration: none; }
.studio:hover { text-decoration: underline; }
main { padding-block: clamp(1rem, 3vw, 2rem); }

figure { margin: 0; }
.slide { position: relative; background: #efefe9; }
.slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  touch-action: pan-y pinch-zoom;
}

.slide-booking {
  position: absolute;
  left: 5.75%;
  top: 86.2%;
  width: 22%;
  height: 7.9%;
}
.slide-booking:hover { box-shadow: 0 0 0 2px var(--ink); }

figcaption {
  min-height: 1.5em;
  margin-top: .7rem;
  color: #44443d;
  font-size: 1rem;
  text-align: center;
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .45rem;
  margin-top: .8rem;
}

.tools { display: flex; gap: .4rem; }
#previous { justify-self: start; }
#next { justify-self: end; }

button, select, .booking a {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  color: var(--ink);
  background: white;
  font: 700 .9375rem/1.25 Arial, system-ui, sans-serif;
}

select {
  appearance: none;
  direction: ltr;
  text-align: center;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

button:not(:disabled) { cursor: pointer; }
button:hover:not(:disabled), select:hover { border-color: var(--ink); }
button:disabled { color: #696963; background: transparent; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.booking { margin-top: 1rem; text-align: center; }
.booking a {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .3em;
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  text-decoration: none;
}
.booking a:hover { background: #1d33be; }

dialog {
  width: min(100% - 1.5rem, 90rem);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--background);
  color: var(--ink);
}
dialog::backdrop { background: #101011d9; }
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .8rem;
  gap: 1rem;
}
.zoom-body {
  max-height: calc(90dvh - 4rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.zoom-body img {
  display: block;
  width: max(100%, 1050px);
  height: auto;
}

@media (max-width: 420px) {
  .header, main { width: calc(100% - 1.25rem); }
  .header { gap: .5rem; }
  button, select { padding-inline: .55rem; }
}

.guide-summary {
  max-width: 44rem;
  margin: 1.25rem auto 0;
  color: #44443d;
  font-size: 1rem;
  line-height: 1.6;
}
.guide-summary p { margin: 0 0 .45rem; }
.guide-summary a {
  display: inline-block;
  color: var(--blue);
  text-underline-offset: .16em;
}
