.video-library-block {
  width: 100%;
}

/* Grid */
.video-library-grid {
  display: grid;
  gap: 5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: 100%;
}

/* Card wrapper */
.video-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Reset button */
.video-card {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
	    padding-bottom: 0.5em;
}

/* Thumbnail container */
.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 295 / 275;
  border: 6px solid var(--wp--preset--color--navy);
  border-radius: 12px;
  overflow: hidden;
  background: #00000008;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auto Vimeo thumbnail fills box */
.video-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
	border-radius: 7px;
}

/* Play overlay */
.video-card__play-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #ffffff44;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.video-card__play-icon svg {
  width: 42px;
  height: 42px;
}

.video-card:hover .video-card__play-icon,
.video-card:focus-visible .video-card__play-icon {
  transform: scale(1.08);
  background: #ffffff66;
}

/* Title text */
.video-card__title {
  font-size: 1.6rem;
  font-weight: 300;
  color: #03243C;
	text-align:center;
		line-height:1.3
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: #000000aa;
  cursor: pointer;
}

/* IMPORTANT: allow Vimeo controls to be visible, not clipped */
.video-modal__content {
  position: relative;
  width: min(900px, 100% - 2rem);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: visible; /* ← FIXED (do NOT hide overflow or controls get cropped) */
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 1;
}

.video-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  all: unset;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.video-modal__inner,
.video-modal__inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}
