/*----------------------------------------------------------------------------*/
/*                                                                            */
/* Copyright (c) 2021 by color:gray. All Rights Reserved.    	              */
/*                                                                            */
/* CSS        : layout.css    (mobile-first/responsive)                       */
/*                                                                            */
/* Description: Layout rules for website.com                                  */
/*                                                                            */
/*----------------------------------------------------------------------------*/

/* RULE: target ÷ context = result (default text size assumed to be 16px) */

/* Resets
---------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* General settings
---------------------------------*/
body, td, th {
    background: url('/images/site/CL-base.jpg') no-repeat fixed right top;
    background-size: cover;
    font-family: 'Tinos', Cambria, Palatino Linotype, serif;
	font-size: 100%;
}
a {
    color: #015dbc;
    text-decoration: none;
    -webkit-transition: color 0.35s;
    transition: color 0.35s;
}
a:hover {
    color: #bc7801;
    text-decoration: underline;
}
p, h1, h2, h3, h4, h5, h6 {
	margin-bottom: 16px;
}
h1 {
	font-size: 2.0em;
}
h2 {
	font-size: 1.5em;
}
h3 {
	font-size: 1.2em;
}
h4 {
	font-size: 1.0em;
}
h5 {
	font-size: 0.8em;
}
h6 {
	font-size: 0.7em;
}
strong, b {
    font-weight: bold;
}
em, i {
    font-style: italic;
}

/* Preload
---------------------------------*/
main {
	opacity: 1;
    transition: 4s opacity;
}
main.fade-out {
    opacity: 0;
    transition: none;
}

/* Wrapper settings
---------------------------------*/
div#page_wrapper {
	position: relative;
	width: 100%;
	margin: 0;
}

/* CL image
---------------------------------*/
div.hero_spot {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 75px);
    margin-top: 80px;
    background: url('/images/site/ChristopherLibertino-mobile-3-quaters.png') no-repeat;
    background-position: right bottom;
    background-size: auto calc(80vh - 75px);
    z-index: 400;
}

/* Header
---------------------------------*/
header {
    position: fixed;
    top: 0;
    left: 0;
    background: url('/images/site/CL-base.jpg') no-repeat fixed right top;
    background-size: cover;
    width: 100%;
    height: 75px;
    box-shadow: 0px 2px 8px #333;
    z-index: 500;
}
header img#CL-title {
    width: 60%;
    height: auto;
    margin: 20px 0 0 20px;
}

/* Navs
---------------------------------*/
header div#menu-icon {
    display: block;
    position: absolute;
    top: 16px;
    right: 43px;
    z-index: 501;
}
header div#menu-icon img {
    width: 50px;
    height: auto;
}
header div#point {
    display: block;
    position: absolute;
    top: 44px;
    right: 64px;
    z-index: 501;
}
header nav#menu-nav {
    display: block;
    font-family: 'Tinos', Cambria, Palatino Linotype, serif;
    position: absolute;
    top: 66px;
    right: 0;
    width: 115px;
    font-size: 1.4em;
    text-align: center;
    padding: 24px 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #888;
    border-radius: 12px;
    z-index: 502;
}
header nav#main-nav {
    display: none;
    font-family: 'Tinos', Cambria, Palatino Linotype, serif;
    position: absolute;
    top: 12px;
    left: 29%;
    width: 675px;
    font-size: 1.3em;
    text-align: center;
    padding: 6px 0 0 48px;
    background: url('/images/site/CL-navlines.png') no-repeat center bottom;
    background-size: contain;
}
header nav#menu-nav li {
    display: block;
    margin: 0 0 12px 0;
}
header nav#main-nav li {
    display: none;
    margin: 0 24px 12px 0;
}
header nav li a {
    color: #000;
}
header nav li a:hover {
    color: #fff;
    text-decoration: none;
}
header div.return {
	font-family: 'Tinos', Cambria, Palatino Linotype, serif;
    position: absolute;
    top: 0;
    left: 60%;
    width: 165px;
    height: 18px;
    font-size: 1.0em;
    text-align: center;
    padding: 2px 0;
    background: rgba(61, 73, 95, 0.6);
    border-radius: 0 0 18px 18px;
}
header div.return a {
	color: #ccc;
}
header div.return a:hover {
	color: #fff;
    text-decoration: none;
}

/* Contact modal
---------------------------------*/
aside#contact_modal {
    position: fixed;
    display: none;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    height: 270px;
    margin: auto 2%;
    padding: 42px 6%;
    font-size: calc(0.9em + 0.2vw);
    line-height: 1.2;
    border: 6px solid #eee;
    border-radius: 4px;
    box-shadow: 0px 0px 128px #000;
    background-color: rgba(224, 224, 224, 0.9);
    z-index: 1002;
}
aside#contact_modal div.inter {
    display: table;
    width: 100%;
    height: 100%;
}
aside#contact_modal div.inter div {
    display: table-cell;
    vertical-align: middle;
}
aside#contact_modal h2 {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 85%;
    opacity: 0.4;
    line-height: 0.9em;
}
aside#contact_modal ul {
	text-align: center;
}
aside#contact_modal ul li {
	display: block;
    width: 100%;
    vertical-align: top;
}
aside#contact_modal p.direct {
    text-align: center;
}
aside#contact_modal span.close-contact {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Content - projects nav
---------------------------------*/
section.projects ul.tabnav {
	position: absolute;
    top: -24px;
    left: 76px;
}
section.projects ul.tabnav li {
	display: inline-block;
    border-radius: 6px 6px 0 0;
    width: 90px;
    height: 12px;
    padding: 6px;
    color: #666;
    font-weight: bold;
    text-align: center;
}
section.projects ul.tabnav li.tab-on {
	background: rgba(255, 255, 255, 0.85);
    margin-right: 0;
}
section.projects ul.tabnav li.tab-off {
	background: rgba(200, 200, 200, 0.85);
}
section.projects ul.tabnav li a {
	color: #666;
}
section.projects ul.tabnav li a:hover {
	color: #000;
    text-decoration: none;
}

/* Content - projects
---------------------------------*/
section.projects {
	position: relative;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 0;
    margin: 132px 0 380px 0;
    z-index: 402;
}
section.projects div.grid-holder {
	display: grid;
    grid-gap: 0;;
    justify-content: center;
    width: 96%;
    margin: 0 auto 0 0;
    padding: 8px 2% 8px 2%;
}
section#projects div.grid-holder {
	grid-template-columns: auto auto;
}
section#albums div.grid-holder {
	grid-template-columns: auto;
}
section.projects div.grid-holder div.itemset {
    position: relative;
}
section.projects div.grid-holder div.itemset div.rollover {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}
section.projects div.grid-holder div.itemset div.rollover:hover {
    opacity: 1;
}
section.projects div.grid-holder div.itemset div.rollover span {
	display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #666;
}
section#projects div.grid-holder div.itemset div.rollover span {
    padding: 45% 0 0 0;
}
section#albums div.grid-holder div.itemset div.rollover span {
    padding: 30% 0 0 0;
}
section.projects div.grid-holder div.itemset div.rollover h4 {
    font-size: 1.6em;
    font-weight: bold;
    line-height: 1.0em;
    color: #42494b;
    margin-bottom: 0;
}
section.projects div.grid-holder div.itemset div.rollover a {
    display: inline-block;
    padding: 8px 20px;
    margin-top: 12px;
    border-radius: 4px;
    border-top: 4px solid #42494b;
    border-bottom: 4px solid #42494b;
    background-color: transparent;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
section.projects div.grid-holder div.itemset div.rollover a:hover {
    text-decoration: none;
    color: #fff;
    padding: 4px 20px;
    margin-top: 16px;
    background-color: #42494b;
}
section.projects div.grid-holder div.itemset img {
	width: 100%;
    max-width: 100%;
    height: auto;
}

/* Content - pages
---------------------------------*/
.royalSlider {
	position: relative;
	width: 100% !important;
    z-index: 402;
}
section#intro {
    width: 50%;
    padding: 28px 23% 16px 24px;
    margin: 20vw 20% 64px 5%;
    background-color: rgba(230, 221, 215, 0.45);
    border-radius: 12px;
    color: #333;
    font-size: 1.4em;
    line-height: 1.4em;
}
section#intro p {
    font-style: italic;
}
section#intro p span {
	font-style: normal;
    font-weight: bold;
}
section#bio, section#credits {
    width: 60%;
    padding: 96px 18% 64px 24px;
    margin: 120px 15% 380px 5%;
    background-color: rgba(230, 221, 215, 0.45);
    background-image: url('/images/site/speckel.png');
    background-position: 24px 16px;
    background-repeat: no-repeat;
    background-size: 90% 60px;
    border-radius: 12px;
    color: #333;
}
section#bio {
    line-height: 1.6em;
}
section#credits {
    line-height: 1.3em;
}
section#credits h1, section#credits h2 {
    line-height: 1.2em;
}
section#credits ul {
    margin-bottom: 32px;
}
section#credits ul li {
    list-style: none;
    margin-bottom: 16px;
}

/* Footer
---------------------------------*/
footer {
	position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7em;
    font-weight: bold;
    color: #ddd;
    z-index: 452;
}
footer a {
	color: #fff;
}
footer a:hover {
    color: #000;
    text-decoration: none;
}

/* Responsive
---------------------------------*/
@media (min-width: 550px) {
	header img#CL-title {
    	width: 320px;
	}
}
@media (min-width: 650px) {
    div.hero_spot {
        background-size: auto calc(90vh - 75px);
    }
    aside#contact_modal {
        width: 512px;
        margin: auto;
    }
    section#intro {
    	width: 54%;
    	padding: 28px 29% 16px 24px;
    	margin: 20vw 10% 64px 5%;
	}
    section#projects div.grid-holder {
    	grid-template-columns: auto auto auto;
	}
    section#bio, section#credits {
    	width: 65%;
    	padding: 96px 18% 64px 24px;
    	margin: 120px 10% 380px 5%;
	}
}
@media (min-width: 780px) {
    section#albums div.grid-holder {
    	grid-template-columns: auto auto auto;
	}
}
@media (min-width: 900px) {
    div.hero_spot {
        background-size: auto calc(100vh - 75px);
    }
    header div#menu-icon {
        display: none;
    }
    header div#point {
        display: none;
    }
    header nav#menu-nav {
        display: none;
    }
    header nav#main-nav {
        display: block;
    }
    header nav#main-nav li {
        display: inline-block;
    }
    section#projects div.grid-holder {
    	grid-template-columns: auto auto auto auto;
	}
}
@media (min-width: 1200px) {
    div.hero_spot {
        background: url('/images/site/ChristopherLibertino.png') no-repeat;
        background-position: right bottom;
        background-size: auto calc(100vh - 75px);
    }
    header nav#main-nav {
        left: 32%;
    }
    section#intro {
    	width: 50%;
    	padding: 28px 23% 16px 24px;
    	margin: 20vw 20% 64px 5%;
	}
    section#projects div.grid-holder {
    	grid-template-columns: auto auto auto auto auto auto;
	}
    section#bio, section#credits {
    	width: 55%;
    	padding: 96px 18% 64px 24px;
    	margin: 120px 20% 380px 5%;
	}
}
@media (min-width: 1480px) {
    header nav#main-nav {
        left: 38%;
    }
}
@media (min-width: 1700px) {
    header nav#main-nav {
        left: 43%;
    }
}