img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-radius: 14px;
}

video {
  width: 100%;
  border-radius: 14px;
  background: #111820;
}

figure {
  margin: 24px 0;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.video-responsivo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px auto;
  overflow: hidden;
  border-radius: 16px;
  background: #111820;
}

.video-responsivo.video-shorts {
  width: min(100%, 380px);
  aspect-ratio: 9 / 16;
}

.video-responsivo iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

a.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  figure,
  .video-responsivo {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .video-responsivo,
  video,
  img {
    border-radius: 10px;
  }

  a.botao {
    width: 100%;
  }
}


/* Proteção contra download casual */
video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}


/* INÍCIO: altura responsiva dos vídeos locais */
video {
  width: 100%;
  height: auto;
  max-height: 72vh;
  max-height: 72svh;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  background: #05090d;
}

@media (max-width: 640px) {
  video {
    max-height: 60vh;
    max-height: 60svh;
  }
}
/* FIM: altura responsiva dos vídeos locais */


/* INÍCIO: tamanho fixo responsivo v2 */
video {
  display: block !important;
  width: min(100%, 900px) !important;
  max-width: 100% !important;
  height: 520px !important;
  max-height: 60vh !important;
  max-height: 60svh !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  overflow: hidden !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #05090d !important;
}

@media (max-width: 640px) {
  video {
    height: 340px !important;
    max-height: 55vh !important;
    max-height: 55svh !important;
  }
}
/* FIM: tamanho fixo responsivo v2 */
