
/* MOBILNÍ ZOBRAZENÍ */
@media only screen and (max-width: 499px) {
    .carousel-hp .overlay {
        display: none;
    }

    .id-1 .overlay-mobile img,
    .carousel-hp .c {
        height: 400px !important;
    }

    .carousel-1 .ci img,
    .carousel-hp .ci img {
        min-height: 400px !important;
    }

    .id-1 article.welcome.clearfix {
        max-height: 400px !important;
    }

    .carousel-hp .overlay,
    .carousel-hp .text,
    .carousel-hp .overlay-mobile {
        text-align: center;
        width: 100% !important;
        bottom: unset !important;
        top: 0 !important;
    }

    .carousel-hp .text a {
        position: absolute;
        top: 345px;
        left: 0;
        right: 0;
    }

    .carousel-hp .text h1 {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ZÁKLADNÍ STYL */
.carousel-1,
.carousel-hp {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    background: hsl(0 0% 98%);
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', sans-serif;
}

.carousel-hp label {
    display: none;
}

/* HOMEPAGE CAROUSEL */
.carousel-hp .cta-hp:hover {
    box-shadow: 0 4px 18px #0101011a;
}

.carousel-hp .cta-hp {
    display: inline-block;
    width: auto;
    background: #ffffff;
    border-radius: 0.4rem;
    padding: 0 1.5rem;
    line-height: 34px;
    color: #d7a3ce;
    font-weight: 700;
    text-align: center;
    max-width: 180px;
    font-size: 16px;
}

.carousel-hp .text {
    z-index: 7;
    align-items: center;
    padding: 2rem;
    width: 60%;
    color: #fff;
    display: inline-grid;
    align-content: center;
}

img.pc,
img.mobile {
    background: #01010121 !important;
}

.carousel-hp .overlay,
.carousel-hp .overlay-mobile {
    z-index: 6;
}

.carousel-hp .overlay,
.carousel-hp .text,
.carousel-hp .overlay-mobile {
    background: none;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

/* SPOLEČNÝ CAROUSEL */
.carousel-1 .c,
.carousel-hp .c {
    border-radius: 12px;
    padding: 20px;
    padding-bottom: 20px;
    box-shadow: 0 8px 15px 2px hsla(10 6% 15% / .15);
    min-width: 100%;
    height: 291px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    position: relative;
    overflow: hidden;
    background: hsl(0 0% 90%);
    box-sizing: border-box;
}

/* SLIDY */
.carousel-1 .ci,
.carousel-hp .ci {
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    transform-origin: left 50%;
    background: inherit;
    z-index: var(--z);
    transition: .3s ease-out;

    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-1 .ci img,
.carousel-hp .ci img {
    -moz-user-select: none;
    user-select: none;
    min-height: 300px;
    min-width: auto;
    object-fit: cover;
    position: relative;
    z-index: 0;
    align-self: center;
}

/* NADPISY */
.mobile .carousel-1 .ch,
.mobile .carousel-hp .ch {
    font-size: 1.2rem;
}

.carousel-1 .ch,
.carousel-hp .ch {
    position: absolute;
    bottom: 0;
    left: 0%;
    text-align: center;
    right: 0%;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 5px 16px #010101c7;
    background: linear-gradient(0deg, #00000085, transparent 90%);
    padding-bottom: 2.5rem;
    padding-top: 2rem;
    margin-bottom: 0;
    z-index: 1;
}

/* RADIO INPUTS */
.carousel-1 input,
.carousel-hp input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: -10;
}

/* NAVIGACE */
.carousel-1 label,
.carousel-hp label {
    flex: 1 1 0;
    min-width: 0;
    height: 10px;
    margin-right: 4px;
    border-radius: 20px;

    background: hsla(0 0% 90% / .3);
    cursor: pointer;

    position: relative;
    z-index: 100;
}

/* ZAJIŠTĚNÍ VIDITELNOSTI LABELŮ */
.carousel-1 .c > input + label,
.carousel-hp .c > input + label {
    z-index: 100;
    position: relative;
}

.carousel-1 label:last-of-type,
.carousel-hp label:last-of-type {
    margin-right: 0;
}

/* AKTIVNÍ NAVIGACE */
.carousel-1 input:checked + label,
.carousel-hp input:checked + label {
    background: #efbe71;
}

/* ANIMACE SLIDŮ */
.carousel-1 input:not(:checked) + label + .ci,
.carousel-hp input:not(:checked) + label + .ci {
    transform: translateX(-100%);
    opacity: 0;
}

.carousel-1 input:checked + label + .ci ~ .ci,
.carousel-hp input:checked + label + .ci ~ .ci {
    transform: translateX(100%);
}

.carousel-1 input:not(:checked) + label + .ci,
.carousel-hp input:not(:checked) + label + .ci {
    transition: 0s;
}

/* MOBILNÍ NAVIGACE */
@media only screen and (max-width: 499px) {
    .carousel-1 label {
        height: 8px;
    }
}
