/**** general settings ****/
html, body{
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
}

@font-face {font-family: 'UniversLTStd-Bold';src: url('./fonts/35E0DE_0_0.eot');src: url('./fonts/35E0DE_0_0.eot?#iefix') format('embedded-opentype'),url('./fonts/35E0DE_0_0.woff2') format('woff2'),url('./fonts/35E0DE_0_0.woff') format('woff'),url('./fonts/35E0DE_0_0.ttf') format('truetype');}

body{
	background-color: #fff;
	color: #abada4;
	/*font-family: Arial, Helvetica, sans-serif;*/
	font-family: 'UniversLTStd-Bold', sans-serif;
	font-size: 13px;
}

a, a:active, a:link, a:visited, a:hover{
	color: inherit;
	text-decoration: none;
}
/**** end general settings ****/

/**** page structure ****/
#page{
	width: 900px;
	margin: 0 auto;
	min-height: 100%;
	position: relative;
	top: 0;
	left: 0;
}

#header{
	width: 100%;
	height: 50px;
	position: absolute;
	top: 20px;
	left: 0;
}

#headBurger {
    display: none;
}

#left_col{
	width: 588px;
	position: absolute;
	left: 0;
	top: 90px;
}

#right_col{
	width: 250px;
	position: absolute;
	right: 0;
	top: 90px;
}
/**** end page structure ****/

/**** header ****/
#header_img {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: 155px;
    height: auto;
}
/**** end header ****/

/**** left column ****/
#leftTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #464650;
}


#project_title{
	margin: 0;
    font-size: 17px;
	font-weight: normal;
	letter-spacing: 1px;
	color: #646464;

}

#img_number{
	font-size:12px;


}

#thumbnails {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

#thumbnailsMobile {
    display: none;
}


.image{
    margin-bottom:22px;
    width:25%;

}

.image .thumb{
	height: 78px;
	display: block;
	margin: 0 auto;
	cursor: pointer;
}

.image .number{
	display:block;
	margin-top:5px;
	text-align:center;
	font-size: 11px;
}

/* slideshow */
body.overlayOpen {
    overflow: hidden;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.85);
}

#slideshow {
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    position: relative;
    box-sizing: border-box;
    padding-top: 40px;
    padding-bottom: 60px;
    height: 100%;
    margin: 0;
}

.slideshow_control{
	cursor: pointer;
}

#slideshow_prev{
	position: relative;
	bottom: 0;
	left: -10px;
}

#slideshow_next{
	position: relative;
	bottom: 0;
	left: 10px;
}

img#slideshow_img {
    max-height: 100%;
    display: block;
    max-width: calc(100% - 100px);
}

#slideshow_number {
    display: block;
    font-size: 20px;
    height: 30px;
    line-height: 30px;
    color: #646464;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 20px;
}

#mobileOverlay {
    display: none;
}
/* end slideshow */

/**** end left column ****/

/**** right column ****/
.sidebar_box{
	padding: 0;
	margin: 0 0 22px 0;
	line-height: 1.6em;
}

.sidebar_box .sidebar_heading{
	border-bottom:1px solid #464650;
	font-size:15px;
	font-weight:normal;
	color: #646464;
	margin: 0 0 5px 0;
}

.sidebar_box .sidebar_link{
	color: #646464;
}


.sidebar_box .sidebar_link.download{
	margin-top: 4px;
	display: block;
}

span.keepLine {
    white-space: nowrap;
}

.sidebar_box p {
    margin: 0;
}


@media screen and (max-width: 768px) {

    body.locked {
        overflow: hidden;
    }

    #mobileOverlay {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 20;
        background-color: #fffffff2;
        width: 100%;
        height: 100vh;
        display: none;
    }

    #mobileOverlay.active {
        display: block;
    }

    div#mobileSliderWrapper {
        height: 100%;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;

        transform: translate3d(0,0,0);
    }

    div#mobileSlider {
        display: flex;
        align-items: center;
         height: 100%;
        transform: translate3d(0,0,0);
    }

    .sliderImage {
        display: flex;
        position: relative;
        box-sizing: border-box;
        padding: 0 2.5vw;
        scroll-snap-align: center;
        object-fit: cover;
        width: 100vw;
		align-items: flex-start;
    }

    .sliderImage:first-child {
        margin-left: 5vw;
    }

    .sliderImage img {
        display: block;
        width: 100%;
        height: auto;
    }

    .sliderImage p {
        position: absolute;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 2;
        margin: 0;
        color: #646464;
        height: 20px;
        line-height: 20px;
        bottom: -30px;
        font-size: 16px;
    }

    #mobileClose {
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: auto;
        box-sizing: border-box;
        padding: 10px;
        display: block;
        z-index: 21;
    }


    #page {
        width: 100%;
        padding: 5px;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        box-sizing: border-box;
        padding-top: 70px;
        font-size: 12px;
    }

    #header_img {
        position: absolute;
        right: 15px;
        width: 135px;
    }


    #left_col {
        position: static;
        width: 100%
    }

    #thumbnails {
        box-sizing: border-box;
        padding-right: 160px;
    }

    #leftTop {
        margin-right: 160px;
        margin-bottom: 20px;
    }

    #right_col {
        position: absolute;
        width: 150px;
        right: 5px;
        box-sizing: border-box;
        padding: 0 5px;
        top: 70px;
    }

    #firstImages, #restImages {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
    }

    div.image {
        width: calc(25%);
        /*width: auto;*/
        margin-bottom: 26px;

        margin-right: 0;

    }

    .image .thumb {
        width: auto;
        max-height: 19vw;
        max-width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 768px) AND (orientation: landscape) {

    .sliderImage {
        height: 100%;
        align-items: flex-start;
        justify-content: center;
        padding-top: 5vh;
    }

    .sliderImage img {
        width: auto;
        height: calc(100% - 25px);
    }

    .sliderImage p {
        bottom: 5px ;
    }
}


@media screen and (max-width: 550px) {

    #page {
        padding-top: 10px;
    }

    #header {
        position: static;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 5px 10px 5px;
    }

    #header_img {
        position: static;
    }

    #headBurger {
        display: block;
        width: 25px;
        height: 17px;
        position: relative;
    }

    #headBurger > span {
        display: block;
        height: 3px;
        background-color: #abada4;
        width: 100%;
        position: absolute;
        left: 0;
        /*transition: transform 0.2s linear;*/
        animation-duration: 0.3s;
        animation-fill-mode: forwards;
    }

    #burgerLineTop { top: 0; transform-origin: center; }
    #burgerLineMiddle { top: 7px; }
    #burgerLineBottom { bottom: 0; }

    .menuOpen #burgerLineMiddle {
        opacity: 0;
    }

    .menuOpen #burgerLineTop {
        animation-name: burgerOpenTop;
    }

    @keyframes burgerOpenTop {
        0% { top: 0px; transform: rotate(0deg); }
        40% { top: 7px; transform: rotate(0deg); }
        100% { top: 7px; transform: rotate(45deg); }
    }

    .menuOpen #burgerLineBottom {
        animation-name: burgerOpenBottom;
    }

    @keyframes burgerOpenBottom {
        0% { bottom: 0px; transform: rotate(0deg); }
        50% { bottom: 7px; transform: rotate(0deg); }
        100% { bottom: 7px; transform: rotate(-45deg); }
    }


    #leftTop {
        margin-left: 5px;
        margin-right: 5px;
    }

    #right_col {
        position: static;
        width: 100%;
        padding: 0 5px;
    }

    #thumbnails {
        padding-right: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar_box {
        margin-bottom: 15px;
    }

    .sidebar_box .sidebar_heading {
        font-size: 13px;
    }

    .sidebar_box p {
        font-size: 11px;
        line-height: 1.25;
    }

    div.image {
        width: calc(33.33%);
        margin-bottom: 26px;
    }

    .sliderImage p {
        font-size: 14px;
    }

    /* menu */
    #rightClone {
        position: fixed;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #fff;
        left: 0;
        top: 70px;
        padding: 10px;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    #page.menuOpen #rightClone {
        opacity: 1;
    }
}



