main .headTxt {
    width: 80%;
    margin: auto;
    border-bottom: 3px solid black;
}
main .content>div:not(:first-child) .headTxt {
    margin-top: 80px;
}
main .headTxt h2 {
    font-family: headers;
    text-align: center;
    font-size: 40px;
}
main .fotogalerie {
    margin-top: 20px;
}
main .fotogalerie>div:first-child {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
main .horniLista {
    width: 100%;
    height: 180px;
    position: relative;
    background: rgba(0,0,0,0.15);
    padding: 0 24px;
}
main .inHorniLista {
    width: 100%;
    height: 100%;
    padding: 5px 0;
    overflow: hidden;
    position: relative;
}
main .inHorniLista>div:first-child {
    width: 100%;
    height: 170px;
    white-space: nowrap;
}
main .horniLista .leftFotg {
    width: 100px;
    height: 180px;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.25s;
    cursor: pointer;
}
main .horniLista .rightFotg {
    width: 100px;
    height: 180px;
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.25s;
    cursor: pointer;
}
main .horniLista:hover .leftFotg {
    opacity: 1;
}
main .horniLista:hover .rightFotg {
    opacity: 1;
}
main .horniLista .rightFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;

}
main .horniLista .rightFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-75%,-50%);
    top: 50%;
    left: 50%;
}
main .horniLista .rightFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(-65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;

}
main .horniLista .leftFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;

}
main .horniLista .leftFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-25%,-50%);
    top: 50%;
    left: 50%;
}
main .horniLista .leftFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(-65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;

}
main .horniLista img {
    padding: 0 12px;
    height: 100%;
    width: auto;
    cursor: pointer;
}
main .horniLista img:first-child {
    margin-left: 0;
}
main .horniLista img:last-child {
    margin-right: 0;
}
#ovladaci_panel {
    position: fixed;
    bottom: 10px;
    right: 10px;
    height: 100px;
    width: 300px;
    background: rgba(0,0,0,0.5);
    z-index: 50;
}
main .nahled {
    height: 450px;
    width: 100%;
    background: #1d1d1d;
    border-top: 5px solid #1d1d1d;
    border-bottom: 5px solid #1d1d1d;
    position: relative;
    overflow: hidden;
}
main .nahled img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 100%;
    cursor: zoom-in;
}
main .nahled .leftFotg {
    width: 100px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.25s;
    cursor: pointer;
}
main .nahled .rightFotg {
    width: 100px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.25s;
    cursor: pointer;
}
main .nahled:hover .leftFotg {
    opacity: 1;
}
main .nahled:hover .rightFotg {
    opacity: 1;
}
main .nahled .rightFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;
}
main .nahled .rightFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-75%,-50%);
    top: 50%;
    left: 50%;
}
main .nahled .rightFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(-65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;

}
main .nahled .leftFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;

}
main .nahled .leftFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-25%,-50%);
    top: 50%;
    left: 50%;
}
main .nahled .leftFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(-65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;
}
main .inHorniLista>div>div {
    height: 170px;
    display: inline-block;
}
/*Zoomed image definition*/
#ZoomedImgs {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    background: rgba(0, 0, 0, 0.9);
    display: none;
}
#ZoomedImgs>div.photo {
    position: absolute;
    height: 100%;
    width: 100%;
}
#ZoomedImgs img {
    transform: translate(9%,9%);
    object-fit: contain;
    width: 85%;
    height: 85%;
}
#ZoomInClose {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    height: 50px;
    width: 50px;
    text-align: center;
    cursor: pointer;
}
#ZoomInClose i {
    color: white;
    font-size: 50px;
}
#ZoomedImgs .leftFotg {
    width: 100px;
    height: 100%;
    position: absolute;
    z-index: 1;
    background: rgba(0,0,0,0.25);
    top: 0;
    left: 0;
    opacity: 1;
    transition: 0.25s;
    cursor: pointer;
}
#ZoomedImgs .rightFotg {
    width: 100px;
    height: 100%;
    position: absolute;
    background: rgba(0,0,0,0.25);
    z-index: 1;
    top: 0;
    right: 0;
    opacity: 1;
    transition: 0.25s;
    cursor: pointer;
}
#ZoomedImgs .rightFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;
}
#ZoomedImgs .rightFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-75%,-50%);
    top: 50%;
    left: 50%;
}
#ZoomedImgs .rightFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: right;
    transform: rotate(-65deg) translateX(2px);
    border-radius: 3px;
    position: absolute;

}
#ZoomedImgs .leftFotg div::before {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;

}
#ZoomedImgs .leftFotg div {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    position: absolute;
    transform: translate(-25%,-50%);
    top: 50%;
    left: 50%;
}
#ZoomedImgs .leftFotg div::after {
    content: "";
    width: 80px;
    height: 6px;
    background: white;
    transform-origin: left;
    transform: rotate(-65deg) translateX(-2px);
    border-radius: 3px;
    position: absolute;
}
/*******************/
/* Responsive part */
/*******************/
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    main .nahled {
        height: 375px;
    }
}
@media only screen and (min-width: 651px) and (max-width: 768px) {
    main .nahled,
    main .horniLista .leftFotg,
    main .horniLista .rightFotg {
        display: none;
    }
    main .fotogalerie>div:first-child {
        height: auto;
        overflow: auto;
    }
    main .horniLista {
        height: auto;
        padding: 0 9px;
    }
    main .inHorniLista {
        height: auto;
    }
    main .inHorniLista>div:first-child {
        height: auto;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    main .horniLista img {
        padding: 5px 0;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        object-fit: cover;
    }
    main .inHorniLista>div>div {
        position: relative;
        width: 46%;
        overflow: hidden;
        min-width: 170px;
        margin: 0 1%;
        height: 250px;
        display: inline-block;
    }
    main .headTxt h2 {
        font-size: 35px;
    }
}
@media only screen and (min-width: 500px) and (max-width: 650px) {
    main .headTxt h2 {
        font-size: 27px;
    }
}
@media only screen and (min-width: 451px) and (max-width: 499px) {
    main .headTxt h2 {
        font-size: 28px;
    }
}
@media only screen and (min-width: 451px) and (max-width: 650px) {
    main .nahled,
    main .horniLista .leftFotg,
    main .horniLista .rightFotg {
        display: none;
    }
    main .fotogalerie>div:first-child {
        height: auto;
        overflow: auto;
    }
    main .horniLista {
        height: auto;
        padding: 0 9px;
    }
    main .inHorniLista {
        height: auto;
    }
    main .inHorniLista>div:first-child {
        height: auto;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    main .horniLista img {
        padding: 5px 0;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        object-fit: cover;
    }
    main .inHorniLista>div>div {
        position: relative;
        width: 46%;
        overflow: hidden;
        min-width: 170px;
        margin: 0 1%;
        height: 200px;
        display: inline-block;
    }
}
@media only screen and (min-width: 320px) and (max-width: 450px) {
    main .nahled,
    main .horniLista .leftFotg,
    main .horniLista .rightFotg {
        display: none;
    }
    main .fotogalerie>div:first-child {
        height: auto;
        overflow: auto;
    }
    main .horniLista {
        height: auto;
        padding: 0 9px;
    }
    main .inHorniLista {
        height: auto;
    }
    main .inHorniLista>div:first-child {
        height: auto;
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    main .horniLista img {
        padding: 5px 0;
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
        object-fit: cover;
    }
    main .inHorniLista>div>div {
        position: relative;
        width: 46%;
        overflow: hidden;
        margin: 0 5px;
        display: inline-block;
    }
}
@media only screen and (min-width: 360px) and (max-width: 450px) {
    main .headTxt {
        width: 90%;
    }
    main .headTxt h2 {
        font-size: 25px;
    }
}
@media only screen and (min-width: 320px) and (max-width: 359px) {
    main .headTxt {
        width: 97%;
    }
    main .headTxt h2 {
        font-size: 24px;
    }
}
@media only screen and (min-width: 420px) and (max-width: 450px) {
    main .inHorniLista>div>div {
        height: 200px;
    }
}
@media only screen and (min-width: 350px) and (max-width: 419px) {
    main .inHorniLista>div>div {
        height: 190px;
    }
}
@media only screen and (min-width: 320px) and (max-width: 349px) {
    main .inHorniLista>div>div {
        height: 160px;
    }
}
@media only screen and (min-width: 451px) and (max-width: 650px) {
    #ZoomedImgs .leftFotg {
        width: 65px;
    }
    #ZoomedImgs .rightFotg {
        width: 65px;        
    }
}
@media only screen and (min-width: 320px) and (max-width: 450px) {
    #ZoomedImgs .leftFotg {
        width: 65px;
    }
    #ZoomedImgs .rightFotg {
        width: 65px;        
    }
    #ZoomedImgs .rightFotg div::before {
        width: 60px;
    }
    #ZoomedImgs .rightFotg div {
        width: 60px;
    }
    #ZoomedImgs .rightFotg div::after {
        width: 60px;
    }
    #ZoomedImgs .leftFotg div::before {
        width: 60px;    
    }
    #ZoomedImgs .leftFotg div {
        width: 60px;
    }
    #ZoomedImgs .leftFotg div::after {
        width: 60px;
    }
}