/* Post preview - Carousel (manual items) */
/* Selectors use ".slider .item_wrap" to override the parent ".de_block_post_preview:not(.grid) .item_wrap" rules */
.de_block_post_preview.carousel_manual_items {
  overflow: hidden;
}

.de_block_post_preview.carousel_manual_items .slider_wrap {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 80px;
}

.de_block_post_preview.carousel_manual_items .slider {
  position: relative;
  margin-top: 3em;
}

.de_block_post_preview.carousel_manual_items .slick-list {
  /* room for the main slide shadow */
  padding: 10px 0 20px !important;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap {
  width: auto;
  padding: 0 14px;
  outline: none;
}

/* Item: previous / next slides keep the full height, only the item is scaled */
.de_block_post_preview.carousel_manual_items .slider .item_wrap .item {
  display: block;
  height: auto;
  background: none;
  text-align: center;
  transform: scale(0.86);
  transition: transform 0.4s ease;
}

/* Image */
.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .thumb_wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .thumb_wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .thumb_wrap .thumb {
  display: block;
  height: 0;
  padding-bottom: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap.no_image_available .item .thumb_wrap .thumb {
  background-color: #e5e5e5;
}

/* Content: auto height, only visible on the main slide */
.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap {
  display: block;
  height: auto;
  padding: 1.5em 1em 0;
  background: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap .title {
  display: block;
  margin-bottom: 0;
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  text-decoration: none;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap .description {
  margin: 0.3em 0 0;
  color: #777;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap .btns_wrap {
  margin-top: 1.2em;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap .btns_wrap .btnCta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.6em;
  border-radius: 30px;
  background: var(--main);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap .item .content_wrap .btns_wrap .btnCta a:hover {
  opacity: 0.85;
}

/* Main slide */
.de_block_post_preview.carousel_manual_items .slider .item_wrap.slick-center .item {
  transform: scale(1);
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap.slick-center .item .thumb_wrap {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap.slick-center .item .thumb_wrap:after {
  opacity: 0;
}

.de_block_post_preview.carousel_manual_items .slider .item_wrap.slick-center .item .content_wrap {
  opacity: 1;
  visibility: visible;
}

/* Arrows: "top" is set in JS to the centre of the slide images */
.de_block_post_preview.carousel_manual_items .arrow {
  top: 50%;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 0;
  background: var(--main);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.de_block_post_preview.carousel_manual_items .arrow:hover {
  opacity: 1;
}

.de_block_post_preview.carousel_manual_items .arrow.prev {
  left: -70px;
}

.de_block_post_preview.carousel_manual_items .arrow.next {
  right: -70px;
}

/* Same breakpoint as the slick "responsive" setting (1 item per view) */
@media (max-width: 767px) {
  .de_block_post_preview.carousel_manual_items .slider_wrap {
    padding: 0 50px;
  }

  .de_block_post_preview.carousel_manual_items .slider .item_wrap {
    padding: 0;
  }

  .de_block_post_preview.carousel_manual_items .arrow.prev {
    left: -46px;
  }

  .de_block_post_preview.carousel_manual_items .arrow.next {
    right: -46px;
  }
}
