.youtube-video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  width: 50%;
  height: auto;
  border: solid #0c034d 3px;
}

.videowrapper {
  float: none;
  clear: both;
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}
.videowrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-inline-link {
  cursor: pointer;
  border-radius: 50%;
}

.youtube-inline-link img {
  border: #efefef 1px solid;
  border-radius: 50%;
  width: 16px;
}

.images {
  display: block;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 20vw;
  height: auto;
}

.youtube-popup-link {
  cursor: pointer;
  position: absolute;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  bottom: 10%;
  right: 30%;
  width: 34px;
  height: 34px;
  overflow: hidden;
}

.youtube-popup-link img {
  border: #efefef 1px solid;
  border-radius: 50%;
  width: 30px;
  height: 30px !important;
}

.youtube-popup-link:hover {
  background-color: #efefef;
}

.youtube-player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 400ms ease;
}

.youtube-player-overlay.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 999;
}

.youtube-player-popup {
  position: fixed;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
}

.youtube-player-popup iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

@media screen and (max-width: 768px) {
  .images {
    width: 80vw;
  }
}
