.flyer-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}

.flyer-facts-rail {
  width: 300px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: #252525;
  border-left: 1px solid #323232;
  color: #bdbdbd;
  padding: 28px 22px 24px;
  overflow: auto;
  text-align: left;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.flyer-facts-heading,
h1.flyer-facts-heading,
h2.flyer-facts-heading {
  margin: 0 0 22px;
  color: #d7d7d7;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.flyer-facts-row + .flyer-facts-row {
  margin-top: 16px;
}

.flyer-facts-label {
  color: #8d8d8d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.flyer-facts-value {
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.autoGrid-lightbox .flyer-lightbox-shell {
  height: calc(100% - 57px);
  width: 100%;
  display: flex;
  min-height: 0;
}

.autoGrid-lightbox .lightbox-alignment {
  flex: 1;
  min-width: 0;
  height: 100%;
}

.autoGrid-lightbox .flyer-facts-rail {
  height: 100%;
}

@media (max-width: 800px) {
  .flyer-shell,
  .autoGrid-lightbox .flyer-lightbox-shell {
    flex-direction: column;
  }

  .flyer-facts-rail,
  .autoGrid-lightbox .flyer-facts-rail {
    width: 100%;
    height: auto;
    max-height: none;
    border-left: 0;
    border-top: 1px solid #323232;
    padding: 16px 18px 18px;
    /* let the page scroll so Sides at the rail bottom is reachable */
    overflow: visible;
  }

  .autoGrid-lightbox .flyer-lightbox-shell {
    height: auto;
    min-height: calc(100% - 57px);
    overflow-y: auto;
  }

  /* The lightbox is position:fixed with no own scroll; on mobile the whole
     overlay must scroll so the rail bottom (incl. the Sides strip) is reachable. */
  .autoGrid-lightbox {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Image keeps its true aspect: width/height auto on the canvas, bounded by
     both viewport dimensions. Top padding matches the side gutters. */
  .autoGrid-lightbox .lightbox-alignment {
    padding-top: 16px;
  }

  .autoGrid-lightbox .lightbox-alignment2 {
    padding: 0 16px;
  }

  .autoGrid-lightbox .v2-lightbox-image {
    max-width: calc(100vw - 32px) !important;
    max-height: 62vh !important;
    width: auto !important;
    height: auto !important;
  }

  /* Bottom action bar stays pinned to the viewport while the overlay scrolls.
     Must override the absolute positioning set in gridGallery.css. */
  .autoGrid-lightbox .autoGrid-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-shrink: 0;
  }
}
