.carousel-section {
  /* Wrapper */
  --content-inline-gutter: 10px;
  --content-max-width-after-gutter: 1192px;
  --content-max-width: calc(var(--content-max-width-after-gutter) + 2 * var(--content-inline-gutter));

  /* Carousel */
  --carousel-gap: 10px;
  --card-radius: 18px;

  container: carousel-section / inline-size;
}

.custom-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-inline: auto;
  max-width: var(--content-max-width);
  padding-inline: var(--content-inline-gutter);
}

/* .custom-carousel .carousel-viewport { overflow: hidden; } */
.custom-carousel .carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  transition: transform 300ms ease;
  will-change: transform;
}

.custom-carousel .carousel-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
}

.carousel-card {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  overflow: hidden;
  background: #fff;
  transition: transform 300ms ease-in-out;
  will-change: transform;
}

.carousel-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.carousel-body {
  padding: 16px 18px;
}

.carousel-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #212529;
}

.carousel-sub {
  font-size: .925rem;
  color: #6c757d;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.is-center .carousel-sub {
  max-height: 180px;
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  transition: background-color 150ms ease, transform 150ms ease;
}

.carousel-btn:hover {
  background: #f8f9fa;
  transform: translateY(-1px);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #343a40;
  stroke-width: 2;
}

.drop-down .dd-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #9aa0a6;
  background: #FFF;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.drop-down .dd-btn:hover {
  background: #ccc;
}

.drop-down .dd-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #000;
  stroke-width: 3;
}

.carousel-viewport.touch {
  touch-action: pan-y;
}

.custom-carousel.is-transitioning .carousel-card {
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.dd-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  z-index: 1055;
}

.dd-modal.show {
  display: flex;
}

.dd-dialog {
  position: relative;
  min-width: min(500px, 90vw);
  max-width: 90vw;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  /* padding: 20px 24px;*/
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.dd-dialog .dd-content {
  padding: 20px 24px;
}

.dd-modal.show .dd-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.dd-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dd-close svg {
  width: 20px;
  height: 20px;
  stroke: #6c757d;
  fill: none;
  stroke-width: 2;
}

@container carousel-section (max-width: 1252px) {
  .carousel-nav {
	padding-inline: 16px;
  }
}

@media (min-width: 596px) {
  .carousel-section {
	--content-inline-gutter: 10px;
	--content-max-width-after-gutter: 1192px;
	--content-max-width: calc(var(--content-max-width-after-gutter) + 2 * var(--content-inline-gutter));
  }

  .custom-carousel {
	--carousel-gap: clamp(16px, 2.5vw, 24px);

	min-height: 420px;
  }

  .carousel-card {
	transform: scale(.92);
  }

  .is-center .carousel-card {
	transform: scale(1.30);
	z-index: 2;
  }
}

@media (min-width: 768px) {
  /* Tablet */
}

@media (min-width: 1024px) {
  /* Desktop */
  .custom-carousel {
	--carousel-gap: clamp(20px, 3vw, 50px);
  }
}

@media (orientation: landscape) {
  .carousel-img {
	aspect-ratio: 16/9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-carousel .carousel-track,
  .carousel-card,
  .dd-dialog {
	transition-duration: 0ms;
  }
}

.carousel-img-container {
  width: 100%;
  height: -webkit-fill-available;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 14px;
  ;
  border-bottom-left-radius: 14px;
}