/* Trailer player for [tgv_movies_section trailer="true"] — includes/movies/movie-trailer.php */

/* PLAYER */
.tgv-movie-trailer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.tgv-movie-trailer[hidden] {
  display: none;
}
.tgv-movie-trailer-frame,
.tgv-movie-trailer-frame iframe,
.tgv-movie-trailer-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tgv-movie-trailer-frame video {
  object-fit: contain;
  background: #000;
}
.tgv-movie-trailer .tgv-movie-trailer-close {
  z-index: 2;
}
/* PLAYER END */


/* POSTERS */
.tgv-movie-section--trailer .tgv-movie-image-wrapper.has-trailer {
  cursor: pointer;
}
.tgv-movie-section--trailer .swiper-slide.is-trailer-selected .tgv-movie-image-wrapper {
  box-shadow: 0 0 0 3px var(--primary);
  border-radius: 12px;
}
/* The playing movie's poster shows its Book Now / Remind Me button. */
.tgv-movie-section--trailer .swiper-slide.is-trailer-selected .tgv-movie-image-wrapper .tgv-movie-button {
  opacity: 1;
  z-index: 3;
}
/* POSTERS END */
