/* Responsive Vimeo players (16:9), max 1200px wide, centred */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed .responsive-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* same frame as the Vimeo players (max 1200px, centred), used by the animation section */
.video-embed-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* animation section: text 1/3, video 2/3 of the row; no single word on the last line */
@media (min-width: 992px) {
  .anim-text-col  { flex: 0 0 33.333%; max-width: 33.333%; }
  .anim-video-col { flex: 0 0 66.667%; max-width: 66.667%; }
}
.anim-text-col p { text-wrap: pretty; }

/* VW + Porsche pages, all screen sizes: 80px between the iframe videos and
   80px after the VW roof animation (vwa). VW banner hidden on mobile (see HTML). */
.vw-media { padding-top: 80px !important; padding-bottom: 0 !important; }
.vw-media .section-offset { padding-bottom: 0 !important; }
/* the theme's offset_top pulls each video up by its 'large' spacing; switch it off so the 80px gaps are exact */
.vw-media .section-offset__content { transform: none !important; }
.vw-media--first { padding-top: 0 !important; padding-bottom: 0 !important; } /* banner sits directly above; the next video adds the 80px */
.vw-media--last { padding-bottom: 80px !important; }
@media (max-width: 991px) {
  /* VW: exactly 100px after "The Challenge" (banner is hidden on mobile) */
  .vw-challenge { padding-bottom: 0 !important; }
  .vw-challenge .section-list__item:last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .vw-media--first { padding-top: 100px !important; }
  /* text -> roof animation: 12px instead of 24px */
  .vw-media--first .row { --bs-gutter-y: 12px; }
}

/* VW page, desktop: more space between the iframe videos (168px = 160px + 5%) */
@media (min-width: 992px) {
  .vw-media.bg-portfolio-10:not(.vw-media--first) { padding-top: 168px !important; }
}

/* VW page: space after the last video (DOOH) = 160px */
.vw-media--last.bg-portfolio-10 { padding-bottom: 160px !important; }

/* Porsche page: space after the last video section (DOOH) = 160px */
.vw-media--last:not(.bg-portfolio-10) { padding-bottom: 160px !important; }

/* Porsche page: 160px between the iframe videos (same as after the UX/UI video), desktop and mobile */
.vw-media:not(.bg-portfolio-10) { padding-top: 160px !important; }

/* Porsche "The Challenge": all text 100% white */
.challenge-white,
.challenge-white h2,
.challenge-white p,
.challenge-white .section-list__counter-label { color: #ffffff !important; opacity: 1 !important; }

/* Porsche "Mobile UI/UX": phone screenshots at 100% width on mobile / tablet
   (the theme sets max-width: 250px on the wrapper from the image size) */
@media (max-width: 991px) {
  .lazy-wrapper.mbl-shot { display: block !important; width: 100% !important; max-width: none !important; }
  .lazy-wrapper.mbl-shot img { width: 100% !important; height: 100% !important; }
}

/* Delinat header logo on mobile: bigger (it is 26% wide on desktop), less space below */
@media (max-width: 991px) {
  .section-masthead img[src*="delinat-logo"] { width: 55% !important; max-width: 240px; padding-top: 20px !important; padding-bottom: 40px !important; }
}
