@import "./main.css";

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.videosContainer{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 5vh;
  padding: 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.videoCard{
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.videoCard:hover {
  transform: translateY(-4px);
}

.vignetteWrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* ratio 16:9 */
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.videoVignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videoTitle {
  font-display: center;
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  font-family: littlekids;
  
}

.videoPage {
  width: 100%;
}

.videoFullWidth {
  width: 100%;
  margin: 60px 0;
}

.videoHeader {
  text-align: center;
  margin-top: 40px;
}

.videoItemTitle {
  font-size: 7rem;
  color: white;
  font-family: poti;
}

.videoDescriptionContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.videoDescriptionWrapper {
  max-width: 100%;
  margin: 30px auto;
  text-align: center;
  font-family: babydoll;
  font-size: 1.8rem;
  color: white;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.copiIntro{
  font-family: njna;
  font-size: 1rem;
  color: white;

}

h2{
  margin: 70px auto;
  text-align: center;
    white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.controls{
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 6rem;
}

.nav-button {
    width: 100px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-button:hover {
    transform: scale(1.6);
}