html {
    padding: 0;
    margin: 0;
}

body {
    font-family: proxima-nova;
    line-height: 100%;
    padding: 0;
    margin: 0;
    font-size: 10px;
    background-color: #FAFAFA;
}

main {
    position: relative;
    overflow-x: hidden;
    width: auto;
    height: auto;
    background-color: #FAFAFA;
    z-index: 0;
}

.container.foot_foto {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.container.foot_foto img {
    max-width: 99.2vw;
    width: 100vw;
}

.container.school {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20%;
    padding-right: 20%;
    min-height: 640px;
    background-image: url(img/101A0089aBW.jpg);
    background-position: -10% -13px;
    background-size: contain;
    background-repeat: no-repeat;
    box-sizing: border-box;
    width: 100vw;
}

.container.exhibition {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20%;
    padding-right: 20%;
    padding-bottom: 2em;
    min-height: 120vh;
    background-image: url(img/lucerna.jpg);
    background-position: 63vw 5em;
    background-size: 38%;
    background-repeat: no-repeat;
    box-sizing: border-box;
    width: 100vw;
}

.col-8.exhibition_list {
    padding-top: 1em;
    padding-left: 2em;
}

.exhibition_list h3 {
    margin-bottom: -0.8em;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 4px;
}

.exhibition_list strong {
    font-weight: 300;
}

.exhibition_list p {
    margin-bottom: .3em;
    line-height: 1.28em;
}

header h1, .h2, h2, h3 {
    
    font-weight: normal;
    font-size: 36px;
    text-align: center;
    color: #FF1E00;
    letter-spacing: 11px;
    text-transform: uppercase;
    line-height: 1.3em;
}

h3 {
    font-size: 2em;
    text-align: left;
}

h2 {
    font-size: 32px;
}

.h2 {
    font-size: 2rem;
    font-weight: 500;
    display: block;
    text-align: left;
    padding: 2em 1em 1em 0;
}

h2 span {
    font-size: .5em;
}

header h1 {
    position: absolute;
    top: calc(30vw / 2);
    right: 19vw;
    text-align: left;
}

img.iroha_kali {
    margin-left: 7em;
    margin-bottom: 16em;
    margin-top: 5em;
}

header h1 strong {
    font-size: 48px;
    line-height: 1.6em;
    letter-spacing: 21px;
    font-weight: normal;
}

.hidden {
    display: none;
}

header {
    overflow: hidden;
}

header video {
    position: relative;
    height: auto;
    width: 100vw;
    z-index: -1;
    top: 0;
    left: 0;
    max-width: 100%;
}

.portraits {
    margin-left: 3rem;
}

.portraits .col-6 {
    min-width: 200px;
}

figure {
    max-width: 100%;
    display: inline-block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

figure figcaption {
    font-size: 1.8em;
    font-weight: 200;
    text-align: center;
    margin-top: 1em;
}

figure img {
    display: block;
}

.spacer {
    padding: 5em;
}

.spacer.height10 {
    height: 10em;
}

.col-6.newline {
    display: block;
    width: 100%;
}

.container.interspace {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20%;
    padding-right: 20%;
    min-height: 120vh;
    box-sizing: border-box;
    width: 100vw;
}

.continue {
    padding-top: 5em;
    max-width: 28rem;
    width: 120%;
    transform: translateX(-27%);
}

.interspace {
    background-image: url(img/meziprostor.png);
    background-position: -10% -13px;
    background-size: 50%;
    background-repeat: no-repeat;
}

.col-6.medals {
    margin-top: 15em;
    margin-bottom: 15em;
}

figure.drops {
    width: 100%;
    display: block;
    text-align: right;
}

figure.drops img {
    display: inline-block;
}

p {
    font-size: 1.325rem;
    line-height: 1.32em;
}

p strong {
    font-weight: 400;
}

footer {
    text-align: right;
    background-color: #000;
    background-image: url(img/pasparta.png);
    width: 98.9vw;
    box-sizing: border-box;
}

.contact {
    padding-left: 3em;
    padding-top: 1rem;
}

footer.contact {
    padding: 2em;
}

.contact a.email {
    color: #000;
    font-size: 1.5em;
    text-decoration: none;
    transform: translateY(-12px);
    position: relative;
    display: inline-block;
    margin-right: 2em;
}

footer.contact a.email {
    color: #fff;
}

.contact img {
    margin: 0 2em;
}

.contact a.social {
    outline: none;
    text-decoration: none;
}
.dhide {
    display: none;
}

figure.w100 {
    width: 100%;
}

.phototeachers {
    margin-top: 19em;
    width: 100%;
    height: auto;
}

img.basen {
    transform: translateY(30%);
}

/*gellery*/

.container.gallery {
    max-width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 20em;
    box-sizing: border-box;
    width: 100vw;
}

.gallery .row [class^=col] {
    margin: 0;
    padding: 0;
}

.container.gallery .col-12 {
    width: 100%;
}

.container.gallery img {
    max-width: 100%;
}

.container.gallery img.fudeno_oto {
    height: 578px;
    width: initial;
    max-width: max-content;
}

.container.gallery img.fudeno_oto.s {
    height: 634px;
}

.translate_right9 {
    transform: translateX(9%);
}

.translate_right20_5 {
    transform: translateX(20.5%);
}

@media only screen and (min-width: 45em) {
    .col-4 {
        width: 33.3%;
    }
}

/* @media queries */

@media screen and (max-width: 1315px) {
    body, html {
        height: 100%;
    }
    footer {
        padding: 2em;
        text-align: right;
        background-color: #000;
        bottom: 0;
        width: auto;
    }
    header video {
        width: 100vw;
        z-index: -1;
        top: 0;
        right: 0;
        left: auto;
        object-fit: cover;
    }
}

@media screen and (min-width: 1px) and (max-width: 500px) {
    .continue {
        width: 100%;
    }
    .mobile .dhide {
        display: block;
    }
    .mobile .contact {
        padding-left: 1em;
    }
    .mobile .contact img {
        margin: 0 1em;
    }
    .mobile .mhide {
        display: none;
    }
    html, body.mobile {
        height: 100%;
    }
    body.mobile {
        height: 100%;
        position: relative;
        width: 100vw;
        transform: none;
    }
    .mobile header {
        height: 100%;
        position: relative;
        overflow-x: hidden;
    }
    .mobile header video {
        height: 100%;
        width: auto;
        position: absolute;
        left: 0;
        right: auto;
        max-width: 1000%;
        transform: translateX(-19%);
    }
    header h1 {
        left: auto;
        top: 41vh;
        position: relative;
        left: auto;
        font-size: 20px;
        padding-left: 0;
        text-align: center;
        width: 100%;
        right: auto;
    }
    .mobile .spacer.height10 {
        height: 5em;
    }
    .mobile .container.interspace,
    .mobile .container.exhibition {
        width: 100vw;
    }

    .mobile .continue {
        max-width: auto;
        transform: none;
        padding-left: .5em;
        padding-right: .5em;
    } 

    .mobile .container.school {
        max-width: 100%;
        min-height: 165px;
        background-position: 0% 0px;
        background-size: cover;
        width: 100vw;
    }

    .mobile .container.foot_foto img {
        max-width: 100vw;
        width: 100vw;
    }
/*from imac*/
    .mobile .continue {
        transform: none;
    }
    .mobile .col-6.medals {
        margin-top: 5em;
        margin-bottom: 9em;
    }
    .mobile .container.school {
        max-width: 100%;
        min-height: 184px;
        background-position: -10% -13px;
        background-size: contain;
        width: 100vw;
    }
    .mobile .container.interspace {
        background-position: top left;
        background-size: 80%;
        padding-top: 15em;
        margin-top: 5em;
        width: 100vw;
        padding-left: 2em;
        padding-right: 2em;
    }
    .mobile .h2 {
        text-align: center;
        padding-right: 0;
    }
    .mobile .container.exhibition {
        padding-left: 4em;
    }
    .mobile img.basen {
        width: 100%;
        transform: translateY(19%);
        margin-bottom: 27%;
    }

    .mobile .phototeachers {
        width: auto;
        transform: translateX(-22%);
    }

    /* mobile animation */
    .slide {
      animation: slideRight 1s forwards;
    }
    @keyframes slideRight {
      from {
        transform: translateX(-19%);
      }
      to {
        transform: translateX(-44%);
      }
    }
    .slide_back {
      animation: slideLeft 0s forwards;
    }
    @keyframes slideLeft {
      from {
        transform: translateX(-44%);
      }
      to {
        transform: translateX(-19%);
      }
    }
}

@media screen and (max-width: 703px) {
    header h1 {
        left: auto;
        top: 41vh;
        left: auto;
        font-size: 20px;
        letter-spacing: 10px;
        padding-left: 0;
        width: 100%;
        text-align: center;
        right: auto;
    }

    header h1 strong {
        font-size: 28px;
        letter-spacing: 15px;
    }
}
