/***************/
/*metastyle.css*/
/***************/
@font-face {
    font-family: 'Raleway';
    src: url('https://fonts.googleapis.com/css?family=Raleway');
}

header, .header, nav, .nav {
    font-family : 'Comfortaa', cursive;
}

main, .main {
    font-family: 'Raleway', sans-serif;
}

a {
    text-decoration: none;
    color: #748E9E;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    padding: 3px 5px;
}

h1, h3 {
    margin-top: 5px;
    margin-bottom: 0px;
}

main h2, main h3 {
    margin-top: 0px;
    color: #A1B19D;
}

a:hover, a:active {
    color: #A1B19D;
    transition: color 0s;
}


/***************/
/*MOBILE DESIGN*/
/***************/

#grid-wrapper {
        margin: 2px;
        padding: 5px;
        grid-auto-columns: minmax(230px, auto);
        grid-gap: 7px;
        grid-template-areas: 
            "title title"
            "main main";
}

#header {
    grid-area: title;
}

header {
    background-color:#fff;
    position: fixed;
    top: 0;
    left: 15px;
    font-size: 32px;
    font-weight: 600;
    padding : 18px 0 0 5px;
    height: 60px;
    width: 100%;
    margin-bottom: 7px;
    transition: 0.5s;
}
 
#nav {
    grid-area: nav;
}

nav {
    font-weight: 400;
    font-size: 20px;
    position: fixed;
    top: -10px;
    right:-330px;
    width: 300px;
    height: 100%;
    padding: 5px;
    padding-left: 15px;
    transition: transform 0.5s ease-in-out;
    z-index: 99;
    display: block;
    margin: 25px 0 0 0;
    background: #fff;
    list-style-type: none;
}

main {
    grid-area: main;
}

main {
    padding: 5px;
    text-align: justify;
    max-width: 1200px;
    margin-top: 80px;
    margin-left: 10px;
    z-index: 1;
    transition: 0.5s;
}

.open {
    position: fixed;
    top: 12px;
    right: 15px;
    z-index: 99;
}

.close {
    position: relative;
    top: -15px;
    left: 260px;
    font-size: 55px;
    z-index: 100;
}

#nav:target {     
      transform: translateX(-330px);
    }

/************************/
/*DESKTOP-TABLET VERSION*/
/************************/

@media only screen and (min-width: 769px) {
    #grid-wrapper {
        padding: 5px;
        display: grid;
        /*grid-template-columns : 1fr 4fr;*/
        grid-auto-columns: 320px minmax(230px, auto);
        grid-auto-rows: minmax(120px, auto);
        grid-template-areas: 
            "title main"
            "nav main";
    }
    
    header {
        font-size: 28px;
    }
    
    nav {
        margin: 0;
        top : 67px;
        left: 15px;
        font-size: 16px;
        width: 300px;
    }
    
    main {
        margin-left: 10px
    }
    
    .toggle {
    display: none;
    }
}


p {
    font-size : 16px;
	line-height: 1.4;
    color: #3c4739;
	max-width: 800px;
}


/**********************/
/*FRONT-PAGE SLIDESHOW*/
/**********************/

@keyframes fade {
  0%   { opacity: 0; }
  2.27%   { opacity: 1; }
  9.08%  { opacity: 1; }
  11.35%  { opacity: 0; }
  100% { opacity: 0; }
}

.fadein img { 
    opacity:0; 
    animation-name: fade; 
    animation-duration: 44s; 
    animation-iteration-count: infinite; 
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    margin-left: auto;
    margin-right: auto;
    max-height: 466px;
    max-width: 100%;
    height: auto;
    width:auto;
}

.fadein img:nth-child(1) { 
    animation-delay: 0s; 
}

.fadein img:nth-child(2) { 
    animation-delay: 4s; 
}

.fadein img:nth-child(3) { 
    animation-delay: 8s; 
}

.fadein img:nth-child(4) { 
    animation-delay: 12s; 
}

.fadein img:nth-child(5) { 
    animation-delay: 16s; 
}

.fadein img:nth-child(6) { 
    animation-delay: 20s; 
}

.fadein img:nth-child(7) { 
    animation-delay: 24s; 
}

.fadein img:nth-child(8) { 
    animation-delay: 28s; 
}

.fadein img:nth-child(9) { 
    animation-delay: 32s; 
}

.fadein img:nth-child(10) { 
    animation-delay: 36s; 
}

.fadein img:nth-child(11) { 
    animation-delay: 40s; 
}

.fadein {
    position: relative;
    text-align: center;
    max-width: 720px;
}


/****************/
/*PHOTO PROJECTS*/
/****************/

.project-photos {
    max-width: 800px;
    margin-right: 10px;
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 10px;
}

.project-photos img {
    width: 100%;
    height:auto;
    max-height: 250px;
    padding: 5px;
    margin-left: 0;
    margin-right: 0;
    object-fit: contain;
}

figure {
    margin: 5px;
    text-align: center;
}

figure.animation figcaption {
    position: relative;
    top: -60px;
    margin: auto;
    padding-left: 10px;
    opacity: 0;
    font-weight: bold;
    text-shadow: 0 0 6px #000;
    color: #fff;
    transition: all 0.5s;
}
@media only screen and (max-width: 600px) {
    figure.animation figcaption {
        font-size : small;
    }
}

figure.animation:hover figcaption {
    opacity:1;
    transform: scale(1.3);
}

.animation img {
    transition: all 0.5s ease-in-out;    
}

.animation:hover img {
    opacity:0.6;
    transform: scale(0.95);
    transition: transform 0.5s ease-in-out;
}

.csoh-photos img:hover, .is-photos img:hover, .lb-photos img:hover, .po-photos img:hover {
    transform:scale(1.02);
    transition: transform 0.5s;
    box-shadow: 3px 8px 10px 2px rgba(0,0,0,0.3), 0 3px 12px 2px rgba(0,0,0,0.1);
}

.csoh-photos img, .is-photos img, .lb-photos img, .po-photos img {
    transition: 0.5s ease-in-out;
	box-shadow: 3px 8px 10px 2px rgba(0,0,0,0.0), 0 3px 12px 2px rgba(0,0,0,0.0);
}

/***************************/
/*CONSTRUCTION SITE ON HOLD*/
/***************************/
.csoh-photos {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    grid-auto-rows: auto;
    grid-template-areas: 
        "one two three"
        "four four five"
        "four four six"
        "seven eight nine"
        "ten . eleven"
        "twelve twelve eleven"
        "twelve twelve thirt"
        "fourt . thirt"
        "fift sixt sevent "
        "eighteen ninet twenty "
        ". twentytwo twentytwo"
        "twentyone twentytwo twentytwo"
}

.csoh-photos img {
    max-width: 100%;
	width: 100%;
}

.CSOH-01 {grid-area: one;}
.CSOH-02 {grid-area: two;}
.CSOH-03 {grid-area: three;}
.CSOH-04 {grid-area: four;}
.CSOH-05 {grid-area: five;}
.CSOH-06 {grid-area: six;}
.CSOH-07 {grid-area: seven;}
.CSOH-08 {grid-area: eight;}
.CSOH-09 {grid-area: nine;}
.CSOH-10 {grid-area: ten;}
.CSOH-11 {grid-area: eleven;}
.CSOH-12 {grid-area: twelve;}
.CSOH-13 {grid-area: thirt;}
.CSOH-14 {grid-area: fourt;}
.CSOH-15 {grid-area: fift;}
.CSOH-16 {grid-area: sixt;}
.CSOH-17 {grid-area: sevent;}
.CSOH-18 {grid-area: eighteen;}
.CSOH-19 {grid-area: ninet;}
.CSOH-20 {grid-area: twenty;}
.CSOH-21 {grid-area: twentyone; margin-bottom: 67px;}
.CSOH-22 {grid-area: twentytwo;}

/************/
/*PLACED OUT*/
/************/
.po-photos {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    grid-auto-rows: auto;
}

.po-photos img {
    max-width: 100%;
}

.PO-01 {grid-column: 1 / 3; grid-row: 1 / 3; margin-top: 4px;}
.PO-02 {grid-column: 3; grid-row: 1;}
.PO-03 {grid-column: 2 /4; grid-row: 3 / 5; margin-top: 4px;}
.PO-04 {grid-column: 3; grid-row: 2;}
.PO-05 {grid-column: 1; grid-row: 3;}
.PO-06 {grid-column: 1; grid-row: 4;}
.PO-07 {grid-column: 1; grid-row: 5;}
.PO-08 {grid-column: 2; grid-row: 5;}
.PO-09 {grid-column: 3; grid-row: 5;}
.PO-10 {grid-column: 1 / 3; grid-row: 6 / 8; margin-top: 4px;}
.PO-11 {grid-column: 3; grid-row: 6;}
.PO-12 {grid-column: 3; grid-row: 7;}
.PO-13 {grid-column: 2; grid-row: 8;}
.PO-14 {grid-column: 3; grid-row: 8;}
.PO-15 {grid-column: 1; grid-row: 10;}
.PO-16 {grid-column: 2 / 4; grid-row: 9 / 11;margin-top: 13px;}
.PO-17 {grid-column: 1; grid-row: 8 / 10;}
.PO-18 {grid-column: 1; grid-row: 11;}
.PO-19 {grid-column: 3; grid-row: 11;}


/***********/
/*IN SPACES*/
/***********/
.is-photos {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    grid-auto-rows: auto;
}

.is-photos img {
    max-width: 100%;
}

.IS-01 {grid-column: 1 / 3; grid-row: 4 / 6;}

.IS-02 {grid-column: 3 / 4; grid-row: 4 / 6; margin-top: 3px;}

.IS-03 {grid-column: 1; grid-row: 3; margin-top: 11px;}

.IS-04 {grid-column: 3; grid-row: 2;}

.IS-05 {grid-column: 1; grid-row: 1 / 3;}

.IS-06 {grid-column: 3; grid-row: 1;}

.IS-07 {grid-column: 3; grid-row: 6;}

.IS-08 {grid-column: 1; grid-row: 6 / 8;}

.IS-09 {grid-column: 2; grid-row: 1;}

.IS-10 {grid-column: 2; grid-row: 7; margin-top: 22px;}

.IS-11 {grid-column: 2; grid-row: 2 / 4;}

.IS-12 {grid-column: 3; grid-row: 3; margin-top: 11px;}

.IS-13 {grid-column: 3; grid-row: 7; margin-top: 22px;}


/*******************/
/*LANDSCAPED BEAUTY*/
/*******************/
.lb-photos {
    display: grid;
    grid-gap: 10px; 
    grid-template-columns: repeat(auto-fit, 290px);
    grid-auto-rows: minmax(auto, 210px);
}

.lb-photos img {
    height: 100%;
    max-height: 190px;
    padding: 0;
    object-fit: contain;
}