/* Single Image Full Width — shared full-width image (Views/Partials/singleImageFullWidth), scoped to .single-image-full-width.
   Values follow the reference theme: .s-bg-full {width: 100%}, .gallery.grid-1 {margin: 70px 0},
   .entry-main side padding 20px at ≤850px.
   --spaced  70px above and below at all widths (gallery).
   --flush   no spacing (band).
   --rounded (roundedCorners, off by default) 8px rounded corners at ≤850px.
   --video   a video plays instead of the image (object-fit: contain), with 10px below it.
   --inset   40px side margins, 20px corners, 40px below by default (--space-default; 20px at ≤850px);
             optional caption and disclaimer, described with their rules at the end of this file.
   Bottom spacing from sectionComposition.spacingBottom, when set, replaces the variant's (none / small / medium / large). */

.single-image-full-width {
  line-height: 0;
}

.single-image-full-width__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.single-image-full-width--spaced {
  padding: 70px 0;
}

.single-image-full-width--flush {
  padding: 0;
}

/* Reference eVTOL .cabin {padding: 0 40px}; the bottom gap comes from the spacing classes below. */
.single-image-full-width--inset {
  padding: 0 40px;
}

.single-image-full-width--space-none {
  padding-bottom: 0;
}

.single-image-full-width--space-small {
  padding-bottom: 50px;
}

.single-image-full-width--space-medium {
  padding-bottom: 80px;
}

.single-image-full-width--space-large {
  padding-bottom: 170px;
}

/* inset default (Spacing Bottom empty): reference .cabin {gap: 40px}, 20px at ≤850px. */
.single-image-full-width--space-default {
  padding-bottom: 40px;
}

@media (max-width: 850px) {
  .single-image-full-width {
    padding-left: 20px;
    padding-right: 20px;
  }

  .single-image-full-width--space-default {
    padding-bottom: 20px;
  }

  .single-image-full-width--space-small,
  .single-image-full-width--space-medium {
    padding-bottom: 40px;
  }

  .single-image-full-width--space-large {
    padding-bottom: 100px;
  }
}

/* roundedCorners (off by default): 8px corners where the image has side edges (reference ESG .s-bg-full). */
@media (max-width: 850px) {
  .single-image-full-width--rounded .single-image-full-width__image {
    border-radius: 8px;
  }
}

/* video (optional): plays instead of the image, same band layout. */
.single-image-full-width__video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* 10px below a video: the reference's inline video leaves a 10px line box (same rule as Page Intro). */
.single-image-full-width--video .single-image-full-width__video {
  margin-bottom: 10px;
}

/* —— inset caption and disclaimer (reference eVTOL .cabin div p, .one_left / .one_right):
   over the image, 13/18, 20px from the bottom; the caption at the left, the disclaimer at the right.
   Tones: light = white (default), dark = text colour (reference image 2 disclaimer).
   At ≤639px both move below the image: 14/22 in the text colour, 13px above and 15px below (collapsing between
   them), line breaks hidden, 8px corners. —— */
.single-image-full-width--inset .single-image-full-width__image,
.single-image-full-width--inset .single-image-full-width__video {
  border-radius: 20px;
}

.single-image-full-width__figure {
  position: relative;
  margin: 0;
}

.single-image-full-width__caption,
.single-image-full-width__disclaimer {
  position: absolute;
  bottom: 20px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  text-align: left;
}

.single-image-full-width__caption {
  left: 20px;
}

.single-image-full-width__disclaimer {
  right: 20px;
}

.single-image-full-width__caption--light,
.single-image-full-width__disclaimer--light {
  color: var(--eve-color-white);
}

.single-image-full-width__caption--dark,
.single-image-full-width__disclaimer--dark {
  color: var(--eve-color-text);
}

/* Directly after an intro the reference keeps the paragraph's 16px margin above the image (96px / 56px in total). */
.page-intro + .single-image-full-width--inset {
  padding-top: 16px;
}

@media (max-width: 639px) {
  .single-image-full-width--inset .single-image-full-width__image,
  .single-image-full-width--inset .single-image-full-width__video {
    border-radius: 8px;
  }

  .single-image-full-width__caption,
  .single-image-full-width__disclaimer {
    position: static;
    margin: 13px 0 15px;
    font-size: 14px;
    line-height: 22px;
    color: var(--eve-color-text);
  }

  .single-image-full-width__caption br {
    display: none;
  }
}
