@charset "UTF-8";
/**
 * Video half image module. Left: poster image + video overlay link. Right: copy. Popup: .video-wrap (sibling).
 * All selectors are children of .mod_video_half_image.
 */

.mod_video_half_image .row.half-image-row.video {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

@media screen and (max-width: 64em) {
  .mod_video_half_image .row.half-image-row.video {
    grid-template-columns: 1fr;
  }
}

/* Media section: image as background, play button centered, titles below */
.mod_video_half_image .mod_video_half_image__media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mod_video_half_image .mod_video_half_image__media--placeholder {
  background-color: #111;
}

.mod_video_half_image .mod_video_half_image__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.mod_video_half_image .mod_video_half_image__play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  z-index: 1;
}

/* Play button via ::after */
.mod_video_half_image .mod_video_half_image__play-trigger::after,
.mod_video_half_image .row.half-image-row.video .media a.popup-video-custom::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: #0073aa;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0, 115, 170, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}

.mod_video_half_image .mod_video_half_image__video-titles {
  position: relative;
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.mod_video_half_image .mod_video_half_image__video-title-small {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.mod_video_half_image .mod_video_half_image__video-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
}


.mod_video_half_image .row.half-image-row.video .copy {
  max-width: none;
}

.mod_video_half_image .row.half-image-row.video .copy .inner {
  max-width: none;
  padding: 1rem 0;
}

@media only screen and (min-width: 64.1em) {
  .mod_video_half_image .row.half-image-row .copy {
    width: 100%;
    padding: 60px 0;
  }
  .mod_video_half_image .row.half-image-row .media {
    width: 100%;
    height: 100%;
  }
}

.mod_video_half_image .copy .content h2 {
  margin-top: 0;
}

.mod_video_half_image .copy .content .small {
  display: block;
  font-size: 0.85em;
  font-weight: normal;
}

/* Popup / lightbox container (video + close); shown by JS */
.mod_video_half_image .video-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.mod_video_half_image .video-wrap video {
  max-width: 90%;
  max-height: 90vh;
}

.mod_video_half_image .video-wrap .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mod_video_half_image .video-wrap .close::before,
.mod_video_half_image .video-wrap .close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.mod_video_half_image .video-wrap .close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
