* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.carousel_container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 60px 0;
}

.carousel_track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 0 10%;
}

.carousel_slide {
    min-width: 100%;
    background: #F2E9E2;
    border-radius: 16px;
    /* flex-shrink: 0; */
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    gap: 30px;
}

.carousel_text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel_slide.dimmed {
    opacity: 0.5;
    transform: scale(0.95);
}

.carousel_slide img {
    width: 45%;
    border-radius: 10px;
}

.carousel_content {
    width: 50%;
    padding-left: 20px;
    align-items: center;
    color: rgba(103, 77, 62, 1);
}

.carousel_content > h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.carousel_content > p {
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.nav_button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #585858;
    z-index: 10;
}

.nav_button:hover {
    color: #000;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #333;
}

/* 미디어 시작 */

@media (min-width: 361px) and (max-width: 1024px) {
    .carousel_slide {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .carousel_container > .carousel_track > .carousel_slide > h2 {
        font-size: 20px;
    }

    .carousel_slide img {
        width: 50%;
    }

    .carousel_content {
        width: 50%;
        padding: 0;
    }

    .carousel_text {
        flex-direction: column;
    }

    .carousel_text > div > h3 {
        font-size: 18px;
    }

    .carousel_text > div > strong {
        font-size: 16px;
    }

    .carousel_text > div > p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .carousel_slide {
        flex-direction: column;
        align-items: center;
    }

    .carousel_container > .carousel_track > .carousel_slide > h2 {
        font-size: 16px;
    }

    .carousel_slide {
        font-size: 12px;
    }

    .carousel_slide img {
        width: 50%;
    }

    .carousel_content > div > h3 {
        font-size: 10px;
    }

    .carousel_content > div > strong {
        font-size: 10px;
    }

    .carousel_content > div > p {
        font-size: 10px;
    }
}

/* 미디어 끝 */

/* 텍스트 */

.carousel_slide > h2 {
    color: rgba(103, 77, 62, 1);
    font-size: 56px;
}

.carousel_content > h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.carousel_content > strong {
    font-weight: 900;
    font-size: 24px;
    line-height: 24px;
}

.carousel_content > p {
    font-size: 18px;
    margin-top: 8px;
}