/*
 * Property detail page (single-listing.php) — ported from Property.dc.html.
 * Reuses design tokens from main.css (--rpr-*); a single breakpoint at
 * 1024px switches from desktop to the mobile layout (no separate tablet
 * treatment — tablet uses the exact same styling as mobile).
 */

.rpr-property {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 28px 80px;
}

/* ---------- Gallery ---------- */

.rpr-gallery-wrap {
  position: relative;
}

.rpr-gallery {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}

.rpr-gallery-hero,
.rpr-gallery-thumb {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rpr-border-faintest);
  cursor: pointer;
}

.rpr-gallery-hero {
  grid-row: span 2;
}

.rpr-gallery-hero img,
.rpr-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rpr-gallery-thumb-empty {
  background: var(--rpr-border-faintest);
  cursor: default;
}

.rpr-gallery-empty {
  height: 320px;
  border-radius: 14px;
  background: var(--rpr-border-faintest);
  color: var(--rpr-text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.rpr-gallery-more-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--rpr-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.rpr-gallery-more-btn:hover {
  background: var(--rpr-bg-hover);
}

.rpr-gallery-back-btn {
  display: none;
  position: absolute;
  left: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.rpr-gallery-back-btn:hover {
  background: var(--rpr-bg-hover);
}

/* ---------- Lightbox ---------- */

.rpr-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.rpr-lightbox.is-open {
  display: flex;
}

.rpr-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
}

.rpr-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Desktop ignores the grouping wrapper entirely — each nav button stays
   individually absolutely-positioned against the overlay, pinned to its own
   screen edge, exactly as if the wrapper weren't there. Mobile overrides
   this in the 1024px breakpoint to make it a real flex row instead. */
.rpr-lightbox-nav-row {
  display: contents;
}

.rpr-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}

.rpr-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.rpr-lightbox-prev {
  left: 20px;
}
.rpr-lightbox-next {
  right: 20px;
}

.rpr-lightbox-img {
  max-width: 82vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.rpr-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Layout: content + aside ---------- */

.rpr-prop-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 64px;
  margin-top: 38px;
  align-items: start;
}

.rpr-prop-content {
  min-width: 0;
}

/* ---------- Title / meta / description ---------- */

.rpr-prop-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--rpr-text);
}

.rpr-prop-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  gap: 14px;
  font-size: 15px;
  color: #4a4a4a;
}

.rpr-prop-stars {
  color: #f2b60d;
  font-weight: 600;
  letter-spacing: 1px;
}

.rpr-prop-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.rpr-prop-rating-link:hover {
  text-decoration: underline;
}

.rpr-prop-meta-sep {
  color: #c9ced8;
}

.rpr-prop-desc {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--rpr-text-body);
}

.rpr-prop-desc p {
  margin: 0 0 16px;
}

.rpr-prop-desc p:last-child {
  margin-bottom: 0;
}

.rpr-prop-h2 {
  margin: 38px 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--rpr-text);
}

#rpr-reviews-heading {
  scroll-margin-top: calc(var(--rpr-header-height) + 20px);
}

/* ---------- Amenities ---------- */

.rpr-amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.rpr-amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpr-amenity-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

/* The Lucide-icon amenities (rpr_listing_render_amenity_icon()) render as
   <svg class="lucide ... rpr-amenity-icon">, not <img> — lucide.createIcons()
   preserves the class it's swapped in from, so this still matches. */
svg.rpr-amenity-icon {
  stroke: var(--rpr-text-body);
}

.rpr-amenity-item span {
  font-size: 16px;
  color: var(--rpr-text-body);
}

.rpr-outline-btn {
  margin-top: 18px;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 10px;
  background: #fff;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--rpr-text);
  cursor: pointer;
}

.rpr-outline-btn:hover {
  background: var(--rpr-bg-hover-3);
}

/* ---------- Modals (amenities / house rules) ---------- */

.rpr-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 22, 42, 0.55);
  place-items: start center;
  overflow-y: auto;
  padding: 40px 24px;
}

.rpr-modal-overlay.is-open {
  display: grid;
}

.rpr-modal-panel {
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--rpr-shadow-modal);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.rpr-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rpr-border-faint);
  flex: 0 0 auto;
}

.rpr-modal-close {
  position: absolute;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rpr-modal-close:hover {
  background: var(--rpr-bg-hover-2);
}

.rpr-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-modal-body {
  padding: 22px 26px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rpr-amenity-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-text);
  margin-bottom: 14px;
}

.rpr-amenity-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 16px;
  column-gap: 20px;
}

.rpr-amenity-modal-grid .rpr-amenity-item {
  gap: 14px;
  min-width: 0;
}

.rpr-amenity-modal-grid .rpr-amenity-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rpr-house-rules-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpr-navy);
  margin-bottom: 8px;
}

.rpr-house-rules-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style-type: lower-alpha;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rpr-text-body);
}

.rpr-house-rules-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rpr-text-body);
  white-space: pre-line;
}

/* ---------- Map ---------- */

.rpr-map {
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--rpr-bg-selected);
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.rpr-map-caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--rpr-text-secondary);
}

/* ---------- Good to know ---------- */

.rpr-goodtoknow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.rpr-goodtoknow-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--rpr-text);
}

.rpr-goodtoknow-lines {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rpr-text-body);
}

/* ---------- Reviews ---------- */

.rpr-reviews-wrap {
  position: relative;
}

.rpr-reviews-scroll {
  --rpr-reviews-per-row: min(3, var(--rpr-reviews-count, 3));
  display: flex;
  width: 100%;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.rpr-reviews-scroll::-webkit-scrollbar {
  display: none;
}

.rpr-review-card {
  box-sizing: border-box;
  border: 1px solid var(--rpr-border);
  border-radius: 12px;
  padding: 16px;
  flex: 0 0
    calc(
      (100% - (var(--rpr-reviews-per-row) - 1) * 18px) /
        var(--rpr-reviews-per-row)
    );
  scroll-snap-align: start;
}

.rpr-review-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rpr-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rpr-bg-selected);
  display: grid;
  place-items: center;
  color: var(--rpr-blue);
  font-weight: 700;
  font-size: 14px;
  flex: 0 0 auto;
}

.rpr-review-who {
  flex: 1;
  min-width: 0;
}

.rpr-review-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--rpr-text);
}

.rpr-review-when {
  font-size: 13px;
  color: var(--rpr-text-tertiary);
}

.rpr-review-score {
  font-size: 14px;
  font-weight: 700;
  color: #f2b60d;
  white-space: nowrap;
}

.rpr-review-text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rpr-text-body);
}

.rpr-reviews-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rpr-border);
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 30, 60, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rpr-reviews-nav-btn:hover {
  background: var(--rpr-bg-hover);
}

.rpr-reviews-nav-btn[hidden] {
  display: none;
}

.rpr-reviews-prev {
  left: -18px;
}
.rpr-reviews-next {
  right: -18px;
}

/* ---------- Price card (desktop aside + mobile sheet share this) ---------- */

.rpr-prop-aside {
  position: sticky;
  top: 80px;
  border: 1px solid var(--rpr-border);
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(20, 30, 60, 0.09);
  padding: 22px;
}

.rpr-price-label {
  font-size: 13px;
  color: var(--rpr-text-secondary);
}

.rpr-price-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}

.rpr-price-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--rpr-blue);
}

.rpr-price-value-empty {
  font-size: 18px;
  color: var(--rpr-text-tertiary);
  font-weight: 600;
}

.rpr-price-unit {
  font-size: 15px;
  color: var(--rpr-text-secondary);
}

.rpr-price-fields-box {
  margin-top: 18px;
  border: 1px solid var(--rpr-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.rpr-price-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rpr-price-field {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.rpr-price-fields-row .rpr-price-field:first-child {
  border-right: 1px solid var(--rpr-border);
}

.rpr-price-field-full {
  border-top: 1px solid var(--rpr-border);
  cursor: default;
}

.rpr-price-min-stay-note {
  padding: 8px 12px;
  border-top: 1px solid var(--rpr-border);
  font-size: 12px;
  color: var(--rpr-text-tertiary);
}

.rpr-price-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rpr-text-secondary);
  text-transform: uppercase;
}

.rpr-price-field-value {
  font-size: 14px;
  color: var(--rpr-text-body);
}

.rpr-price-select {
  border: 0;
  outline: none;
  font-size: 14px;
  color: var(--rpr-text-body);
  width: 100%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  padding: 0;
}

/* ---------- Calendar ---------- */

.rpr-calendar {
  margin-top: 14px;
  border: 1px solid var(--rpr-border);
  border-radius: 12px;
  padding: 16px;
}

.rpr-calendar[hidden] {
  display: none;
}

.rpr-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rpr-calendar-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rpr-border);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rpr-calendar-nav-btn:hover {
  background: var(--rpr-bg-hover);
}

.rpr-calendar-month-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
  text-align: center;
}

.rpr-calendar-weekday {
  font-size: 10px;
  font-weight: 600;
  color: var(--rpr-text-faint);
  padding: 4px 0;
}

.rpr-calendar-day {
  padding: 7px 0;
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--rpr-text);
}

.rpr-calendar-day:hover:not(:disabled) {
  background: var(--rpr-bg-hover);
}

.rpr-calendar-day:disabled {
  cursor: default;
  color: #c7cbd4;
}

.rpr-calendar-day.is-empty {
  visibility: hidden;
}

.rpr-calendar-day.is-unavailable {
  text-decoration: line-through;
  color: #d8dce4;
}

.rpr-calendar-day.is-selected {
  background: var(--rpr-blue);
  color: #fff;
}

.rpr-calendar-day.is-selected:hover {
  background: var(--rpr-blue);
}

.rpr-calendar-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--rpr-text-secondary);
}

/* ---------- Price breakdown / reserve ---------- */

.rpr-price-breakdown {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpr-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--rpr-text-body);
}

.rpr-price-row[hidden] {
  display: none;
}

.rpr-price-row-total {
  border-top: 1px solid var(--rpr-border);
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-reserve-btn {
  margin-top: 18px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
  padding: 14px 0;
  font-size: 16px;
  text-decoration: none;
}

.rpr-reserve-note {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--rpr-text-tertiary);
}

/* ---------- Mobile sticky price bar ---------- */

.rpr-mobile-price-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--rpr-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}

.rpr-mobile-price-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.rpr-mobile-price-chevron {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rpr-bg-hover-2);
  display: grid;
  place-items: center;
}

.rpr-mobile-price-text {
  min-width: 0;
  display: block;
}

.rpr-mobile-price-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--rpr-blue);
}

.rpr-mobile-price-unit {
  font-size: 13px;
  color: var(--rpr-text-secondary);
}

.rpr-mobile-price-value-empty {
  font-size: 15px;
}

.rpr-mobile-price-sub {
  display: block;
  font-size: 12px;
  color: var(--rpr-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpr-mobile-reserve-btn {
  flex: 0 0 auto;
  padding: 13px 24px;
  font-size: 15px;
  text-decoration: none;
}

/* ---------- Mobile full-screen price sheet ---------- */

.rpr-price-sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  flex-direction: column;
}

.rpr-price-sheet.is-open {
  display: flex;
}

.rpr-price-sheet-header {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--rpr-border-faint);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.rpr-price-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rpr-text);
}

.rpr-price-sheet-close {
  position: absolute;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--rpr-bg-hover-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rpr-price-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.rpr-price-sheet-body .rpr-price-card {
  padding: 0;
  border: 0;
}

.rpr-price-sheet-body .rpr-reserve-btn,
.rpr-price-sheet-body .rpr-reserve-note {
  display: none;
}

/* Real footer, flex-pinned to the bottom of the full-screen sheet (a
   sibling of the scrollable .rpr-price-sheet-body, not sticky inside it) —
   always at the true bottom of the screen regardless of how much price
   content there is above it. */
.rpr-price-sheet-footer {
  flex: 0 0 auto;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rpr-border-faint);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.rpr-price-sheet-footer .rpr-reserve-btn {
  margin-top: 0;
}

/* ================= Breakpoints ================= */

@media (max-width: 1024px) {
  .rpr-prop-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .rpr-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .rpr-gallery-hero {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .rpr-gallery-thumb {
    display: none;
  }

  .rpr-gallery-back-btn {
    display: flex;
  }

  .rpr-goodtoknow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rpr-amenity-modal-grid {
    grid-template-columns: 1fr;
  }

  .rpr-prop-aside {
    display: none;
  }

  .rpr-mobile-price-bar {
    display: flex;
  }

  .rpr-reviews-scroll {
    --rpr-reviews-per-row: min(1, var(--rpr-reviews-count, 1));
  }

  .rpr-property {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .rpr-prop-title {
    font-size: 26px;
  }

  /* Bigger tap targets for the calendar specifically inside the mobile
     full-screen price sheet — the desktop aside's calendar is untouched. */
  #rpr-price-sheet .rpr-calendar-grid {
    gap: 4px 0;
  }

  #rpr-price-sheet .rpr-calendar-day {
    padding: 13px 0;
    font-size: 15px;
  }

  #rpr-price-sheet .rpr-calendar-weekday {
    font-size: 12px;
  }

  #rpr-price-sheet .rpr-calendar-nav-btn {
    width: 40px;
    height: 40px;
  }

  #rpr-price-sheet .rpr-calendar-month-label {
    font-size: 15px;
  }

  /* Lightbox: prev/next pinned to the bottom of the screen as a centered
     pair, instead of the left/right screen edges — swipe (see property.js)
     is the primary way to move between photos on mobile, this pair is the
     visible/tappable fallback. Image stays centered in the remaining space
     same as desktop (no flex-direction change needed). */
  .rpr-lightbox-img {
    max-width: 92vw;
    max-height: 68vh;
  }

  .rpr-lightbox-nav-row {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    gap: 22px;
  }

  .rpr-lightbox-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .rpr-lightbox-counter {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}
