/* =========================================================
   LISTA EDITORIAL DE VIDEO
========================================================= */

.video-list {
  width: 100%;
}

.video-item {
  display: grid;
  grid-template-columns: 31% 1fr;
  column-gap: 42px;
  padding: 28px 0 34px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.video-info {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.78);
}

.video-info p {
  margin: 0 0 18px 0;
}

.video-open-btn {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  color: #00008b;
  font-family: inherit;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-small);
  cursor: pointer;
  text-decoration: none;
}

.video-open-btn:hover {
  text-decoration: underline;
}

/* =========================================================
   MODAL DE VIDEO
========================================================= */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  background: rgba(0,0,0,0.95);
  padding: 18px;
}

.video-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-panel {
  position: relative;
  width: 96vw;
  max-width: 1280px;
  /* background: #050505;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);*/
  padding: 56px;
}

.video-modal-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.video-modal-frame-wrap {

  width: 100%;

}

.video-modal-title {
  margin: 18px 0 0 0;
  text-align: center;
  font-size: var(--text-caption);
  line-height: var(--leading-small);
  color: rgba(255,255,255,0.78);
  letter-spacing: var(--tracking-small);
}
.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.video-modal-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.04);
}

/* TABLETA */

@media (max-width: 1024px) {
  .video-item {
    grid-template-columns: 34% 1fr;
    column-gap: 28px;
  }

  .video-info {
    font-size: 0.95rem;
  }

  .video-open-btn {
    font-size: 0.9rem;
  }

  .video-modal {
    padding: 14px;
  }

  .video-modal-panel {
    width: 97vw;
    padding: 46px 34px 34px 34px;
  }
   .video-modal-title {
    font-size: 0.9rem;
  }
}

/* CELULAR */

@media (max-width: 768px) {
  .video-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 28px 0;
  }

  .video-info {
    font-size: var(--text-caption);
    line-height: var(--leading-small);
  }

  .video-info p {
    margin-bottom: 14px;
  }

  .video-open-btn {
    font-size: var(--text-caption);
    letter-spacing: var(--tracking-small);
  }

  .video-modal {
    padding: 0;
  }

  .video-modal-panel {
    width: 100%;
    height: 100svh;
    max-width: none;
    padding: 54px 14px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .video-modal-frame {
    width: 100%;
    max-width: 100%;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }



  .video-modal-title {
    margin-top: 14px;
    font-size: var(--text-caption);
    line-height: var(--leading-small);
    padding: 0 12px;
  }
}