.videos-page {
  padding: 20px;
}

.videos-page-title {
  font-size: 1em;
  margin-bottom: 20px;
  font-weight: 700;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 24px 20px;
}

@media (min-width: 760px) {
  .videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .videos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-cover-wrap {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
  overflow: hidden;
}

.video-cover-button {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.video-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-meta p,
.video-title {
  margin: 0;
  font-size: 1em;
  line-height: 1.25;
}

.video-title {
  font-weight: 700;
}

.video-summary p {
  margin: 0;
}

.video-details-toggle {
  border: 0;
  padding: 0;
  margin: 8px 0 0;
  background: transparent;
  color: #000;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.video-details-toggle-symbol {
  display: inline-block;
  min-width: 24px;
  font-weight: 700;
}

.video-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.video-details.is-open {
  opacity: 1;
}

.video-details p {
  margin-top: 8px;
}

.video-summary {
  margin-top: 8px;
}

.video-watch-overlay {
  border: 1px solid #000;
  border-radius: 0;
  padding: 4px 10px;
  background: #fff;
  color: #000;
  font: inherit;
  cursor: pointer;
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  box-sizing: border-box;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-inner {
  position: relative;
  width: min(1200px, 100%);
}

.video-modal-close {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: -32px;
  right: 0;
}

.video-modal-player {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 90px);
  background: #000;
}
