
.loader {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    vertical-align: middle;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0;
    display: none;
}

.loader, .toploader {
    text-align: center;
    z-index: 10000;
}

.loader .loader-outter {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-animation: 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite loader-1-outter;
    animation: 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite loader-1-outter;
}

.loader {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    vertical-align: middle;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0;
    display: none;
}
.lightbox {
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 1);
    position: fixed;

}
.navi {
    margin-top: auto;
}


.hide_svg,
.lightbox .navi{
    display: none;
}


@media (min-width: 960px) {
    .lightbox {

        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .lightbox .navi,
    .hide_svg {
        display: block;
    }
}



.img_container:first-child, .lightbox {
    z-index: 100;
}

.single .content_inner p.excerpt2 {
    margin-bottom: 14px !important;
}
.relative_position {
    position: relative;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

}
@media (max-width: 960px) {
    .relative_position {
        overflow: auto;
    }

}
@media (min-width: 960px) {
    .content_of_overlay {
        max-width: 90vw;
        max-height: 90vh;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}


.image_cancel, .image_link, .image_link_front {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-transition: opacity 0.4s ease-in;
    -o-transition: opacity 0.4s ease-in;
    transition: opacity 0.4s ease-in;
    will-change: opacity;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-decoration: none;
    z-index: 1000000;
    opacity: 1;
}


#next_butt {
    transform: rotate(180deg);
}
.image_link {

}

 .image_link.next {

}


@media (min-width: 960px) {
    .next {
        right: -3.5vw;
    }
}

@media (min-width: 960px) {
    .previous {
        left: -3.5vw;
    }
}

@media (max-width: 960px) {
    .lightbox .light_item{
        max-width: 313px;
    }
    .light_item {
        margin: 0 auto 30px auto;
    }
}

.overlay_image_content {
    margin: 20px 0;
}

.single_bottom {
    border-top: 0.75px solid #000000;

}
@media (max-width: 719px) {
    .single_bottom {
        margin: auto;
        max-width: 313px;
    }

}
@media (max-width: 960px) {
    .overlay_image_content {
        padding: 0 20px;
        margin:  40px auto;
    }

    .lightbox {
        justify-content: center;
    }
    .light_item {
        margin-bottom: 40px;
    }




}

.lightactive {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-animation-name: scrolling;
    animation-name: scrolling;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
}



.scrolling {
    overflow: auto;
    padding: 0 10px;
    padding-top: 30px;
}


@media (min-width: 960px) {
    .content_of_overlay .close {
        right: -3.5vw;
        top: -20px;
    }



}

.image_cancel {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.navi a, .kolik {
    border: 0.75px solid white;
    padding: 6px 8px;
    border-radius: 67.5px;
    color: white;
    margin-right: 6px;
}

.lightbox  p {
    color: white;
}

.lightbox  .relative_position {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    padding: 20px 20px 30px;
}



.lightbox  p.small_popisek {
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.lightbox  p.text {
    font-size: 15px;
    line-height: 23px;
    font-weight: 400;
    margin-bottom: 23px;
    margin-top: 10px;
}

.lightbox img {

    margin: auto;
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 70vh;



}

@media  (max-width: 960px) {

    .scrolling {

        padding-bottom: 40px;
    }
}
@media  (min-width: 960px) {

    .lightbox img {
        height: 70vh;
        object-fit: contain;
    }
}
.overlay_image_content {
    display: inline-block;
    max-width: 100%;
    max-height: calc(70vh);
}

.lightbox p.text {
    max-width: 680px;
}

.lightactive {
    z-index: 10000000;
}

