/* Site-specific styles, loaded after the theme's style.css. */

/* Project / experience pages (see _layouts/project.html) */
.project-lead {
  margin: 0 0 25px;
}

.project-media {
  margin: 0 0 20px;
}

.project-media img,
.project-media iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
}

.project-video {
  position: relative;
}

.project-video iframe {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Thumbnail shown over the player until the video is playing (assets/js/project-video.js) */
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #000 center / cover no-repeat;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 44px;
  margin: -22px 0 0 -32px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.2s;
}

.video-poster-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -7px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

.video-poster:hover .video-poster-play,
.video-poster:focus-visible .video-poster-play {
  background: var(--clr-a-text);
}

.project-video.is-playing .video-poster {
  opacity: 0;
  visibility: hidden;
}

/* The lines recruiters read: larger, darker and boxed off from the long text. */
.project-summary {
  padding: 14px 18px;
  border-left: 4px solid var(--clr-a-text);
  border-radius: 0 5px 5px 0;
  background: var(--clr-card-bg);
  color: var(--clr-h1-and-bold);
  font-size: 17px;
  line-height: 1.55;
}

.project-summary p {
  margin: 0;
}

.project-summary p + p {
  margin-top: 10px;
}

/* Portrait videos: summary sits beside the video so it stays above the fold. */
.project-lead-vertical {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.project-lead-vertical .project-media {
  flex: 0 0 250px;
  margin: 0;
}

.project-lead-vertical .project-video iframe {
  aspect-ratio: 9 / 16;
}

.project-lead-vertical .project-summary {
  flex: 1 1 220px;
}
