/* @import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');


html, body {
    margin: 0;
    padding: 0;
}

body, p, a, button, input, textarea, li, ul, div, span {
    /* font-family: 'Open Sans', sans-serif; */
    font-family: 'Noto Serif', serif;
}

html {
    margin: auto;
}

html, body, header {
    max-width: 790px;
}

header {
    text-align: center;
    margin-top: 80px;
}

header h1 {
    font-size: 50px;
    margin: 20px 0 5px;
}

header h3 {
    font-size: 34px;
    margin: 0 0 20px;
}

header img {
    width: 100%;
}

header div {
    width: 100%;
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
}

main {
    position: relative;
    width: 730px;
    min-height: 50px;
    margin: 0 auto;
    border-left: solid 6px #ccc;
    padding-left: 20px;
    opacity: 0;
    transition: opacity 1s ease;
}

main article.row {
    margin: 10px 0 100px;
}

main .gallery-block .art-piece {
    width: 10000px;
    height: 730px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /* transform-origin: center right; */
    transition: transform 1s;
}

main .gallery-block .art-piece .front, main .gallery-block .art-piece .back,
main .gallery-block .art-piece .signatura,
main .gallery-block .art-piece .panorama,
main .gallery-block .art-piece .nahled1,
main .gallery-block .art-piece .nahled2 {
    width: 730px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    display: inline-block;
}

/* main .gallery-block .art-piece .front {
    backface-visibility: hidden;
    -webkit-perspective: 0;
    -webkit-backface-visibility: hidden;
    background-position: left;
    transition: box-shadow 1s ease;
}

main .gallery-block .art-piece .back {
    transform: rotateY(180deg);
    background-position: right;
    -webkit-perspective: 0;
    -webkit-backface-visibility: hidden;
} */

main .gallery-block .art-piece.flipped {
    transform: translateX(-100%) rotateY(-180deg);
}

main .gallery-year {
    font-size: 54px;
    margin: 10px 30px 10px -90px;
    background-color: #fff;
    border-radius: 0;
    height: 90px;
    line-height: 76px;
    color: #5d5d5d;
    display: inline-block;
    font-weight: bold;
    padding-right: 20px;
}

main .gallery-year::before {
    border-bottom: solid 6px #ccc;
    display: block;
    width: 60%;
    position: absolute;
    height: 0;
    content: "";
    margin-top: -6px;
    margin-left: 68px;
    z-index: -1;
}

main .gallery-block {
    display: inline-block;
    width: 100%;
    font-size: 24px;
}

main .gallery-block h2 {
    margin-bottom: 5px;
}

main .gallery-block .price {
    font-size: 36px;
    margin-bottom: 60px;
}

main .gallery-block .full-resolution, main .gallery-block .ask, main .gallery-block .real-scale, main .gallery-block .flip-art {
    position: absolute;
    right: 0;
    margin-top: -100px;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    width: 180px;
    border: solid 1px #ccc;
    border-radius: 20px;
    padding: 6px 10px;
    text-align: center;
}

main .gallery-block .full-resolution {
    font-size: 22px;
    margin-top: -520px;
    margin-right: -150px;
    display: none;
}

main .gallery-block .real-scale {
    margin-top: -440px;
    margin-right: -150px;
    display: none;
}

main .gallery-block .flip-art {
    margin-top: -352px;
    margin-right: -150px;
    display: none;
}

main .gallery-block .ask {
    margin-top: -55px;
    font-weight: bold;
}

main .gallery-block .ask a {
    color: #000;
    width: 100%;
    display: block;
}

main .gallery-block .ask a:nth-child(2) {
    position: absolute;
    left: -210px;
    top: 0;
    background-image: url(https://maxsvabinsky.cz/chat_on_whatsapp.png);
    color: rgba(0,0,0,0);
    background-size: contain;
    height: 44px;
    background-position: center;
    background-repeat: no-repeat;
}

main .art-piece-front-img-src, main .art-piece-back-img-src, main .art-piece-signatura-img-src, main .art-piece-panorama-img-src, main .art-piece-nahled1-img-src, main .art-piece-nahled2-img-src {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

main .art-piece .preloader {
    position: absolute;
    width: 100%;
    height: 55%;
    text-align: center;
    background-color: #fff;
    padding-top: 45%;
    overflow: hidden;
}

main .art-piece .preloader.back-loaded.front-loaded {
    height: 0;
    padding-top: 0;
    opacity: 0.8;
    transition: all 1.5s ease;
}

main .gallery-block .text {
    position: relative;
    overflow: hidden;
    height: 210px;
    padding-top: 30px;
    transition: height 1s ease;
}

main .gallery-block .text .show-text {
    position: absolute;
    right: 0;
    bottom: 0px;
    border: solid 1px #ccc;
    background-color: #fff;
    width: 260px;
    line-height: 56px;
    font-size: 25px;
    border-radius: 40px;
    padding: 6px 10px;
    cursor: pointer;
    opacity: 0.8;
    box-shadow: -12px 0px 0px #fff;
}

button {
    outline: none;
}

footer {
    margin-top: 90px;
}

footer .facebook, footer .powered-by, footer .email-sub {
    display: inline-block;
    width: 30%;
    text-align: center;
    margin: 0;
    vertical-align: top;
}

footer .email-sub {
    width: 38%;
    opacity: 0;
    height: 1px;
    overflow: hidden;
}

footer .email-sub fieldset {
    border: none;
}

footer .email-sub ul {
    list-style: none;
}

footer .facebook .fb-icon {
    background-image: url(https://www.facebook.com/images/fb_icon_325x325.png);
    width: 80px;
    height: 80px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

footer .powered-by .posam {
    background-image: url(logo_posam.png);
    width: 190px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

footer .copyright {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0 50px;
    font-size: 20px;
}

nav.next-authors {
    position: absolute;
    top: -70px;
    width: 500px;
    left: 50%;
    margin-left: -280px;
    border: solid 1px #ccc;
    background-color: #fff;
    text-align: center;
    border-radius: 100px;
    height: 60px;
    opacity: 0.6;
    overflow: hidden;
    z-index: 9;
    transition: height 1s ease, opacity 0.4s ease, bottom 1s ease;
}

nav.next-authors h3 {
    display: inline-block;
    width: 100%;
    font-size: 33px;
    padding: 6px 0 10px;
    margin: 0;
    cursor: pointer;
}

nav.next-authors div {
    overflow: scroll;
    width: 520px;
    height: 100%;
}

nav.next-authors span {
    display: block;
    height: 100px;
}

nav.next-authors a {
    display: block;
    font-size: 43px;
    text-decoration: none;
    color: #000;
    margin: 15px 0;
}

body header .records {
    height: auto;
}

body header .records.filled {
    height: auto;
    margin: 40px 0;
    text-align: justify;
    padding: 0 40px;
    width: calc(100% - 80px);
}

.filters {
    position: absolute;
    top: -70px;
    width: 760px;
    height: 50px;
    margin-left: -30px;
}

.filters input {
    width: 160px;
    margin-top: 5px;
    border-radius: 20px;
    border: solid 1px #ccc;
    padding: 10px 30px;
    height: 20px;
    font-size: 22px;
    outline: none;
}

.filters span {
    font-size: 22px;
    margin-left: 30px;
}

.filters div {
    position: absolute;
    top: 5px;
    right: 0;
    border: solid 1px #ccc;
    border-radius: 40px;
    width: 130px;
    height: 50px;
    font-size: 26px;
    text-align: center;
    cursor: pointer;
    line-height: 45px;
}

.filters div.price {
    right: 0px;
    top: 50px;
}

.filters div.size {
    right: 0;
    top: 110px;
    line-height: 48px;
}

.filters div.year {
    right: 0;
    top: 170px;
}

.filters div.selected {
    background-color: #eee;
    border-color: #33aa00;
}

.about-us, .about-contact {
    position: absolute;
    top: 0px;
    left: 0;
    border: solid 1px #ccc;
    border-radius: 40px;
    width: 130px;
    height: 60px;
    font-size: 26px;
    text-align: center;
    cursor: pointer;
    line-height: 45px;
    background-color: #fff;
}

.about-contact {
    left: auto;
    right: -30px;
}

.filter-popup-about-us, .filter-popup-about-contact, .filter-popup-real-scale {
    position: absolute;
    top: 75px;
    left: 0;
    height: auto;
    width: 100%;
    background-color: #fff;
    display: none;
    z-index: 99;
    border-bottom: 10px #e6e6e6 solid;
    border-left: solid 1px #e6e6e6;
    border-right: solid 1px #e6e6e6;
    border-top: solid 3px #ccc;
}

.filter-popup-about-us.opened, .filter-popup-about-contact.opened, .filter-popup-real-scale.opened {
    display: block;
}

.filter-popup-about-us.opened, .filter-popup-about-contact.opened {
    width: 100%;
    left: 0;
    position: fixed;
    top: 0;
    overflow-y: scroll;
    height: 100vh;
}

.filter-popup-about-us.opened h2, .filter-popup-about-contact.opened h2 {
    cursor: pointer;
}

.filter-popup-real-scale {
    height: 100%;
    top: 0;
}

.filter-popup-about-us img, .filter-popup-about-contact img {
    width: 50%;
    max-height: 400px;
    object-fit: contain;
}

.filter-popup-real-scale .real-scale-close {
    position: absolute;
    top: 0;
    right: 0;
    border: solid 1px #ccc;
    border-radius: 40px;
    background-color: #fff;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
}

.filters div.sorting-filter {
    position: absolute;
    right: -200px;
    top: 55px;
    border: none;
    text-align: left;
}

.goog-te-gadget {
    position: fixed;
    top: 0;
    right: 0;
}

main .gallery-block .art-train {
    overflow: hidden;
}

main .gallery-block .art-controls button {
    height: 35px;
    width: 35px;
    border: none;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 15px;
}

main .gallery-block .art-controls button.art-control-like {
    background-image: url(https://maxsvabinsky.cz/heart.svg);
    display: none;
}

main .gallery-block .art-controls button.art-control-fullscreen {
    background-image: url(https://maxsvabinsky.cz/dimensions.svg);
}

main .gallery-block .art-controls button.art-control-share {
    background-image: url(https://maxsvabinsky.cz/mail.svg);
    display: none;
}

main .gallery-block .art-controls button.art-control-prev {
    background-image: url(https://maxsvabinsky.cz/arrow.svg);
    transform: rotate(180deg);
    margin-left: 60px;
}

main .gallery-block .art-controls button.art-control-next {
    background-image: url(https://maxsvabinsky.cz/arrow.svg);
}

main .gallery-block .art-controls .art-control-bubbles {
    display: inline-block;
}

main .gallery-block .art-controls .art-control-bubbles span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #5d5d5d;
    border-radius: 20px;
    margin: 0 5px;
    z-index: 9;
    vertical-align: 12px;
}

main .gallery-block .art-shadow {
    position: absolute;
    width: 570px;
    height: 730px;
    margin-top: -730px;
    z-index: 9;
    opacity: 0;
    box-shadow: 0 0 80px 20px #adadad;
}

main .editRow {
    min-height: 720px;
    border: dashed 1px #ccc;
    width: 820px;
    margin-left: -90px;
    background: rgba(255,255,255,0.5);
}

main .editRow label {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

main .editRow .eR-mainLink, main .editRow .eR-mainImage {
    display: block;
    width: 100%;
    border: none;
    border-bottom: solid 1px #ccc;
    background-color: #efefef;
    text-align: center;
    padding: 10px 0;
    font-size: 26px;
}

main .editRow .eR-mainImage {
    cursor: pointer;
}

main .editRow .eR-year, main .editRow .eR-month, main .editRow .eR-day {
    border: none;
    border-bottom: solid 1px #ccc;
    font-family: 'Open Sans', sans-serif;
    color: #5d5d5d;
    font-weight: bold;
    font-size: 54px;
    width: 160px;
}

main .editRow .eR-image {
    display: inline-block;
    vertical-align: top;
    width: 730px;
    border: none;
    cursor: pointer;
    height: 730px;
    margin: 0;
    background-color: #eee;
    font-size: 60px;
}

main .editRow .eR-name {
    display: block;
    margin: 50px 0 0 90px;
    border: none;
    resize: none;
    border-bottom: 1px solid #ccc;
    padding: 0;
    font-weight: bold;
    font-size: 35px;
    line-height: 35px;
    width: 730px;
}

main .editRow .eR-price {
    border: none;
    border-bottom: solid 1px #ccc;
    margin-left: 90px;
    width: 200px;
    font-size: 36px;
}

main .editRow .eR-description {
    display: block;
    width: 730px;
    border: none;
    margin: 30px 0 0 90px;
    resize: none;
    font-size: 24px;
    min-height: 120px;
    padding: 0;
}

main .editRow .eR-height, main .editRow .eR-width, main .editRow .eR-status {
    border: none;
    border-bottom: solid 1px #ccc;
    margin-left: 90px;
    width: 280px;
    font-size: 26px;
    display: block;
    margin-top: 10px;
}

main .editRow .eR-shadow {
    margin: 20px 10px 0 90px;
}

main .editRow .eR-image-description {
    margin: 0 0 0 90px;
    width: 710px;
    padding: 5px 10px;
    border: none;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    position: relative;
    top: -45px;
    resize: none;
}

main .editRow .eR-train {
    overflow: hidden;
    height: 730px;
    width: 730px;
    margin-left: 90px;
}

main .editRow .eR-train .eR-image-train {
    height: 730px;
    width: 10000px;
    transform: translate(0, 0);
    transition: transform 0.6s ease;
}

main .editRow .eR-train .eR-image-train div {
    width: 730px;
    height: 730px;
    margin: 0;
    display: inline-block;
    vertical-align: top;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

main .editRow .eR-photo-upload {
    display: none;
}

main .editRow .eR-image-next, main .editRow .eR-image-prev {
    height: 35px;
    width: 35px;
    border: none;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: -35px;
    background-image: url(https://maxsvabinsky.cz/arrow.svg);
}

main .editRow .eR-image-prev {
    transform: rotate(180deg);
    margin-left: 100px;
}

main .editRow .eR-image-count {
    display: inline-block;
}

main .editRow .eR-image-count span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #5d5d5d;
    border-radius: 20px;
    margin: 0 5px;
    z-index: 9;
    vertical-align: 12px;
}

main .editRow .eR-save {
    margin-left: 670px;
    font-size: 20px;
    border: none;
    border-radius: 20px;
    padding: 5px 20px;
    margin-bottom: 10px;
    background-color: #c8ffca;
    cursor: pointer;
}

div.all-images-gallery {
    overflow: hidden;
    height: 0;
}

@media only screen and (max-width: 1200px) {
    main .gallery-block .text {
        font-size: 36px;
    }
}
