/* ===================================
   HLAVNÍ KONTEJNER
=================================== */

.hpcustom-carousel {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* ===================================
   HORNÍ ŘADA
=================================== */

.hpcustom-carousel-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===================================
   BANNERY
=================================== */

.hpcustom-banner {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    line-height: 0;
}

.hpcustom-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===================================
   HERO BANNERY
=================================== */

.hpcustom-hero-mobile {
    display: none;
}

.hpcustom-small-mobile {
    display: none;
}

.hpcustom-small-desktop {
    display: block;
}

/* ===================================
   SPODNÍ ŘADA DESKTOP
=================================== */

.hpcustom-carousel-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===================================
   TABLET + MOBIL
=================================== */

@media (max-width: 1400px) {

    .hpcustom-carousel {
        padding: 24px 16px 0;
        box-sizing: border-box;
    }

    .hpcustom-carousel-top {
        grid-template-columns: 1fr;
    }

    .hpcustom-hero-desktop {
        display: none !important;
    }

    .hpcustom-hero-mobile {
        display: block !important;
    }

    .hpcustom-small-desktop {
        display: none !important;
    }

    .hpcustom-small-mobile {
        display: block !important;
    }

    .hpcustom-carousel-bottom {
        display: flex !important;
        overflow-x: auto;
        gap: 16px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;

        padding-bottom: 10px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .hpcustom-carousel-bottom a {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .hpcustom-carousel-bottom::-webkit-scrollbar {
        display: none;
    }
}

/* ===================================
   MOBIL
=================================== */

@media (max-width: 768px) {

    .hpcustom-carousel {
        padding: 20px 12px 0;
    }

    .hpcustom-carousel-bottom a {
        flex: 0 0 85%;
    }
}