/* =========================================
   RB Blog Carousel
========================================= */

.rb-blog-carousel{
  background: #1f1d1f;
  padding: clamp(34px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.rb-blog-carousel__viewport{
  width: min(1720px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
}

.rb-blog-carousel__track{
  display: flex;
  gap: 38px;
  will-change: transform;
  transition: transform 0.5s ease;
}

.rb-blog-card{
  flex: 0 0 calc((100% - 76px) / 3);
  min-width: 0;
  background: linear-gradient(90deg, #2c2c2c 0%, #343434 100%);
}

.rb-blog-card__link{
  display: block;
  color: #fff;
  text-decoration: none;
  height: 100%;
  padding: 40px 40px 34px;
}

.rb-blog-card__media{
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  background: #111;
}

.rb-blog-card__img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.rb-blog-card__body{
  padding: 26px 12px 6px;
  text-align: center;
}

.rb-blog-card__title{
  margin: 0;
  color: #fff;
  /* font-family: "Cormorant Garamond", serif; */
  font-size: clamp(20px, 1.4vw, 36px);
  line-height: 1.12;
  font-weight: 600;
}

.rb-blog-card__line{
  display: block;
  width: 96px;
  height: 2px;
  margin: 18px auto 0;
  background: #a75c39;
}

.rb-blog-card__link:hover .rb-blog-card__img,
.rb-blog-card__link:focus-visible .rb-blog-card__img{
  transform: scale(1.04);
}

.rb-blog-card__link:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Controls */
.rb-blog-carousel__controls{
  width: min(1720px, calc(100% - 40px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.rb-blog-carousel__arrow{
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  padding: 8px 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rb-blog-carousel__arrow--prev{
  justify-self: start;
}

.rb-blog-carousel__arrow--next{
  justify-self: end;
}

.rb-blog-carousel__arrow:hover,
.rb-blog-carousel__arrow:focus-visible{
  opacity: 0.75;
  transform: translateY(-1px);
}

.rb-blog-carousel__dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rb-blog-carousel__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.rb-blog-carousel__dot.is-active{
  width: 28px;
  border-radius: 999px;
  background: #a75c39;
}

.rb-blog-carousel__dot:hover,
.rb-blog-carousel__dot:focus-visible{
  transform: scale(1.08);
}

/* Tablet */
@media (max-width: 1100px){
  .rb-blog-card{
    flex: 0 0 calc((100% - 38px) / 2);
  }

  .rb-blog-card__link{
    padding: 28px 28px 24px;
  }

  .rb-blog-card__title{
    font-size: clamp(18px, 2vw, 30px);
  }

  .rb-blog-card__line{
    width: 86px;
    margin-top: 16px;
  }
}

/* Mobile */
@media (max-width: 767px){
  .rb-blog-carousel{
    padding: 26px 0 42px;
  }

  .rb-blog-carousel__viewport,
  .rb-blog-carousel__controls{
    width: min(100%, calc(100% - 24px));
  }

  .rb-blog-carousel__track{
    gap: 18px;
  }

  .rb-blog-card{
    flex: 0 0 100%;
  }

  .rb-blog-card__link{
    padding: 18px 18px 22px;
  }

  .rb-blog-card__body{
    padding: 18px 6px 4px;
  }

  .rb-blog-card__title{
    font-size: clamp(18px, 5.3vw, 24px);
  }

  .rb-blog-card__line{
    width: 74px;
    margin-top: 14px;
  }

  .rb-blog-carousel__controls{
    margin-top: 24px;
  }

  .rb-blog-carousel__arrow{
    font-size: 28px;
  }

  .rb-blog-carousel__dots{
    gap: 8px;
  }
}