/* Full printed pages, with their original margins and aspect ratios. */
body.preview-v55.website-v42 #app #main .book-world-v41[data-book-world] .bw-gallery-v41:has(.leseprobe) {
  width: 100% !important;
  max-width: 40rem !important;
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(5px, 1vw, 12px) !important;
}
body.website-v42 #app #main .book-world-v41[data-book-world] .book-gallery-v40.leseprobe {
  width: 100%;
  max-width: none;
}
body.website-v42 #app #main .book-world-v41[data-book-world] .book-gallery-v40.leseprobe .book-gallery-main-v40 {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: .65rem;
  box-sizing: border-box;
  width: 100%;
  height: clamp(16rem, 64svh, 35rem);
  min-height: 0;
  padding: clamp(8px, 1.5vw, 18px) clamp(5px, 1vw, 12px) .6rem !important;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
body.website-v42 #app #main .leseprobe .book-gallery-main-v40::before,
body.website-v42 #app #main .leseprobe .book-gallery-main-v40::after {
  content: none;
}
body.website-v42 #app #main .book-world-v41[data-book-world] .book-gallery-v40.leseprobe .book-gallery-main-v40 > img {
  display: block;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 0;
  box-shadow: 0 1px 1px #0005, 0 6px 15px #0003;
}
body.website-v42 #app #main .leseprobe .book-gallery-main-v40 > .leseprobe-zoom {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--bw-muted);
  font-size: .73rem;
}
body.website-v42 #app #main .leseprobe figcaption {
  min-height: 1.4em;
  margin: .25rem .5rem .5rem;
  color: var(--bw-text);
  font: 700 clamp(.85rem, 1.5vw, 1rem)/1.4 Montserrat, sans-serif;
  text-wrap: balance;
}
body.website-v42 #app #main .leseprobe .book-gallery-thumbs-v40 {
  display: grid;
  grid-template-columns: repeat(var(--ansichten), minmax(0, 1fr));
  gap: clamp(2px, 1vw, 8px);
  max-width: 36rem;
  margin: 0 auto;
  padding: 3px 2px;
  overflow: visible;
}
body.website-v42 #app #main .leseprobe .book-gallery-thumbs-v40 button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  height: clamp(48px, 8vw, 76px);
  margin: 0;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}
body.website-v42 #app #main .leseprobe .book-gallery-thumbs-v40 button[aria-pressed="true"] {
  border-color: var(--bw-accent);
  box-shadow: inset 0 -2px var(--bw-accent);
  background: color-mix(in srgb, var(--bw-surface) 87%, var(--bw-accent));
}
body.website-v42 #app #main .leseprobe .book-gallery-thumbs-v40 img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
}
body.website-v42 #app #main .leseprobe .book-gallery-hint-v40 {
  margin: .45rem auto 0;
}
@media (max-width: 760px) {
  body.website-v42 #app #main .book-world-v41[data-book-world] .book-gallery-v40.leseprobe .book-gallery-main-v40 {
    height: clamp(14rem, min(120vw, 62svh), 30rem);
  }
}
/* The whole page fits on opening. Detail mode exposes the original image at
   its native size; the reader can pan across both pages of a printed spread. */
body.book-world-view-v41 dialog#dialog.book-preview-lightbox-v40[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: stretch;
  box-sizing: border-box;
  width: min(97vw, 96rem);
  height: min(96dvh, 76rem);
  max-width: none;
  max-height: 100dvh;
  margin: auto;
  padding: clamp(8px, 1.5vw, 18px);
  overflow: hidden;
}
.leseprobe-kopf {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}
body.book-world-view-v41 .leseprobe-kopf h2 {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: clamp(.85rem, 2.5vw, 1.15rem);
  text-wrap: balance;
}
body.book-world-view-v41 .leseprobe-kopf button {
  position: static;
  float: none;
  box-sizing: border-box;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--bw-line, #bca2d2);
  border-radius: 4px;
  background: var(--bw-surface, #38204d);
  color: var(--bw-text, #fff);
  font: 700 .76rem/1.25 Montserrat, sans-serif;
  cursor: pointer;
}
.leseprobe-flaeche {
  display: grid;
  place-items: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}
.leseprobe-flaeche > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.leseprobe-flaeche.leseprobe-detail {
  display: block;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.leseprobe-detail > img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: auto;
  pointer-events: none;
}
body.book-world-view-v41 .book-preview-lightbox-nav-v40 {
  min-width: 0;
  margin: 0;
}
body.book-world-view-v41 .book-preview-lightbox-nav-v40 p {
  flex: 0 1 auto;
  min-width: min(12rem, 45%);
  font-size: clamp(.8rem, 2vw, 1rem);
}
@media (max-width: 520px) {
  body.book-world-view-v41 dialog#dialog.book-preview-lightbox-v40[open] {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom));
  }
  body.book-world-view-v41 .leseprobe-kopf .book-preview-close-v40 {
    width: 44px;
    justify-content: center;
  }
  .leseprobe-kopf .book-preview-close-v40 span {display: none;}
}
/* Card interiors keep their flat paper edges, including wide originals. */
#app #main .product-card[data-card-swipe-v74] .card-cover-link[data-gallery-view="page"] .book-cover::after,
#app #main .product-card[data-card-swipe-v74] .card-cover-link[data-gallery-view="page"] .book-cover::before {
  content: none;
}
#app #main .product-card[data-card-swipe-v74] .card-cover-link[data-gallery-view] .book-cover img {
  object-fit: contain !important;
  object-position: center;
}
