html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #f3f1ed;
  overflow: hidden;
}

html[data-brochure-mode="single-vertical"],
html[data-brochure-mode="single-vertical"] body {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.brochure {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 420px;
  overflow: hidden;
}

.brochure__stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brochure__spread {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform-origin: 0 0;
}

.brochure__spread-shell {
  position: relative;
  flex: 0 0 auto;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.22));
}

.brochure__page {
  position: relative;
  flex: 0 0 auto;
  background: white;
  overflow: hidden;
}

.brochure__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  overflow: hidden;
}

.brochure__zone {
  position: absolute;
  z-index: 5;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.brochure__zone--prev {
  left: auto;
}

.brochure__zone--next {
  right: auto;
}

.brochure__zone:disabled {
  display: none;
}

.brochure__zone:focus {
  outline: none;
}

.brochure__zone::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 2px solid rgba(31, 35, 40, 0.72);
  border-right: 2px solid rgba(31, 35, 40, 0.72);
}

.brochure__zone--prev::before {
  transform: translate(-35%, -50%) rotate(225deg);
}

.brochure__zone--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.brochure__zone:hover {
  background: rgba(255, 255, 255, 0.82);
  opacity: 1;
  transform: scale(1.04);
}

.brochure[data-mode="single-vertical"] {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
}

.brochure[data-mode="single-vertical"] .brochure__stage {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 0;
  overflow: visible;
}

.brochure[data-mode="single-vertical"] .brochure__spread-shell {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.brochure[data-mode="single-vertical"] .brochure__zone {
  display: none;
}
