@font-face {
    font-family: 'Acta-Medium';
    src: url(../fonts/acta-medium.eot);
    src: url(../fonts/acta-medium.eot?#iefix) format('embedded-opentype'),
         url(../fonts/acta-medium.woff2) format('woff2'),
         url(../fonts/acta-medium.woff) format('woff'),
         url(../fonts/acta-medium.ttf) format('truetype');
}

@font-face {
    font-family: 'Acta-Bold';
    src: url(../fonts/acta-bold.eot);
    src: url(../fonts/acta-bold.eot?#iefix) format('embedded-opentype'),
    url(../fonts/acta-bold.woff2) format('woff2'),
    url(../fonts/acta-bold.woff) format('woff'),
    url(../fonts/acta-bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Acta-BlackItalic';
    src: url(../fonts/acta-black-italic.eot);
    src: url(../fonts/acta-black-italic.eot?#iefix) format('embedded-opentype'),
         url(../fonts/acta-black-italic.woff2) format('woff2'),
         url(../fonts/acta-black-italic.woff) format('woff'),
         url(../fonts/acta-black-italic.ttf) format('truetype');}

body {
    padding: 10px;
    margin: 0;
    font-family: Acta-Medium, Times New Roman, serif;
    font-size: 18px;
    font-variant-ligatures: none;
}

div.page {
    position: relative;
}

h1 {
    font-size: 0;
    padding: 0 10px;
    margin: 30px 0 10px 0;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

h1 span {
    display: block;
    width: 100%;
    height: 0;
    background: url(../images/logo.svg);
    padding-top: 13.0208333%;
    background-size: 100%;
}

/*===== Menu ================================================================*/

nav.menu > ul {
    position: absolute;
    padding: 20px;
    margin: 10px 0 0 10px;
    list-style-type: none;
    background: #79b9bd;
    left: -300px;
    z-index: 1;
    opacity: 0;
    -webkit-transition: left 0.3s, opacity 0.3s;
    -moz-transition: left 0.3s, opacity 0.3s;
    transition: left 0.3s, opacity 0.3s;
}

nav.menu ul ul {
    margin: 10px 0 0 40px;
    padding: 0;
    list-style-type: none;
}

nav.menu.visible ul {
    left: 0;
    opacity: 1;
}

nav.menu li {
    margin: 0 0 10px 0;
}

nav.menu li:last-child {
    margin: 0;
}

nav.menu a {
    display: block;
    color: #fff;
    text-decoration: none;
}

html:not(.touch) nav.menu a:hover {
    color: #000;
}

a.menu {
    display: block;
    width: 60px;
    height: 36px;
    font-size: 0;
    margin: 10px;
    background: url(../images/menu.svg);
}

html:not(.touch) a.menu:hover {
    background-position: -60px 0;
}

/*===== Language ============================================================*/

nav.language ul {
    margin: -2px 10px 0 10px;
    padding: 0;
    list-style-type: none;
    position: absolute;
    right: 0;
    top: 0;
}

nav.language li {
    line-height: 22px;
    display: block;
}

nav.language a {
    color: #79b9bd;
    text-decoration: none;
}

html:not(.touch) nav.language a:hover {
    color: #3f7d81;
}

/*===== Box =================================================================*/

section {
    overflow: hidden;
}

article {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

html:not(.touch) article.hover {
    opacity: 0.7;
}

article figure {
    margin: 10px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

article figure:before {
    content: "";
    display: block;
    padding-top: 148.571429%;
}

article img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-transition: all 0.3s, opacity 1s;
    -moz-transition: all 0.3s, opacity 1s;
    transition: all 0.3s, opacity 1s;
}

html:not(.touch) article.hover img {
    width: 106%;
    margin: -3% 0 0 -3%;
}

article div.group img.hidden {
    opacity: 0;
}

article.border figure:after {
    content: "";
    display: block;
    position: absolute;
    left: -1px;
    top: -1px;
    width: 100%;
    padding: 148.571429% 2px 2px 0;
    background: url(../images/border.svg);
    background-size: 100%;
}


article a.more {
    display: block;
    position: absolute;
    background-color: #fff;
    opacity: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    font-size: 0;
}

/*===== Popup ===============================================================*/

div.canvas {
    position: fixed;
    background-color: #000;
    opacity: 0.5;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
}

html.popup div.canvas {
    display: block;
}

div.popup {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: auto;
    background: #fff;
    padding: 20px;
    z-index: 101;
    display: none;
    box-sizing: border-box;
}

div.popup figure {
    margin: 0 0 1em 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

div.popup figure:first-child:before {
    content: "";
    display: block;
    padding-top: 67.1875%;
}

div.popup figure:first-child img {
    position: absolute;
    top: 0;
    left: 0;
}

div.popup figure img {
    width: 100%;
    -webkit-transition: all 0.3s, opacity 1s;
    -moz-transition: all 0.3s, opacity 1s;
    transition: all 0.3s, opacity 1s;
}

div.popup div.group img.hidden {
    opacity: 0;
}

div.popup h2 {
    margin: 1em 0 0 0;
    font-family: Acta-BlackItalic, Times New Roman, serif;
    font-weight: normal;
    font-size: 100%;
    line-height: 130%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

div.popup h3 {
    margin: 1em 0 0 0;
    font-family: Acta-Bold, Times New Roman, serif;
    font-weight: normal;
    font-size: 100%;
}

div.popup h2 + p,
div.popup h3 + p {
    margin: 0;
}

div.popup p {
    margin: 1em 0 0 0;
    font-size: 100%;
    line-height: 130%;
}

div.popup p + p {
    margin-top: 0.5em;
}

div.popup a {
    color: #79b9bd;
    text-decoration: none;
}

div.popup span.title {
    text-transform: uppercase;
}

html:not(.touch) div.popup a:hover {
    color: #3f7d81;
}

/*----- Gallery -------------------------------------------------------------*/

div.gallery figure:first-child:before {
    padding-top: 150%;
}

div.gallery figure img {
    transition: margin-left 0.5s;
}

div.gallery figure img.left {
    margin-left: -100%;
}

div.gallery figure img.right {
    margin-left: 100%;
}

div.gallery div.text {
    line-height: 130%;
}

div.gallery div.buttons {
    position: relative;
    margin: 16px 0 0 0;
}

div.gallery div.position {
    position: absolute;
    margin-left: 80px;
    line-height: 30px;
}

div.gallery div.buttons a.left,
div.gallery div.buttons a.right {
    background: url(../images/arrows.svg) no-repeat;
    display: inline-block;
    width: 30px;
    height: 30px;
    font-size: 0;
    vertical-align: middle;
}

div.gallery div.buttons a.right {
    background-position: -31px 0;
}

html:not(.touch) div.gallery div.buttons a.left:hover {
    background-position: 0 -31px;
}

html:not(.touch) div.gallery div.buttons a.right:hover {
    background-position: -31px -31px;
}

/*===== Size and print adjustments ==========================================*/

@media (min-width: 500px) {
    body {
        font-size: 20px;
    }
}

@media (min-width: 650px), print {
    nav.language ul {
        right: auto;
        left: 50%;
    }

    nav.language li {
        float: left;
        margin-right: 20px;
    }

    article {
        width: 50%;
        float: left;
    }

    div.gallery div.text {
        margin-right: 150px;
    }

    div.gallery div.buttons {
        position: absolute;
        top: -3px;
        right: 0;
        margin: 0;
    }

    div.gallery div.position {
        position: relative;
        display: inline-block;
        margin: 0 10px 0 0;
        vertical-align: middle;
    }

    div.gallery div.caption {
        position: relative;
        min-height: 28px;
    }
}

@media (min-width: 1000px), print {
    h1 {
        width: 66.6666667%;
    }

    nav.language ul {
        left: 66.6666667%;
    }

    article {
        width: 33.3333333%;
    }

    div.popup {
        width: 680px;
        margin: 0 auto;
        top: 20px;
    }
}

@media (min-width: 1400px) {
    h1 {
        width: 50%;
    }

    nav.language ul {
        left: 75%;
    }

    article {
        width: 25%;
    }
}

@media (min-width: 1640px) {
    div.page {
        width: 1600px;
        margin: 0 auto;
    }
}

@media print {
    h1 {
        margin-top: 0;
    }

    a.menu,
    nav {
        display: none;
    }

    div.popup {
        width: 80%;
    }
}