@charset "utf-8";

h2 {font-size:40px;margin-top:0px;margin-left:40px;color:black}
.carousel-container {
  position: relative; /* 🔐 기준점 설정 */
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  margin-bottom: 100px;
  overflow: hidden;
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
}

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

.carousel-button.right {
  right: 10px;
}
.carousel-button:disabled {opacity: 0.3;cursor: not-allowed;}
.top_cont {gap:100px;}
.atc_tit {align-items:center;}
.carousel-item {
  width: 263px; /* 기본 고정 */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
  box-sizing: border-box;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-sizing: border-box;
}


.carousel-item a {
  width: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-title {
  width: 75%;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 8px;

  display: -webkit-box;
  -webkit-line-clamp: 2;             /* ✅ 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.4em;                /* ✅ 줄 간격 설정 */
  height: calc(1.4em * 2);           /* ✅ 두 줄 높이 */
}
.carousel-track-wrapper {
  overflow: hidden;
  width: 91%;
  margin-left: 70px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* 반응형 [s] */
@media (max-width:1024px){
  .carousel-item {
    width: 220px;
    margin-right: 16px;
  }
}
@media (max-width:768px){
  .carousel-item {
    width: 180px;
    margin-right: 12px;
  }
}
@media (max-width:480px){
.carousel-container {
  position: relative; /* 🔐 기준점 설정 */
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
  .carousel-button.left {
  left: 0px;
}

.carousel-button.right {
  right: 0px;
}
  .carousel-item {
    width: 100px;
    margin-right: 10px;
  }
  .carousel-title {
    font-size: 12px;
  }

  .carousel-track-wrapper {
  overflow: hidden;
  width: 88%;
  margin-left: 20px;
}

h2 {font-size:40px;margin-top:50px;margin-left:40px;color:black}
.carousel-container {position:relative;max-width:81%;max-height:10%;margin:80px auto;margin-top:20px;margin-bottom:70px;overflow:hidden;}
.carousel-track {display: flex;transition: transform 0.3s ease;gap:0px;;margin-left:40px}
}
@media (max-width:390px){
}
/* 반응형 [e] */
