/* Block: Video Gallery. Vimeo video cards (1 → 2 → 2|3 columns), click to play
   inline. Token-driven, fluid. */

.video-gallery {
  background-color: var(--color-gray-00);
  padding-block: clamp(3rem, 2.1rem + 4.5vw, 5rem); /* 48 → 80 */
}
.video-gallery__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 1.85rem + 3vw, 4rem); /* 40 → 64 */
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}
.video-gallery__intro { display: flex; flex-direction: column; gap: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.video-gallery__heading {
  margin: 0;
  color: var(--color-main-950);
  font: var(--text-titles-h3-font);
  letter-spacing: var(--text-titles-h3-letter-spacing);
  text-transform: none;
}
.video-gallery__empty { margin: 0; color: var(--color-gray-700); }

/* ----- Grid ----- */
.video-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(1rem, 0.6rem + 1.5vw, 1.5rem);
  row-gap: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) { .video-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .video-gallery--cols-3 .video-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ----- Card ----- */
.video-card { display: flex; flex-direction: column; }
.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-primary-900);
}
.video-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(7, 10, 15, 0.05) 0%, rgba(7, 10, 15, 0.35) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.video-card__media:hover .video-card__thumb { transform: scale(1.03); }
.video-card__media:hover .video-card__overlay { opacity: 0.6; }

/* Play button — covers the whole thumbnail; the visible disc sits centred. */
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video-card__play-icon {
  position: relative;
  width: clamp(3.5rem, 3rem + 2vw, 4.5rem);   /* 56 → 72 */
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.5rem 1.5rem rgba(7, 10, 15, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.video-card__play-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 38%;
  translate: 10% 0; /* optical centring of the triangle */
  background-color: var(--color-main-500);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: background-color 0.2s ease;
}
.video-card__play:hover .video-card__play-icon,
.video-card__play:focus-visible .video-card__play-icon { transform: scale(1.08); background-color: var(--color-main-500); }
.video-card__play:hover .video-card__play-icon::after,
.video-card__play:focus-visible .video-card__play-icon::after { background-color: var(--color-gray-00); }
.video-card__play:focus-visible { outline: 2px solid var(--color-main-500); outline-offset: -2px; }

/* Playing — the iframe replaces the thumbnail/button. */
.video-card__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Text */
.video-card__text { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1rem 0; }
.video-card__title {
  margin: 0;
  color: var(--color-gray-900);
  font: var(--text-titles-h5-font);
  letter-spacing: var(--text-titles-h5-letter-spacing);
  text-transform: none;
}
.video-card__desc {
  margin: 0;
  color: var(--color-gray-700);
  font: var(--text-paragraph-16-regular-font);
}

@media (prefers-reduced-motion: reduce) {
  .video-card__thumb, .video-card__overlay, .video-card__play-icon, .video-card__play-icon::after { transition: none; }
}
