.videos-page {
  color: #111;
}

.videos-page .page-container {
  margin-bottom: 1rem;
}

.videos-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 18px;
  background: #fff;
}

.videos-page__grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: min(100vw, 1800px);
  margin-left: calc(50% - min(50vw, 900px));
  margin-right: calc(50% - min(50vw, 900px));
}

.videos-page__hero-copy {
  display: flex;
  flex-direction: column;
}

.videos-page__hero-copy h1 {
  margin: 0;
  padding: 10px 24px 14px;
  color: #4d463f;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
}
  
.videos-page__headline-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 18px 24px;
  background: #0a0a0a;
}

.videos-page__headline-strip p {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
}

.videos-page__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videos-page__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.videos-page__card {
  background: #000;
  cursor: pointer;
  outline: none;
}

.videos-page__card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.videos-page__card--hidden {
  display: none;
}

.videos-page__frame {
  position: relative;
  width: 100%;
  padding-top: 72%;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.videos-page__card:hover .videos-page__frame,
.videos-page__card:focus-visible .videos-page__frame {
  transform: scale(1.05);
}

.videos-page__play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease;
}

.videos-page__card:hover .videos-page__play-button,
.videos-page__card:focus-visible .videos-page__play-button {
  background: rgba(0, 0, 0, 0.6);
}

.videos-page__play-button svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Modal Styles */
.videos-page__modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.videos-page__modal--active {
  opacity: 1;
  visibility: visible;
}

.videos-page__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.videos-page__modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  z-index: 10000;
}

.videos-page__modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.videos-page__modal-close:hover,
.videos-page__modal-close:focus-visible {
  color: #ccc;
}

.videos-page__modal-close svg {
  width: 24px;
  height: 24px;
}

.videos-page__modal-frame {
  width: 100%;
  height: 100%;
}

.videos-page__modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .videos-page__modal-content {
    width: 95%;
  }

  .videos-page__modal-close {
    top: -32px;
    width: 28px;
    height: 28px;
  }

  .videos-page__modal-close svg {
    width: 20px;
    height: 20px;
  }

  .videos-page__play-button svg {
    width: 48px;
    height: 48px;
  }
}

.videos-page__actions {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.videos-page__load-more {
  min-width: 110px;
  padding: 10px 1.45rem;
  border-radius: 14px;
  background: var(--background);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.videos-page__load-more:hover,
.videos-page__load-more:focus-visible {
  background-color: var(--background);
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

@media (max-width: 980px) {
  .videos-page__hero {
    grid-template-columns: 1fr;
  }

  .videos-page__hero-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .videos-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .videos-page__hero-copy h1 {
    padding-inline: 14px;
  }

  .videos-page__headline-strip {
    min-height: 112px;
    padding-inline: 14px;
  }

  .videos-page__grid {
    grid-template-columns: 1fr;
  }
}
