/**
 * review-media — popup player for video testimonials.
 *
 * Kept as an external stylesheet (not Tailwind utilities) because the modal is
 * built at runtime by /js/review-media.js, and classes that only ever appear in
 * a public/ script are not seen by Tailwind's class scanner.
 */

.review-modal {
  width: min(92vw, 460px);
  max-width: 92vw;
  /* The global reset zeroes margins, which kills the UA's `margin: auto` on
     <dialog> and pins the popup to the top-left corner. Restore it. */
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.review-modal::backdrop {
  background: rgb(0 0 0 / 0.75);
}

.review-modal__body {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 45px rgb(0 0 0 / 0.45);
}

.review-modal__video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
  object-fit: contain;
}

.review-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.9);
  color: #0b1b3a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.review-modal__close:hover,
.review-modal__close:focus-visible {
  background: #fff;
  transform: scale(1.05);
}

/* Stop the page behind the popup from scrolling while it is open. */
.review-modal-open {
  overflow: hidden;
}
