/* Shared layout for every Storyboard project and video page. */
.story-detail {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(981px, calc(100vw - 36px));
  max-width: none;
  margin: 0;
}
.story-detail h1 {
  margin: 0 0 22px;
}
.story-detail .story-back {
  margin: 4px 0 14px;
}
.story-video-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 8px;
  max-width: 760px;
}
.story-video-grid article {
  flex: 0 0 var(--thumb-width);
  min-width: 0;
  text-align: center;
}
.story-video-grid article:first-child {
  flex-basis: 100%;
  text-align: left;
}
#storyboard-zouk .story-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 636px;
}
.story-video-card {
  position: relative;
  display: block;
  width: var(--thumb-width);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  color: #292525;
  text-decoration: none;
}
.story-video-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .22s ease, transform .22s ease;
}
.story-video-card.barless img {
  transform: scale(1.38);
}
.story-video-card span,
.story-preview span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #ffffff24;
  color: #292525;
  font: 25px Georgia, serif;
  text-align: center;
  opacity: 0;
  transition: opacity .22s ease;
}
.story-video-card:is(:hover, :focus-visible),
.story-preview:is(:hover, :focus-visible) {
  border-radius: 8px;
  box-shadow: 0 2px 5px #0008;
}
.story-video-card:is(:hover, :focus-visible) img,
.story-preview:is(:hover, :focus-visible) img {
  filter: blur(5px);
  transform: scale(1.03);
}
.story-video-card.barless:is(:hover, :focus-visible) img {
  transform: scale(1.42);
}
.story-video-card:is(:hover, :focus-visible) span,
.story-preview:is(:hover, :focus-visible) span {
  opacity: 1;
}
.story-video-grid h2 {
  width: var(--thumb-width);
  max-width: 100%;
  margin: 7px 0 0;
  color: #776d68;
  font-family: 'Coming Soon', 'Comic Sans MS', cursive;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}
.story-ollie .story-video-grid {
  max-width: 981px;
  gap: 30px 6px;
}
.story-ollie .story-video-card {
  aspect-ratio: auto;
  height: var(--thumb-height);
}
.story-ollie .story-video-grid h2 {
  font-size: 27px;
}
.story-ollie .story-video-grid article:first-child h2 {
  font-size: 32px;
}
.story-preview {
  display: block;
  color: #292525;
  text-decoration: none;
  cursor: zoom-in;
}
.story-preview img {
  transition: filter .22s ease, transform .22s ease;
}
.story-video-player {
  width: min(810px, 100%);
  aspect-ratio: 16 / 9;
  margin: 6px 0 26px;
}
.story-video-player iframe,
.story-video-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .story-ollie .story-video-grid {
    gap: 22px 8px;
  }
  .story-ollie .story-video-card {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .story-video-grid article:not(:first-child) {
    flex-basis: calc(50% - 4px);
  }
  .story-video-grid article:first-child .story-video-card,
  .story-video-grid article:not(:first-child) .story-video-card,
  .story-video-grid h2 {
    width: 100%;
  }
  .story-video-grid h2 {
    font-size: 18px;
  }
  .story-video-card span,
  .story-preview span {
    font-size: 20px;
  }
}

#storyboard-chouette h1 {
  max-width: 602px;
  font-size: 43px;
  line-height: 1.2;
}
#storyboard-chouette .chouette-video {
  width: min(735px, 100%);
  aspect-ratio: 735 / 408;
}
