/* Base typography that bootstrap's CSS used to supply (its reboot + type
   layer). These pages were designed against those defaults; normalize.css
   doesn't set them, so without this the headings fall back to the browser's
   bold + roomy-margin defaults. h1 is deliberately omitted — the only h1 is the
   logo, styled in style.css. */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.5;
}

main {
  display: flex;
}

.grid {
  flex: 1 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100%;
  grid-gap: 2.5rem;
}

.slideshow {
  overflow: hidden;
}
/* Single-image slideshows (no carousel). The image is taken out of flow, like
   the carousel slides, so it fills the grid cell without contributing its own
   height: an in-flow img's height: 100% is a cyclic percentage here (main's
   height comes from its content), so it falls back to the image's aspect
   ratio and a tall image would push the page into scrolling. */
.slideshow.memorial-c,
.slideshow.retronom {
  position: relative;
}
.slideshow.memorial-c img,
.slideshow.retronom img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* Overlay Mémorial-C image of text so it stands out
from white page background */
.slideshow.memorial-c {
  background-color: #005da1;
}
.slideshow.memorial-c img {
  opacity: .7;
}
/* custom positioning */
.slideshow.memorial-c img {
  object-position: center center;
}

/* custom positioning */
.slideshow.retronom img {
  object-position: right center;
}

.carousel-inner {
  height: 100%;
}
.carousel-item {
  height: 100%;
}
.carousel-item .copyright {
  position: absolute;
  bottom: 0;
  left: 0;
  padding-left: .2rem;

  font-size: .8rem;
  color: white;
}


/* Custom positioning */

.carousel-item#members-of-parliament-4 img {
  object-position: top;
}
.carousel-item#vianden-1 img {
  object-position: bottom right;
}
.carousel-item#losch-1 img {
  object-position: right;
}
.carousel-item#losch-2 img {
  object-position: bottom right;
}
.carousel-item#jesuits-3 img {
  object-position: left;
}
.carousel-item#lcm-2 img, .carousel-item#lcm-3 img {
  object-position: left;
}
.carousel-item#between-shade-and-darkness-2 img {
  object-position: left;
}
.carousel-item#mnha-2 img, .carousel-item#mnha-4 img {
  object-position: left;
}
.carousel-item#a-propos-1 img, .carousel-item#a-propos-2 img, .carousel-item#a-propos-3 img {
  object-position: top;
}
.carousel-item#bourscheid-2 img {
  object-position: left;
}
.carousel-item#pure-europe-II-1 img {
  object-position: 51.5%;
}
.carousel-item#forgotten-victims-2 img {
  object-position: 88%;
}
#suddenly-1 img, #suddenly-2 img, #suddenly-3 img, #suddenly-4 img {
  object-position: top;
}
video { /* UrbIA */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* min-width: 100%; */
  /* min-height: 100%; */
  /* object-fit: cover; */
  /* object-position: center center; */
  z-index: 0;
}



.description {
  margin-right: 6rem;
  margin-bottom: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.description h2 {
  margin-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  font-weight: 300;
  font-size: 2rem;
  color: #555;
}
.description h3 {
  margin-top: 2rem;
  margin-bottom: 1.35rem;
  font-size: 1rem;
  font-weight: 400;
  color: #ff9900;
}
.description p:last-child {
  margin-bottom: 0;
}

.external-link {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0;
}

.external-link .icon {
  font-size: .7em;        /* ~cap height of the adjacent text */
  vertical-align: baseline;
}
.external-link a,
a,
a:hover { /* override reboot.scss */
  text-decoration: none;
  color: #999;
  margin: 0;
}

.app-links {
  display: flex;
  margin-top: 1rem;
}
#ios-badge {
  margin-inline-start: 1rem;
  height: 58px;
}
@media screen and (max-width: 420px) {
  .app-links {
    flex-direction: column;
    align-items: center;
  }
  #ios-badge {
    margin-inline-start: 0;
    margin-block-start: 1rem;
  }
}


/* mobile and tablet */
@media screen and (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
  }
  .description {
    margin: 1rem;
  }
}
