/**
 * Jeito Donato — galeria de vídeos
 * Segue as variáveis e a diagramação já usadas no tema (--gutter, .content etc.).
 */

.module-jeito-donato {
  position: relative;
  margin: var(--gutter);
}

@media screen and (max-width: 768px) {
  .module-jeito-donato {
    margin: calc(var(--gutter) * 2) var(--gutter);
  }
}

.module-jeito-donato .content {
  max-width: 120rem;
  margin: 0 auto;
}

/* Cabeçalho: título + botão do canal */
.jeito-donato-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 4rem;
  padding-bottom: var(--gutter);
  border-bottom: clamp(2px, 0.2rem, 0.2rem) solid currentColor;
}

@media screen and (max-width: 768px) {
  .jeito-donato-header {
    padding-bottom: calc(var(--gutter));
  }
}

.jeito-donato-channel {
  flex-shrink: 0;
}

/* Bloco de texto */
.jeito-donato-text {
  max-width: 87rem;
  margin-top: var(--gutter);
  font-size: 1.8rem;
  line-height: 1.4;
}

.jeito-donato-text p + p {
  margin-top: 1.365em;
}

@media screen and (max-width: 768px) {
  .jeito-donato-text {
    font-size: 1.6rem;
  }
}

/* Grade de vídeos */
.jeito-donato-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38rem, 1fr));
  gap: var(--gutter) 3rem;
  margin-top: var(--gutter);
}

@media screen and (max-width: 768px) {
  .jeito-donato-videos {
    grid-template-columns: 1fr;
    gap: calc(var(--gutter) * 1.2);
  }
}

.jeito-donato-video {
  margin: 0;
}

/* Proporção 16:9 (padrão) */
.jeito-donato-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--black);
}

/* Vídeos verticais (Shorts / formato retrato) evitam barras pretas laterais */
.jeito-donato-video-frame.is-vertical {
  aspect-ratio: 9 / 16;
  max-width: 30rem;
  margin: 0 auto;
}

.jeito-donato-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.jeito-donato-video figcaption {
  margin-top: 1.6rem;
  font-family: "GT Flexa Condensed Medium", sans-serif;
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {
  .jeito-donato-video figcaption {
    font-size: 1.6rem;
  }
}
