.tour-video {
  display: grid;
  min-height: 42rem;
  padding: 3rem 1rem;
  place-items: center;
  background: #111;
  color: #fff;
}

.tour-video__facade {
  position: relative;
  display: block;
  width: min(100%, 27rem);
  max-height: 48rem;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 1rem;
  background: #242424;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%);
}

.tour-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-video__facade::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgb(0 0 0 / 72%));
}

.tour-video__play {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 50%;
  background: #cc1ff6;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, background-color 180ms ease;
}

.tour-video__play::before {
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-top: 0.8rem solid transparent;
  border-bottom: 0.8rem solid transparent;
  border-left: 1.25rem solid #fff;
  content: "";
}

.tour-video__label {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.75rem;
  left: 1.5rem;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
}

.tour-video__facade:hover .tour-video__play,
.tour-video__facade:focus-visible .tour-video__play {
  background: #af5d00;
  transform: translate(-50%, -50%) scale(1.08);
}

.tour-video__facade:focus-visible,
.tour-video__control:focus-visible {
  outline: 0.2rem solid #fff;
  outline-offset: 0.2rem;
}

.tour-video__dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}

.tour-video__dialog::backdrop {
  background: rgb(0 0 0 / 92%);
}

.tour-video__player-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #000;
}

.tour-video__player {
  width: min(100vw, 56.25dvh);
  height: min(100dvh, 177.78vw);
  background: #000;
}

.tour-video__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-video__controls {
  position: absolute;
  z-index: 2;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  gap: 0.5rem;
}

.tour-video__control {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 2rem;
  background: rgb(0 0 0 / 72%);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.tour-video__control--close {
  font-size: 1.5rem;
  line-height: 1;
}

body.tour-video-open {
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .tour-video {
    width: 100%;
    min-height: 0;
    padding: 1.5rem 0;
  }

  .tour-video__facade {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-video__play {
    transition: none;
  }
}
