/* PROMO OVERLAY */

div.promo-blog div.carousel-item div.details-wrap > h5 {
  /* remove headline */
  display: none;
}

div.promo-blog div.carousel-item div.promo-headline-overlay {
  background-color: rgb(0 0 0 / 80%);
  position: absolute;
  bottom: 0;
  height: 35%;
  width: 100%;
  justify-content: center;
  display: box;
  display: flex;
  display: flexbox;
  display: flex;
  align-items: center;
  font-size: 14px;
}

div.promo-blog div.carousel-item p.promo-headline-overlay-text {
  color: #fff;
  font-weight: bold;
  font-size: 125%;
  line-height: normal;
  margin-bottom: 0;
  padding: 0 10px;
}

div.promo-blog div.carousel-item div.learn-more-button {
  /* remove learn more button */
  display: none;
}

div.promo-blog div.carousel-item figure {
  margin-bottom: 15px;
}

div.promo-blog figure img {
  /* remove this once we have images that fit */
  max-height: 270px;
}

div.promo-blog figure.animated-overlay > a {
  opacity: 0;
}

div.promo-blog figure.animated-overlay > a:hover {
  background-color: black;
  opacity: 0.3;
  transition-property: opacity;
  transition-duration: 0.2s;
  transition-timing-function: linear;
}

/* END PROMO OVERLAY */

.blog {
  text-align: center;
}

.blog .details-wrap {
  font-size: 14px;
}

.blog .details-wrap h5 {
  font-weight: bold;
  font-size: 125%;
  line-height: normal;
}

.blog .details-wrap p {
  font-size: 100%;
}

.blog .details-wrap p > a {
  color: #544741;
}

.blog .details-wrap p > a:hover {
  text-decoration: none;
}

.blog .recent-posts.row {
  justify-content: center;
}

/* center and enlarge the blog posts when there's no carousel present */

@media screen and (min-width: 786px) {
  .blog div.owl-wrapper {
    display: flex !important;
    width: 100% !important;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .blog div.owl-item {
    width: 100% !important;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 768px) {
  .blog .details-wrap,
  div.promo-blog div.carousel-item div.promo-headline-overlay {
    font-size: 14px;
  }
}

@media screen and (min-width: 992px) {
  .blog .details-wrap,
  div.promo-blog div.carousel-item div.promo-headline-overlay {
    font-size: 16px;
  }
}

@media screen and (min-width: 1200px) {
  .blog .details-wrap,
  div.promo-blog div.carousel-item div.promo-headline-overlay {
    font-size: 19px;
  }
}

@media screen and (max-width: 767px) {
  .blog .details-wrap,
  div.promo-blog div.carousel-item div.promo-headline-overlay {
    font-size: 14px;
    text-align: center;
  }

  /* removes padding on small screens to allow more content */
  .fw-row > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* CAROUSEL PAGINATION */

.owl-carousel .owl-controls {
  margin-top: 0 !important;
}

.owl-pagination .owl-page {
  margin: 10px 5px;
  width: 19px;
  height: 19px;
}

.owl-pagination .owl-page::after {
  transform: none;
  transform: none;
}

.owl-pagination .owl-page span {
  transform: none;
  transform: none;
  background-color: white;
  border: 2px solid rgb(151 151 151);
}

.owl-pagination .owl-page.active span {
  transform: none;
  transform: none;
  opacity: 1 !important;
  -moz-opacity: 1 !important;
  -webkit-opacity: 1 !important;
  background-color: #d8d8d8;
}

.owl-carousel div.owl-wrapper-outer {
  padding-bottom: 5px;
}

.blog div.excerpt {
  margin-bottom: 0;
}

/* END CAROUSEL PAGINATION */

/* CAROUSEL BUTTONS */

@media screen and (max-width: 1024px) and (min-width: 768px) {
  .carousel-wrap a.prev,
  .carousel-wrap a.next,
  .flex-direction-nav {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
  .carousel-wrap a.carousel-prev,
  .carousel-wrap a.carousel-next {
    display: none !important;
  }
}

.display-none {
  display: none;
}
