/* GLOBAL STYLES
-------------------------------------------------- */


/* Carousel base class */
.carousel {
  margin-top: 0rem;
  margin-bottom: 0rem;
  width: 100%;
  height: 60vh;
  /* height of the carousel controls */
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  font-family: 'Ebrima', sans-serif;
  color: rgb(255, 255, 255) !important;
  bottom: 10rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */
.carousel-item {
  position: relative;
  height: 42rem;
}

/* FADE BACK-IMAGE */
.carousel-item .fade-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  /* Reset opacity */
  transition: transform 0.3s ease-in-out;
  object-fit: cover;
}

/* Dark overlay */
.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Adjust darkness here */
  z-index: 1;
  pointer-events: none;
}

/* Declare positions of the items on the img element */
.carousel-item-position-left {
  text-align: left;
}

.carousel-item-position-center {
  text-align: center;
}

.carousel-item-position-right {
  text-align: right;
}

.carousel-caption h1 {
  font-weight: bold;
  font-size: 3rem;
}

.casselberry-logo {
  width: clamp(2rem, calc(10vw + 4rem), 20rem) !important;
  /* height: auto; */
}

/* Bump up size of carousel content */
.carousel-caption p {
  font-size: 2rem;
  line-height: 2;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

/*Small screens (iPhones, 576px and down)  XS*/
@media (max-width: 576px) {

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 15rem);
  }

  .carousel-caption h1 {
    font-weight: bold;
    font-size: 1rem;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    font-size: 0.8rem;
  }

  /* THIS CLASS IS FOR UNTIL max-height <= 667px SCREENS SIZES and EMBEDDED INTO MAX-WIDTH <=576px */
  @media (max-height: 667px) {
    .carousel-item {
      height: calc(100vh - 10rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 896px SCREENS SIZES  */
  @media (min-height: 1025px) {
    .carousel-item {
      height: calc(100vh - 20rem);
    }
  }

}

/*Small screen (iPhones Vertical, 577px to 768) SM*/
@media (min-width: 577px) and (max-width: 768px) {

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 17rem);
  }

  .carousel-caption h1 {
    font-weight: bold;
    font-size: 1.5rem;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    font-size: 1rem;
  }

  /* THIS CLASS IS FOR UNTIL max-height <= 667px SCREENS SIZES and EMBEDDED INTO MAX-WIDTH <=576px */
  @media (max-height: 667px) {
    .carousel-item {
      height: calc(100vh + 0rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1024px SCREENS SIZES and EMBEDDED INTO MAX-WIDTH <=576px */
  @media (min-height: 1025px) {
    .carousel-item {
      height: calc(100vh - 20rem);
    }
  }
}

/*Small screen () MD*/
@media (min-width: 769px) and (max-width: 992px) {

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 15rem);
  }

  .carousel-caption h1 {
    font-weight: bold;
    font-size: 2.5rem;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    font-size: 1.5rem;
  }

  /* THIS CLASS IS FOR UNTIL max-height <= 667px SCREENS SIZES and EMBEDDED INTO (min-width: 769px) and (max-width: 992px) */
  @media (max-height: 667px) {
    .carousel-item {
      height: calc(100vh - 2rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1024 SCREENS SIZES and EMBEDDED INTO (min-width: 769px) and (max-width: 992px) */
  @media (min-height: 1025px) {
    .carousel-item {
      height: calc(100vh - 25rem);
    }
  }
}

/* Ipad Pro screen LG-XL*/
@media (min-width: 993px) and (max-width: 1200px) {

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 20rem);
  }

  .carousel-caption h1 {
    font-weight: bold;
    font-size: 2.5rem;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    font-size: 1.5rem;
  }

  /* THIS CLASS IS FOR UNTIL max-height <= 820px SCREENS SIZES and EMBEDDED INTO (min-width: 993px) and (max-width: 1200px) */
  @media (max-height: 820px) {
    .carousel-item {
      height: calc(100vh - 12rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1366px SCREENS SIZES  and EMBEDDED INTO (min-width: 993px) and (max-width: 1200px) */
  @media (min-height: 1366px) {
    .carousel-item {
      height: calc(100vh - 25rem);
    }
  }

}

/* Laptop Screen > XXL*/
@media (min-width: 1201px) and (max-width: 1400px) {
  .carousel-caption {
    bottom: 15rem;
  }

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 15rem);
  }

  /* THIS CLASS IS FOR UNTIL max-height <= 820px SCREENS SIZES and EMBEDDED INTO (min-width: 1201px) and (max-width: 1400px) */
  @media (max-height: 720px) {
    .carousel-item {
      height: calc(100vh - 5rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1024px SCREENS SIZES  and EMBEDDED INTO (min-width: 1201px) and (max-width: 1400px) */
  @media (min-height: 1025px) {
    .carousel-item {
      height: calc(100vh - 25rem);
    }
  }
}

/* PC Screen */
@media (min-width: 1401px) {

  /* Since positioning the image, we need to help out the caption */
  .carousel-caption {
    bottom: 20rem;
  }

  /* Declare heights caption on positioning of img element */
  .carousel-item {
    height: calc(100vh - 10rem);
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1401px SCREENS SIZES  and EMBEDDED INTO (min-width: 1401px) */
  @media (min-height: 768px) {
    .carousel-item {
      height: calc(100vh - 5rem);
    }
  }

  /* THIS CLASS IS FOR UNTIL min-height >= 1024px SCREENS SIZES  and EMBEDDED INTO (min-width: 1201px) and (max-width: 1400px) */
  @media (max-height: 1280px) {
    .carousel-item {
      height: calc(100vh - 10rem);
    }
  }
}


/* Transition effects to the carousel 
----------------------------------------------------*/
.fade-image {
  opacity: 0.6;
  /* semi-transparent */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  /* smooth effect */
}

.fade-image:hover {
  opacity: 0.6;
  transform: scale(1.5);
}