article{
  align-items: center;
  border-bottom: 1px solid var(--brand-brown);
  border-top: 3px solid var(--border-soft);
  justify-content: center;
  margin: 0 auto;
  max-width: 900px;
  position: relative;
}

.carousel {
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  height: 100%;
  margin: 1px;
  overscroll-behavior-x: contain;
  overflow-x: auto;
  padding-inline: 16.766%;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  border-bottom: 2px solid var(--brand-blonde);
}

.carousel-btn{
  visibility: hidden;
}

.carousel-container{
  display: block;
  width: 100%;
}

.carousel-dots  {
  background-color: rgba(0,0,0,0.5);
  border: none;
  border-radius: 5px;
  color: var(--brand-green) ;
  cursor:  pointer;
  display: flex;
  align-self: flex-end;
  min-width: 40px;
  padding: 2px 4px;
  position: absolute;
  transform: translateY(-50%);
}

.carousel-dots button {
  opacity: 0.5;
  transform: scale(0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 4px 7px;
  background-color: purple;
}

.carousel-dots button.active {
  background-color: var(--brand-blonde);
  color: var(--brand-green);
  opacity: 1;
  transform: scale(1.1);
}

.carousel-track {
  display: flex;
  justify-content: flex-start;
  max-width: 50vw;
  min-height: 220px;
  opacity: 0;
}
.carousel-track.ready{
  transition: transform 0.5s ease;
  opacity: 1;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel[data-carousel] img {
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  transform: translateY(-10px);
  width: 100%;
}

.carousel[data-variant="demo"] button {
  overflow: hidden;
  transform: translateY(-10px);
  width: 100%;
}
/* HERO CONTAINER */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

/* EACH SLIDE */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* ACTIVE SLIDE */
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* IMAGE */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT OVERLAY */
.hero-slide figcaption {
  align-items: center;
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 80%;
}

/* CTA BUTTON */
button.show-more{
  background: #c94c86;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(119, 79, 5, 0.644);



}
button.show-more:hover{
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}

.slide {
  flex: 0 0 50%;
  margin-right: var(--space-2);
  opacity: 0.5;
  padding-bottom: var(--space-1);
  padding-top: var(--space-1);
  scroll-snap-align: center;
  transition: transform 0.5s ease;
}

.slide h4 {
  bottom: var(--space-3);
  color: var(--bg-surface);
  left: var(--space-3);
  height: 10px;
  position: relative;
  text-shadow: 0 0 5px rgba(119, 79, 5, 0.644);
}

.slide.is-active{
  opacity: 1;
  transform: scale(1.02 ) rotateY(0deg);
  z-index: 2;
}
.slide.is-active img{
  animation: subtleZoom 6s ease-in-out;
}

@keyframes subtleZoom{
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.slide.is-left {
  opacity: 1;
}

.slide.is-right {
  opacity: 1;
}

.slide-media {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  overflow: visible;
  width: 100%;
}
.slide-media img{
  height: 100%;
  object-fit: cover;
  display: block;
  width: 100%;
}

.slide-option{
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.slide-option p{
  color: var(--bg-surface);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1px;
  padding: 1px 3px;
}


/* Desktop */

@media (min-width: 769px) {

.carousel {
  box-sizing: border-box;
  height: 100%;
  margin: 1px;
  overscroll-behavior-x: contain;
  overflow-x: auto;
  padding-inline: 16.766%;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
}

.carousel-btn {
  background-color: rgba(0,0,0,0.5);
  border: none;
  border-radius: 5px;
  bottom: 10px;
  color: #00231C;
  cursor: pointer;
  font-size: 2rem;
  padding: 6px 10px;
  position: absolute;
  visibility: visible;
  z-index: 10;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn.prev {
  left: 10px;
}

  .hero-slideshow {
    height: 320px;
  }

  .hero-slide figcaption {
    font-size: 1.2rem;

  }

}