body.video-modal-open {
  overflow: hidden;
}

.ovidio-video-gallery {
  width: min(100%, 1080px);
  margin: 2rem auto;
  padding: 0 0.9rem 1rem;
}

.ovidio-video-gallery-shell {
  padding: 1.2rem;
  border: 2px solid rgba(243, 210, 124, 0.7);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.92), rgba(4, 4, 4, 0.96)),
    radial-gradient(circle at top, rgba(243, 210, 124, 0.18), transparent 55%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ovidio-video-gallery-eyebrow,
.ovidio-video-gallery-title,
.ovidio-video-gallery-copy {
  text-align: center;
}

.ovidio-video-gallery-eyebrow {
  color: #f3d27c;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  margin: 0 0 0.65rem;
}

.ovidio-video-gallery-title {
  margin: 0;
  color: #fff2bf;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  text-shadow: 0 0 18px rgba(243, 210, 124, 0.25);
}

.ovidio-video-gallery-copy {
  color: #ecdca8;
  line-height: 1.55;
  max-width: 700px;
  margin: 0.9rem auto 1.2rem;
  text-transform: none;
}

.ovidio-video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ovidio-video-gallery-card {
  width: 100%;
  border: 1px solid rgba(243, 210, 124, 0.55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(33, 18, 6, 0.82), rgba(10, 10, 10, 0.94));
  color: #fff6cf;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ovidio-video-gallery-card:hover,
.ovidio-video-gallery-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  border-color: #f3d27c;
}

.ovidio-video-gallery-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 14;
  background: #000;
}

.ovidio-video-gallery-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.ovidio-video-gallery-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border: 2px solid rgba(243, 210, 124, 0.9);
  box-shadow: 0 0 25px rgba(243, 210, 124, 0.35);
}

.ovidio-video-gallery-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.ovidio-video-gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.8rem 1rem;
}

.ovidio-video-gallery-card-title {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.ovidio-video-gallery-card-subtitle {
  color: rgba(255, 246, 207, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.ovidio-video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.ovidio-video-modal.is-open {
  display: block;
}

.ovidio-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
}

.ovidio-video-modal-dialog {
  position: relative;
  width: min(92vw, 900px);
  margin: min(5vh, 32px) auto;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(5, 5, 5, 0.98));
  border: 1px solid rgba(243, 210, 124, 0.75);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.42);
}

.ovidio-video-modal-player-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.ovidio-video-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 210, 124, 0.55);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.92);
  color: #fff8d3;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ovidio-video-modal-close:hover,
.ovidio-video-modal-close:focus-visible {
  background: rgba(34, 34, 34, 0.98);
  outline: none;
}

.ovidio-video-modal-player {
  width: 100%;
  max-height: 75vh;
  display: block;
  background: #000;
}

.ovidio-video-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.ovidio-video-modal-title {
  margin: 0;
  color: #fff2bf;
  font-size: 1rem;
}

.ovidio-video-modal-fullscreen {
  border: 1px solid rgba(243, 210, 124, 0.85);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #f3d27c, #b8860b);
  color: #140d00;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ovidio-video-gallery {
    margin: 1.4rem auto;
    padding: 0 0.7rem 0.75rem;
  }

  .ovidio-video-gallery-shell {
    padding: 1rem 0.85rem;
  }

  .ovidio-video-gallery-grid {
    gap: 0.75rem;
  }

  .ovidio-video-gallery-play {
    width: 50px;
    height: 50px;
  }

  .ovidio-video-modal-dialog {
    width: min(94vw, 900px);
    margin: 3vh auto;
    padding: 0.75rem;
  }

  .ovidio-video-modal-close {
    top: 0.55rem;
    right: 0.55rem;
    width: 38px;
    height: 38px;
  }

  .ovidio-video-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
