/* Rossi Flipbook — page-flip catalog viewer, atelier edition
   Paired with assets/rossi-flipbook.js and sections/rossi-flipbook.liquid.
   Colour tokens are written inline by the section from its settings; type
   comes from the theme's own --font-heading / --font-body custom properties. */

.rfb {
  --rfb-bg: #f6f3ee;
  --rfb-ink: #2a2118;
  --rfb-muted: #857b6e;
  --rfb-accent: #84784f;
  --rfb-surface: #ffffff;
  --rfb-line: rgba(42, 33, 24, 0.14);
  --rfb-radius: 2px;
  --rfb-bar-h: 56px;
  --rfb-display: var(--font-heading, Georgia, serif);
  --rfb-body: var(--font-body, Helvetica, Arial, sans-serif);
  /* page-edge stack depth, driven by JS as the reader moves through the book */
  --rfb-depth-l: 0px;
  --rfb-depth-r: 10px;

  position: relative;
  background: var(--rfb-bg);
  color: var(--rfb-ink);
  font-family: var(--rfb-body);
  isolation: isolate;
}

.rfb *,
.rfb *::before,
.rfb *::after { box-sizing: border-box; }

.rfb:focus { outline: none; }
.rfb:focus-visible { outline: 2px solid var(--rfb-accent); outline-offset: -2px; }

/* ------------------------------------------------------------------ heading */

.rfb__head {
  position: relative;
  text-align: center;
  padding: 48px 20px 24px;
}

.rfb__eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rfb-accent);
}

.rfb__title {
  margin: 0;
  font-family: var(--rfb-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.rfb__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--rfb-accent);
}

.rfb__subtitle {
  margin: 14px auto 0;
  max-width: 56ch;
  color: var(--rfb-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------- stage */

.rfb__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--rfb-height, 78vh);
  min-height: 320px;
  /* extra bottom padding keeps the book clear of the floating toolbar pill */
  padding: 20px 20px 56px;
  overflow: hidden;
  perspective: 2400px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  /* soft window light falling on the table */
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    radial-gradient(140% 120% at 50% 110%, rgba(42, 33, 24, 0.10), rgba(42, 33, 24, 0) 60%);
}

/* paper grain, kept faint enough to read as texture rather than noise */
.rfb__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Server-rendered WebP cover: visible immediately while pdf.js and the first
   byte ranges load behind it, then cross-faded to the real canvas. */
.rfb__preview {
  position: absolute;
  inset: 20px 20px 56px;
  z-index: 2;
  width: calc(100% - 40px);
  height: calc(100% - 76px);
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(42, 33, 24, 0.18));
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rfb__preview-status {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  color: var(--rfb-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rfb--ready .rfb__preview {
  opacity: 0;
  visibility: hidden;
}

.rfb__book {
  position: relative;
  display: flex;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  /* No filter here: a filter on this element would flatten the 3D transform
     of the turning leaf inside it (spec: filters force flattening), killing
     the page-turn perspective. The resting shadow lives on the sides instead. */
}

.rfb__side:not(.is-empty) {
  box-shadow:
    0 2px 6px rgba(42, 33, 24, 0.14),
    0 24px 48px rgba(42, 33, 24, 0.22);
}

/* stacked page edges — the closed thickness of the book on either side.
   Depth vars shift with reading progress: thick on the right at the cover,
   thick on the left by the back page. */
.rfb__book::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  right: 100%;
  width: var(--rfb-depth-l);
  max-width: 14px;
  background: repeating-linear-gradient(
    90deg,
    #efe9df 0px, #fdfbf7 1px, #e7e0d4 2px
  );
  border-radius: 1px 0 0 1px;
  transition: width 0.6s ease;
}

.rfb__stack-r {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 100%;
  width: var(--rfb-depth-r);
  max-width: 14px;
  background: repeating-linear-gradient(
    90deg,
    #e7e0d4 0px, #fdfbf7 1px, #efe9df 2px
  );
  border-radius: 0 1px 1px 0;
  transition: width 0.6s ease;
  pointer-events: none;
}

.rfb--single .rfb__book::before,
.rfb--single .rfb__stack-r { display: none; }

/* the spine */
.rfb__book::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 26px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.09) 38%,
    rgba(0, 0, 0, 0.16) 50%,
    rgba(0, 0, 0, 0.09) 62%,
    rgba(0, 0, 0, 0) 100%
  );
}

.rfb--single .rfb__book::after { display: none; }

.rfb__side {
  position: relative;
  flex: 1 1 50%;
  background: var(--rfb-surface);
  overflow: hidden;
}

/* Shadow the turning leaf casts on the pages beneath it — fades in for the
   duration of the turn, strongest at the spine where the leaf hinges. */
.rfb__side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.rfb__side--left::before {
  background: linear-gradient(270deg, rgba(20, 14, 8, 0.2), rgba(20, 14, 8, 0) 42%);
}

.rfb__side--right::before {
  background: linear-gradient(90deg, rgba(20, 14, 8, 0.2), rgba(20, 14, 8, 0) 42%);
}

.rfb.is-flipping .rfb__side::before { opacity: 1; }

.rfb__side.is-empty { background: transparent; }
.rfb--single .rfb__side--right { display: none; }

.rfb__canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* corner-peel invitation — a lifted shadow wedge that breathes on the open
   corner until the reader turns a page for the first time */
.rfb__side--right::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    315deg,
    rgba(42, 33, 24, 0.16) 0%,
    rgba(42, 33, 24, 0.05) 34%,
    rgba(42, 33, 24, 0) 52%
  );
}

.rfb--hint .rfb__side--right:not(.is-empty)::after {
  animation: rfb-peel 2.6s ease-in-out 1.2s infinite;
}

@keyframes rfb-peel {
  0%, 100% { opacity: 0; transform: none; }
  45% { opacity: 1; transform: translate(-2px, -2px); }
}

/* --------------------------------------------------------- the turning leaf */

.rfb__flip {
  position: absolute;
  top: 0;
  left: 50%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transform: rotateY(0deg);
  /* quick lift off the page, feathered landing — reads as a flicked sheet */
  transition: transform 640ms cubic-bezier(0.35, 0.05, 0.22, 1);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.rfb__flip.is-active { opacity: 1; }

/* turning backwards: the leaf sits on the left half and hinges on its right edge */
.rfb__flip--reverse {
  left: auto;
  right: 50%;
  transform-origin: right center;
}

.rfb__flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--rfb-surface);
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.14);
}

.rfb__flip-front { transform: rotateY(0deg); }
.rfb__flip-back { transform: rotateY(180deg); }

/* Light on the turning sheet. The face heading edge-on darkens; the face
   landing flat brightens back up. Peaks at the vertical, like real paper. */
.rfb__flip-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.rfb__flip-front::after {
  background: linear-gradient(90deg, rgba(20, 14, 8, 0.24), rgba(20, 14, 8, 0.03) 55%, rgba(255, 255, 255, 0.1));
}

.rfb__flip-back::after {
  background: linear-gradient(270deg, rgba(20, 14, 8, 0.24), rgba(20, 14, 8, 0.03) 55%, rgba(255, 255, 255, 0.1));
}

.rfb__flip.is-active .rfb__flip-front::after {
  animation: rfb-shade-away 640ms cubic-bezier(0.35, 0.05, 0.22, 1) both;
}

.rfb__flip.is-active .rfb__flip-back::after {
  animation: rfb-shade-land 640ms cubic-bezier(0.35, 0.05, 0.22, 1) both;
}

.rfb__flip.is-active .rfb__flip-face {
  animation: rfb-leaf-lift 640ms cubic-bezier(0.35, 0.05, 0.22, 1) both;
}

@keyframes rfb-shade-away {
  0% { opacity: 0; }
  55% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes rfb-shade-land {
  0% { opacity: 1; }
  45% { opacity: 1; }
  100% { opacity: 0; }
}

/* the sheet lifts off the book mid-turn, its shadow deepening then settling */
@keyframes rfb-leaf-lift {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 0, 0, 0.08); }
  50% { box-shadow: 0 26px 48px rgba(0, 0, 0, 0.3); }
}

.rfb--single .rfb__flip { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rfb__flip { transition: none; }
  .rfb__book { transition: none; }
  .rfb--hint .rfb__side--right:not(.is-empty)::after { animation: none; }
  .rfb__flip.is-active .rfb__flip-face,
  .rfb__flip.is-active .rfb__flip-face::after { animation: none; }
  .rfb__side::before { transition: none; }
}

/* --------------------------------------------------------------- edge arrows */

.rfb__edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 33, 24, 0.1);
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.85);
  color: var(--rfb-ink);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(42, 33, 24, 0.12);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rfb__edge--prev { left: 14px; }
.rfb__edge--next { right: 14px; }
.rfb__edge:hover { background: #fff; border-color: var(--rfb-accent); }
.rfb__edge:disabled { opacity: 0; pointer-events: none; }

.rfb__edge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------- status text */

.rfb__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  z-index: 3;
  color: var(--rfb-muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.rfb__status:empty { display: none; }

/* skeleton book shown while the PDF streams in */
.rfb--loading .rfb__status::before {
  content: "";
  width: min(240px, 40vw);
  aspect-ratio: 1.5;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(42,33,24,0.05) 49.6%, rgba(42,33,24,0.14) 50%, rgba(42,33,24,0.05) 50.4%),
    linear-gradient(110deg, #fdfbf7 30%, #f1ece3 46%, #fdfbf7 62%);
  background-size: 100% 100%, 220% 100%;
  box-shadow: 0 14px 34px rgba(42, 33, 24, 0.14);
  animation: rfb-shimmer 1.6s ease infinite;
}

.rfb--preview-ready .rfb__status::before { content: none; }
.rfb--preview-ready .rfb__status {
  align-content: end;
  padding-bottom: 22px;
  font-size: 11px;
}

@keyframes rfb-shimmer {
  from { background-position: 0 0, 130% 0; }
  to { background-position: 0 0, -30% 0; }
}

/* load progress — a hairline filling beneath the skeleton */
.rfb__loadbar {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: min(240px, 40vw);
  height: 1px;
  background: rgba(42, 33, 24, 0.12);
  z-index: 3;
  overflow: hidden;
}

.rfb__loadbar-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--rfb-accent);
  transition: width 0.3s ease;
}

.rfb:not(.rfb--loading) .rfb__loadbar { display: none; }

.rfb--loading .rfb__book { opacity: 0; }
.rfb--error .rfb__stage { min-height: 220px; }
.rfb--error .rfb__status::before { content: none; }

/* ---------------------------------------------------------- reading progress */

.rfb__progress {
  position: relative;
  height: 2px;
  background: var(--rfb-line);
}

.rfb__progress-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 0%;
  background: var(--rfb-accent);
  transition: width 0.45s ease;
}

/* ------------------------------------------------------------------- toolbar */

.rfb__bar {
  position: sticky;
  bottom: 12px;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: calc(100% - 24px);
  min-height: var(--rfb-bar-h);
  margin: -28px auto 0;
  padding: 8px 14px;
  background: rgba(253, 251, 247, 0.92);
  border: 1px solid rgba(42, 33, 24, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(42, 33, 24, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.rfb__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rfb-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.rfb__btn:hover:not(:disabled) { background: rgba(132, 120, 79, 0.14); color: var(--rfb-accent); }
.rfb__btn:disabled { opacity: 0.28; cursor: default; }
.rfb__btn[hidden] { display: none; }
.rfb__btn.is-on { color: var(--rfb-accent); }

.rfb__btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rfb__btn--sound svg { fill: currentColor; stroke: none; }

.rfb__sep {
  width: 1px;
  height: 20px;
  margin: 0 8px;
  background: var(--rfb-line);
}

.rfb__pagebox {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 8px;
  font-family: var(--rfb-display);
  font-size: 18px;
  color: var(--rfb-muted);
  white-space: nowrap;
}

.rfb__pageinput {
  width: 62px;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid var(--rfb-line);
  border-radius: 0;
  background: transparent;
  color: var(--rfb-ink);
  font: inherit;
  text-align: center;
  transition: border-color 0.15s ease;
}

.rfb__pageinput:focus {
  outline: none;
  border-bottom-color: var(--rfb-accent);
}

/* --------------------------------------------------------------------- toast */

.rfb__toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--rfb-bar-h) + 26px);
  transform: translate(-50%, 6px);
  z-index: 9;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--rfb-ink);
  color: #fdfbf7;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rfb__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* -------------------------------------------------------------------- drawer */

.rfb__drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 8;
  width: min(360px, 88%);
  display: flex;
  flex-direction: column;
  background: #fdfbf7;
  border-right: 1px solid var(--rfb-line);
  box-shadow: 12px 0 32px rgba(42, 33, 24, 0.12);
  transform: translateX(-101%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.rfb--drawer-open .rfb__drawer {
  transform: translateX(0);
  visibility: visible;
}

.rfb__drawer-title {
  padding: 20px 48px 16px 22px;
  font-family: var(--rfb-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--rfb-ink);
  border-bottom: 1px solid var(--rfb-line);
}

.rfb__drawer-close {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--rfb-ink);
  cursor: pointer;
  border-radius: 50%;
}

.rfb__drawer-close:hover { background: rgba(132, 120, 79, 0.14); color: var(--rfb-accent); }

.rfb__drawer-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.rfb__drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 24px;
}

/* thumbnails */

.rfb__thumbgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.rfb__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rfb-line);
  border-radius: var(--rfb-radius);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rfb__thumb:hover {
  border-color: var(--rfb-accent);
  transform: translateY(-2px);
}

.rfb__thumb.is-current {
  border-color: var(--rfb-accent);
  box-shadow: 0 0 0 1px var(--rfb-accent);
}

.rfb__thumb.is-current .rfb__thumb-num {
  background: var(--rfb-accent);
  color: #fdfbf7;
}

.rfb__thumb-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.rfb__thumb-num {
  position: absolute;
  bottom: 3px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(253, 251, 247, 0.9);
  font-size: 10px;
  color: var(--rfb-muted);
  pointer-events: none;
}

/* outline */

.rfb__outline,
.rfb__outline-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rfb__outline-sub { padding-left: 14px; }

.rfb__outline-link {
  display: block;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: var(--rfb-radius);
  background: transparent;
  color: var(--rfb-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}

.rfb__outline-link:hover {
  background: rgba(132, 120, 79, 0.1);
  color: var(--rfb-accent);
}

.rfb__outline-item--d0 > .rfb__outline-link {
  font-family: var(--rfb-display);
  font-size: 15px;
}

/* search */

.rfb__searchform { margin-bottom: 12px; }

.rfb__searchinput {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--rfb-line);
  border-radius: 0;
  background: transparent;
  color: var(--rfb-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease;
}

.rfb__searchinput:focus {
  outline: none;
  border-bottom-color: var(--rfb-accent);
}

.rfb__results-note {
  margin: 10px 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rfb-muted);
}

.rfb__result {
  display: block;
  width: 100%;
  padding: 9px 8px;
  margin-bottom: 2px;
  border: 0;
  border-radius: var(--rfb-radius);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rfb__result:hover { background: rgba(132, 120, 79, 0.1); }

.rfb__result-page {
  display: block;
  font-family: var(--rfb-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rfb-accent);
}

.rfb__result-snippet {
  display: -webkit-box;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rfb-muted);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ------------------------------------------------------------------- states */

.rfb.is-zoomed .rfb__stage { touch-action: none; }
.rfb.is-zoomed .rfb__book { cursor: grab; }
.rfb.is-zoomed .rfb__book:active { cursor: grabbing; }
.rfb.is-flipping .rfb__edge { opacity: 0.35; }

.rfb.is-fullscreen {
  background: var(--rfb-bg);
  display: flex;
  flex-direction: column;
}

.rfb.is-fullscreen .rfb__head { display: none; }
.rfb.is-fullscreen .rfb__stage { flex: 1; height: auto; }
.rfb.is-fullscreen .rfb__progress { order: 2; }
.rfb.is-fullscreen .rfb__bar { order: 3; }

/* ------------------------------------------------------------------- mobile */

@media (max-width: 767px) {
  .rfb__stage {
    height: var(--rfb-height-mobile, 62vh);
    padding: 8px 8px 44px;
  }

  .rfb__head { padding: 32px 16px 16px; }

  .rfb__edge {
    width: 40px;
    height: 40px;
  }

  .rfb__edge--prev { left: 6px; }
  .rfb__edge--next { right: 6px; }

  .rfb__bar {
    gap: 0;
    bottom: 8px;
    margin-top: -20px;
    padding: 6px 10px;
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  /* Secondary controls are hidden rather than wrapped onto a second row that
     would collide with sticky site chrome (the failure mode on abhomeinc.com).
     The bar must stay exactly one row at 320px. */
  .rfb__btn--first,
  .rfb__btn--last,
  .rfb__btn--full,
  .rfb__btn--zoomout,
  .rfb__btn--sound,
  .rfb__btn--share,
  .rfb__btn--download,
  .rfb__sep { display: none; }

  .rfb__btn { width: 38px; height: 38px; }

  .rfb__drawer { width: 100%; }
}
