/* ==========================================================================
   video-modal — opened by the map location markers
   ========================================================================== */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.video-modal-box {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.active .video-modal-box {
  transform: scale(1);
}
.video-modal-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-caption {
  padding: 18px 22px 22px;
}
.video-modal-caption h3 {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  margin-bottom: 6px;
}
.video-modal-caption p {
  color: var(--stone);
  font-size: 14px;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  font-size: 26px;
  line-height: 1;
  color: var(--sand);
  background: rgba(27, 26, 22, 0.7);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}
