/* =========================================================
   APTS HEALTH SLIDER
   DESKTOP: 3 VISIBLE
   MOBILE: 1 LARGE CARD + SWIPE
========================================================= */

.apts-home-slider-section {
    width: 100%;
    margin: 18px 0 22px;
    overflow: hidden;
}

.apts-home-slider {
    width: 100%;
    display: flex;
    gap: 12px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    padding: 2px 0 8px;
    box-sizing: border-box;
}

.apts-home-slider::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   SLIDER ITEM
   DESKTOP - 3 ITEMS VISIBLE
========================================================= */

.apts-slider-item {
    flex: 0 0 calc(33.333% - 8px);

    scroll-snap-align: start;
    scroll-snap-stop: always;

    display: block;
    overflow: hidden;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    box-sizing: border-box;
}

.apts-slider-item:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   IMAGE
   FULL IMAGE - NO CROP
========================================================= */

.apts-slider-item img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: center center;

    background: #ffffff;
}


/* =========================================================
   TABLET
   2 ITEMS VISIBLE
========================================================= */

@media (max-width: 1024px) {

    .apts-home-slider {
        gap: 10px;
    }

    .apts-slider-item {
        flex: 0 0 calc(50% - 5px);
        border-radius: 13px;
    }
}


/* =========================================================
   MOBILE
   1 LARGE ITEM VISIBLE
========================================================= */

@media (max-width: 700px) {

    .apts-home-slider-section {
        margin: 15px 0 20px;
    }

    .apts-home-slider {
        gap: 10px;

        padding-left: 2px;
        padding-right: 2px;
    }

    .apts-slider-item {
        flex: 0 0 92%;

        border-radius: 13px;
    }

    .apts-slider-item img {
        width: 100%;
        height: auto;

        object-fit: contain;
        object-position: center center;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .apts-home-slider {
        gap: 8px;
    }

    .apts-slider-item {
        flex: 0 0 94%;
        border-radius: 12px;
    }

    .apts-slider-item img {
        width: 100%;
        height: auto;
    }
}