/* Riviera catalogue: original photography and section geometry are retained. */
body.riviera-design {
  background: radial-gradient(ellipse at 100% 9%, #dce9df 0, transparent 35%),
    radial-gradient(ellipse at 0 30%, #efdbc0 0, transparent 40%), #f8f1e5;
}
body.riviera-design .hero.welcome {
  background: linear-gradient(124deg, transparent 55%, #fffaf080 67%, transparent 79%),
    radial-gradient(ellipse at 100% 8%, #d7e8dfb3, transparent 64%),
    radial-gradient(ellipse at 0 100%, #eed6bb91, transparent 64%), #f8f1e5;
}
body.riviera-design #books {
  background: radial-gradient(ellipse at 99% 10%, #d8e7dc9e, transparent 33%),
    radial-gradient(ellipse at 0 50%, #efd7b77d, transparent 45%),
    linear-gradient(155deg, #faf3e7, #f4f0e4 55%, #f6ead9);
}
.riviera-design #books .book {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  overflow: visible;
}
.riviera-design #books .book:hover { box-shadow: none; }
.riviera-design #books .book .cover {
  --stone: #e9d9c1; --stone-light: #f8ecda;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1.04; padding: 28px 21% 34px;
  position: relative; isolation: isolate; overflow: visible;
  background: transparent; border-radius: 0; perspective: 1000px;
}
.riviera-design #books .book:nth-child(3n+2) .cover { --stone: #cbded4; --stone-light: #eaf0e3; }
.riviera-design #books .book:nth-child(3n) .cover { --stone: #e5cdbb; --stone-light: #f5e9d9; }
.riviera-design #books .cover::before {
  content: ''; position: absolute; z-index: -2; inset: 12px 5px 0;
  border-radius: 48% 48% 3px 3px / 43% 43% 3px 3px;
  background: linear-gradient(125deg, #fff8e570, transparent 40%, #9eaa8c10 65%),
    linear-gradient(135deg, var(--stone-light), var(--stone));
  box-shadow: inset 0 0 45px #fff9e444;
}
.riviera-design #books .cover::after {
  content: ''; position: absolute; z-index: -1;
  left: 20%; right: 14%; bottom: 18px; height: 18px;
  border-radius: 50%; background: #5147372e; filter: blur(9px);
  transform: rotate(-3deg); transition: transform .55s, opacity .55s;
}
.riviera-design #books .art-book {
  --cover-x: -2deg; --cover-z: -1.4deg;
  display: block; position: relative;
  width: auto; height: 100%; aspect-ratio: 650 / 980; max-width: 100%;
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 1deg))
    rotateY(var(--ry, var(--cover-x))) rotateZ(var(--cover-z));
  transform-origin: 50% 75%;
  transition: transform .6s cubic-bezier(.2,.65,.2,1), filter .6s;
  filter: drop-shadow(10px 15px 10px #4d403829);
}
.riviera-design #books .book:nth-child(even) .art-book { --cover-x: 2deg; --cover-z: 1.2deg; }
.riviera-design #books .cover .art-book img {
  width: 100%; height: 100%; object-fit: contain; margin: 0;
  transform: none; box-shadow: 1px 1px 0 #ffffff80, -3px 0 0 #54433c99;
  border-radius: 1px 3px 3px 1px;
}
.riviera-design #books .art-book::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0002, #ffffff22 2%, transparent 6%, transparent 96%, #fff3);
  border-radius: 1px 3px 3px 1px;
}
.riviera-design #books .book-body { padding: 24px 5px 5px; }
.riviera-design #books .book .book-meta { margin-bottom: 14px; }
.riviera-design #books .series-volume {
  padding: 0 0 3px; background: none; border: 0;
  border-bottom: 1px solid #a88763; border-radius: 0;
  text-transform: uppercase; font-size: 10px; letter-spacing: .9px;
}
.riviera-design #books .book :is(h3,h4) { letter-spacing: -.55px; }
.riviera-design #books .book-extras { border-top-color: #b8b49a; }
.riviera-design #books .cover-link {
  z-index: 3; left: auto; right: 14px; bottom: 12px;
  background: #fffaf1; color: #274c49; padding: 7px 11px;
  border: 1px solid #b5bfab; border-radius: 2px;
  box-shadow: 0 3px 10px #384e2d0c;
  opacity: 0; transform: translateY(4px); pointer-events: none;
}
.riviera-design #books .cover:is(:hover,:focus-visible) .cover-link {
  opacity: 1; transform: none;
}
.riviera-design #books .cover:focus-visible { outline-offset: 5px; border-radius: 3px; }
@media (hover:hover) and (pointer:fine) {
  .riviera-design #books .cover:hover .art-book { --lift: -6px; }
  .riviera-design #books .cover:hover::after { opacity: .7; transform: translate(3px,4px) scale(.9); }
}
.riviera-design #books .cover:focus-visible .art-book { --lift: -5px; --ry: -3deg; }
@keyframes riviera-cover-arrival {
  from { opacity: .35; transform: translateY(15px) rotateY(-7deg) rotateZ(-2deg); }
  to { opacity: 1; transform: translateY(0) rotateY(var(--cover-x)) rotateZ(var(--cover-z)); }
}
.riviera-design #books .cover.is-arriving .art-book {
  animation: riviera-cover-arrival .85s cubic-bezier(.2,.65,.2,1) both;
  animation-delay: var(--arrival-delay, 0ms);
}
@media(prefers-reduced-motion:reduce) {
  .riviera-design #books .art-book {
    animation: none !important; transition: none !important; transform: none !important;
  }
  .riviera-design #books .cover::after,
  .riviera-design #books .cover-link { transition: none; transform: none; }
}
