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

/* Responsive grid */
.video-gallery-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  width: 100%;
}

/* Card */
.video-card-wrapper {
  width: 100%;
}

.video-card {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 295 / 281; /* nearly square feel */
  border: 6px solid var(--blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCE3E7;
  overflow: visible;
	 border: 6px solid var(--wp--preset--color--navy);
  border-radius: 12px;
}

/* Poster thumbnail */
.video-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 14px;
}

/* Play icon overlay */
.video-card__play-icon {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #ffffff88;
  backdrop-filter: blur(3px);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-card__play-icon svg {
  width: 34px;
  height: 34px;
  color: currentColor;
}

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

/* Title under card */
.video-card__title {
	padding-top:0.5em;
  font-size: 1.6rem;
  font-weight: 600;
  color: #03243C;
	text-align:center;
		line-height:1.5
}

/* Modal lightbox */
.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: #000000bb;
  cursor: pointer;
}

.video-modal__content {
  position: relative;
  width: min(880px, 100% - 3rem);
  background: #fff;
  padding: 0;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  overflow: auto; /* prevents clipping controls */
  z-index: 1;
}

/* Lightbox close */
.video-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: var(--blue);
  z-index: 2;
}

/* Player inner wrapper */
.video-modal__inner,
.video-modal__inner iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
