/* carousel.css
   FTP: www/carousel.css
   PC 4열 / 모바일 2열
*/

#service-section,
#service-section * {
    box-sizing: border-box;
}

#service-section {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 0 42px;
}

#service-section .carousel-title {
    margin: 0 0 22px;
    padding: 0;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #171717;
}

#service-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

#service-carousel > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#service-carousel .item {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#service-carousel .item > a {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

#service-carousel .thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f4f4;
}

#service-carousel .thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 0.25s ease;
}

#service-carousel .item > a:hover .thumbnail img {
    transform: scale(1.025);
}

#service-carousel .title {
    display: -webkit-box;
    min-height: 2.9em;
    margin-top: 12px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #222;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
    #service-section {
        width: calc(100% - 24px);
        padding: 24px 0 30px;
    }

    #service-section .carousel-title {
        margin-bottom: 16px;
        font-size: 22px;
    }

    #service-carousel > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }

    #service-carousel .thumbnail {
        border-radius: 10px;
    }

    #service-carousel .title {
        min-height: 2.8em;
        margin-top: 9px;
        font-size: 14px;
        line-height: 1.4;
    }
}
