/* ==========================================
   CUSTOM CAROUSEL
   ========================================== */

.custom-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

/* TRACK */
.custom-carousel__track {
  display: flex;
  gap: 20px;
  padding: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* SLIDE */
.custom-carousel__slide {
  flex: 0 0 80%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
}

/* ==========================================
   IMAGE
   ========================================== */

.custom-carousel__image {
  width: 40%;
  height: 180px;
  overflow: hidden;
  background: #000;
  position: relative;
  flex-shrink: 0;
}

.custom-carousel__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.custom-carousel__image img {
  width: 100% !important;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ==========================================
   CONTENT
   ========================================== */

.custom-carousel__content {
  width: 60%;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CATEGORIES */
.custom-carousel__categories {
  margin-bottom: 6px;
}

.custom-carousel__category {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-right: 6px;
}

/* TITLE */
.custom-carousel__title {
  font-size: 18px;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: #111;
}

.custom-carousel__title a {
  color: inherit;
  text-decoration: none;
}

.custom-carousel__title a:hover {
  text-decoration: underline;
}

/* DATE */
.custom-carousel__date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

/* EXCERPT */
.custom-carousel__excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: #444;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================
   CONTROLS
   ========================================== */

.custom-carousel__btn {
  padding: 0 !important;
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  cursor: pointer !important;
  z-index: 10 !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  color: #333 !important;
}

.custom-carousel__btn--prev {
  left: 10px !important;
}

.custom-carousel__btn--next {
  right: 10px !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* MOBILE */
@media (max-width: 768px) {
  .custom-carousel__slide {
    flex: 0 0 95%;
    flex-direction: column;
  }

  .custom-carousel__image {
    width: 100%;
    height: 200px;
  }

  .custom-carousel__content {
    width: 100%;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
  .custom-carousel__slide {
    flex: 0 0 70%;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .custom-carousel__slide {
    flex: 0 0 45%;
  }

  .custom-carousel__image {
    height: 200px;
  }
}
