.carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto;
}

.carousel-track-container {
  overflow: hidden;
  height: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fotka vyplní celý prostor a zachová poměr */
  border-radius: 1rem;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  border-radius: 50%; /* kulaté tlačítko */
  font-size: 1.8rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 5;
}
.carousel-btn:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev { left: 0.6rem; }
.carousel-btn.next { right: 0.6rem; }

/* Responsivní úpravy */
@media (max-width: 768px) {
  .carousel {
    max-width: 100%;
    aspect-ratio: 4 / 5; /* o něco plošší poměr – lépe sedí na mobil */
    border-radius: 0.75rem;
  }

  .carousel-btn {
    font-size: 1.6rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Malé telefony (např. 375px) */
@media (max-width: 480px) {
  .carousel {
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 4;
    border-radius: 0.5rem;
  }

  .carousel-btn {
    font-size: 1.8rem; /* tlačítka větší */
    padding: 0.7rem 0.9rem;
  }
}