.videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.video-thumb {
	flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 250px;
  position: relative;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 3rem;
  text-shadow: 0 1px 6px #000;
}

.video-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 3rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 85%));
  color: white;
  font-size: 1rem;
  text-align: left;
}


#fullscreen {
  position: fixed;
  inset: 0;
  width: min(92vw, 1100px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: #000;
}

#fullscreen::backdrop {
  background: rgb(0 0 0 / 85%);
}

.player {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


#close {
  position: absolute;
  top: 30px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 70%);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .video-thumb {
    flex-basis: 100%;
  }
}

