body {
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background-color: var(--light-cream);
}

/* Carousel */
.carousel {
  overflow: hidden;
  height: calc(100vh - 170px);
  user-select: none;
  position: relative;
  display: flex;
  gap: 20px;
}

.carousel__title {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  padding: 20px;
  border-radius: 0 32px 0 0;
  background-color: var(--white);
  font: 400 32px / 1.2 'Lekton';
  color: var(--brown);
  text-align: center;
}

.carousel__gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  position: relative;
  border-radius: 32px 32px 32px 0;
}

.carousel__inner {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel__slide {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.3);
}

/* Thumbnails */
.carousel__thumbnails {
  width: 80px;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.carousel__thumbnails input[type="radio"] {
  display: none;
}

.carousel__thumbnail {
  width: 100%;
  height: 80px;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carousel__thumbnails input:checked + .carousel__thumbnail {
  border-color: var(--brown);
}

.carousel__thumbnail:hover {
  border-color: var(--gray400);
}

.carousel__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3);
}

/* Navigation Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
  color: var(--brown);
}

.carousel__arrow:hover {
  background: #f5f5f5;
  transform: translateY(-50%) scale(1.03);
}

.carousel__arrow--prev {
  left: 25px;
}

.carousel__arrow--next {
  right: 125px;
}

@media (max-width: 1440px) {
  .carousel {
    height: calc(100vh - 140px);
  }

  .carousel__arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1024px) {
  .carousel {
    height: calc(100vh - 120px);
  }

  .carousel__title {
    font-size: 24px;
    padding: 10px;
    border-radius: 0 16px 0 0;
  }

  .carousel__arrow {
    width: 34px;
    height: 34px;
  }

  .carousel__arrow--prev {
    left: 15px;
  }

  .carousel__arrow--next {
    right: 115px;
  }
}

@media (max-width: 768px) {
  .carousel {
    gap: 10px;
  }

  .carousel__thumbnails {
    width: 60px;
    min-width: 60px;
  }

  .carousel__thumbnail {
    height: 60px;
  }

  .carousel__arrow--next {
    right: 85px;
  }
}

@media (max-width: 560px) {
  .carousel {
    height: calc(100vh - 140px);
    overflow: visible;
    display: flex;
    flex-direction: column;
    border-radius: 0;
  }

  .carousel__title {
    position: unset;
    width: 100%;
    line-height: 1;
    border-radius: 0;
    order: 2;
  }

  .carousel__gallery {
    height: calc(100% - 44px);
    border-radius: 16px;
  }

  .carousel__image {
    object-position: top center;
  }

  .carousel__arrow {
    top: calc(50% - 70px);
  }

  .carousel__arrow--next {
    right: 15px;
  }

  .carousel__thumbnails {
    flex-direction: row;
    width: 100%;
    height: 60px;
    min-height: 60px;
  }

  .carousel__thumbnail {
    width: 60px;
    height: 100%;
  }
}