.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 0;    

}

.carousel-item {
    flex: 1 0 25%; /* 기본적으로 4개를 표시 */
    padding: 10px;
    box-sizing: border-box;
    /* width: 100%; */

    width: 290px;
    list-style: none;
    text-align: center;

}

.carousel-item > figure {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item > figure > img {
    width: 280px;
    height: auto;
}

@media (max-width: 1400px) {
    .carousel-item {
        flex: 1 0 50%; /* 2개를 표시 */
    }
}

@media (max-width: 760px) {
    .carousel-item {
        flex: 1 0 100%; /* 1개를 표시 */
    }
}

/* 버튼 스타일 */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 10px;

    cursor: pointer;
    z-index: 1;

    font-size: 20px;
    color: var(--accent-color);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

/* 닷 스타일 */
.dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background-color: lightgray;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--accent-color);
}