@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins/breakpoints';

div.modal {
  --cod-modal-width: 90vw;
}

@include media-breakpoint-up(lg) {
  div.modal {
    --cod-modal-width: 50vw;
  }
}

.modal {
  background-color: rgba(0, 0, 0, 0.5);
}

div.video-placehold {
  background-color: lightgray;
  min-height: 343px;
}

div.player-container {
  position: relative;
}

div.player-container img.video-placehold {
  display: block;
}

div.player-container .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
}

.play-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-play-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

iframe#ytPlayerContainer {
  width: 100%;
  aspect-ratio: 16/9;
}
