/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  padding-top: 6rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  /* z-index: 10; */
}

/* Declare heights because of positioning of img element */
.carousel-item {
  height: 60vh;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.carousel-item > img {
  position: absolute;
  top: 0;
  left: 0;
  /* min-width: 100%; */
  height: 60vh;
  width: 100%;
  margin: auto;
  object-fit: contain;
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.overlay-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

/* rtl:end:ignore */

/* Featurettes
------------------------- */

.featurette-divider {
  /* margin: 5rem 0; */
  /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  /* rtl:remove */
  letter-spacing: -0.05rem;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
    /* min-height: auto; */
  }
}

@media only screen and (max-width: 600px) {
  .carousel-item {
    padding-top: 5em;
    height: 20em;
    position: relative;
    object-fit: contain;
  }

  .carousel-caption > p {
    bottom: 1rem;
    font-size: 0.8rem;
    /* z-index: 10; */
  }

  .carousel-caption > h1 {
    font-size: 1rem;
    font-weight: 700;
    /* z-index: 10; */
  }

  .banner-carousel .item {
    height: 14em;
  }

  .banner-carousel .overlay-image {
    height: 14em;
  }

  .banner-carousel .overlay-image img {
    height: 14em;
    object-fit: cover;
  }

  .banner-carousel .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-carousel .carousel-caption {
    position: static;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
}
