/* 피그마 기준 */
@media (max-width: 487px) {
  /* .carousel-slide img {
    width: 100% !important;
    height: auto !important;
  } */

  .carousel-slide img {
    height: 150px !important;
  }

}

@media screen and (min-width:487px) and (max-width: 768px) {
  .carousel-slide img {
    height: 200px !important;
  }
}

@media screen and (min-width:768px) and (max-width: 844px) {
  .carousel-slide img {
    height: 300px !important;
  }
}

/* iPad Mini layout */
@media screen and (min-width:845px) and (max-width: 1024px) {
  .carousel-slide img {
    height: 340px !important;
  }
}

/* iPad Air layout */
@media screen and (min-width:1025px) and (max-width: 1200px) {
  .carousel-slide img {
    height: 380px !important;
  }
}

/* iPad Pro layout */
@media screen and (min-width:1201px) and (max-width: 1300px) {
  .carousel-slide img {
    height: 410px !important;
  }
}

/* iPad Pro layout */
@media screen and (min-width:1301px) and (max-width: 1366px) {
  .carousel-slide img {
    height: 440px !important;
  }
}

.carousel {
  position: relative;
  margin-top: 80px;
  width: 100%;
  /* max-width: 1200px; */
  /* height: 480px; */
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  justify-content: center;
  align-items: center; /* 세로 중앙 정렬 */
  height: 100%; /* 부모 높이 */
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: auto;
  height: 480px;
  display: block;
  object-fit: contain; /* 이미지 비율 유지 및 여백 처리 */
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
}

.carousel-button-left {
  left: 10px;
}

.carousel-button-right {
  right: 10px;
}

.carousel-button:focus {
  outline: none;
}