/* stylesheet designed for 
http://gitaha.net by gita hashemi

modified photobanner - code by felix leclair 
https://codepen.io/Camofelix/pen/rLKEqq

modified photogallery - code by lucas lemonnier 
https://codepen.io/luclemo/pen/VGrOjv

modified toggle menu - code by kirsten humphreys
https://codepen.io/kirstenhumphreys/pen/vgaKmG 

modified grid - code by keir
https://codepen.io/Everybodyknows/pen/QWwZGdE
*/


/* ==== */

html {
		box-sizing: border-box;
}

*, *:before, *:after {
		box-sizing: border-box;
	}

body {
		background-color: #eae9e7;
        /*background-color: #e5e4e2;*/
		line-height: 1.75em;
		overflow-x: hidden;
		overflow-y: auto;
}

/* ==== */


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: 16px;
	font-family: Helvetica, Verdana, sans-serif;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
    padding: 10px;
    font-size: 95%;
    font-style:oblique;
    background-color: #e5e4e2;
    text-align: justify;
}

blockquote:before, blockquote:after, q:before, q:after {
		content: '';
		content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	-webkit-text-size-adjust: none;
}

mark {
	background-color: transparent;
	color: inherit;
}

input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input, select, textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
}

/* ===== */

#wrapper {
 width: 100%;
    display: block;
 overflow: hidden;
 margin: 0px auto;
 background: transparent;
 clear:both;
 position: sticky;
}

.content {
    width: 90%;
    margin: 20px auto 0 20px;
    text-align: left;
    font-family: inherit;
    line-height: inherit;
}

a {
    color: #971e21;
	text-decoration: none;
	-moz-transition: color 0.25s ease-in-out;
	-webkit-transition: color 0.25s ease-in-out;
	-ms-transition: color 0.25s ease-in-out;
	transition: color 0.25s ease-in-out;
}

a:hover {
     color: #4D3906;
    background-color: #ffc014;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.05em;
}

strong, b {
    color: #444;
    font-weight: 600;
}

.pagetitle {
    margin-left: 40px;
}

.pagetitle h1 {
    color: #4D3906;
    font-weight: 200;
    font-size: 150%;
    letter-spacing: 1px;
}

.entry {
    padding-bottom: 20px;
}

.entryhead {
    padding-bottom: 20px;
    padding-top: 20px;
    font-weight: 400;
    line-height: 1.75;
    font-size: 120%;
    letter-spacing: 1px;
}

.entry a {
    color: #971e21;
    text-decoration: underline;
}

.entry a:hover {
    color: #4D3906;
    background-color: #ffc014;
}

.external span::after {
    content: url(../../images/External_link_font_awesome-small.svg);
}

#back {
    margin: 0 auto 20px 60px;
}

#back a {
    color: #971e21;
    font-size: 80%;
}

#back a:hover {
    color: #4D3906;
    background-color: #ffc014;
}

#date {
    margin-top: 10px;
    font-size: 70%;
    color: #999;
}

#copyright {
    margin-top: 10px;
    font-size: 70%;
    color: #999;
}

#copyright a {
    margin-top: 10px;
    font-size: inherit;
    color: #999;
}

/* === TOP === */

#topbar {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    position: relative; 
    margin: 0em 0em 20px 20px;
    /*background: rgba(0, 0, 0, 0.1);*/
    border-radius: 5px;
    font-size:100%;
    display:block;
    padding:5px;
    width:auto;
}

header p {
	font: 100 15px/1.5 Helvetica, Verdana, sans-serif;
	text-align: center;
}

header h1 {
    margin: 1em 0em 0em 0em;
    text-align: left;
	font: 200 150% Helvetica, Verdana, sans-serif;
    color: #333;
    letter-spacing: 1px;
    padding-bottom: 20px;
  }
  
header h3 {
    margin: 1em 0em 0em 0em;
    text-align: left;
	font: 100 110% Helvetica, Verdana, sans-serif;
    color: #333;
    letter-spacing: 2px;
    padding-bottom: 20px;
}

/* === FOOTER === */

#footer {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    position: relative; 
    margin: 20px auto auto 0px;
    font:100 80% Helvetica, Verdana, sans-serif;
    line-height: 1.5;
    display:block;
    text-align: left;
    padding:25px;
    color: #aaa;
    width: auto;
}

/* === ARCHIVE ==*/

.archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1em;
  grid-auto-flow: dense;
    width: 90%;
    margin: 20px auto 0 auto;
    text-align: left;
    font-family: inherit;
    line-height: inherit;

}

.article {
  padding: 1em;
  background: #fff;
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.1),
    0 20px 20px rgba(0, 0, 0, 0.05);
}

.article::after {
  color: white;
  font-weight: bold;
  font-family: courier;
}

p {
    padding-bottom: 10px;
    padding-top: 10px;
}


/* === PHOTOBANNER === */


@media screen and (min-width: 601px) {
    .photobanner {
        overflow-x:hidden;
			}}

@media screen and (max-width: 600px) {
    .photobanner {
        overflow-x:hidden;
			}}

/*keyframe animations*/
.first {
	-webkit-animation: bannermove 50s linear infinite;
    -moz-animation: bannermove 50s linear infinite;
    -ms-animation: bannermove 50s linear infinite;
    -o-animation: bannermove 50s linear infinite;
    animation: bannermove 50s linear infinite;
}

@keyframes "bannermove" {
 0% {
    margin-left: 0px;
 }
 100% {
    margin-left: -5746px;
 }}

@-moz-keyframes bannermove {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -5746px;
 }}

@-webkit-keyframes "bannermove" {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -5746px;
 }}

@-ms-keyframes "bannermove" {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -5746px;
 }}

@-o-keyframes "bannermove" {
 0% {
   margin-left: 0px;
 }
 100% {
   margin-left: -5746px;
 }}

.photobanner {
	height: 233px;
	width: 8640px;
    overflow-x:hidden;
    clear:both;
    vertical-align: middle;
}

.photobanner img {
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-o-transition: all 1s ease;
	-ms-transition: all 1s ease;
	transition: all 1s ease;
}

.photobanner img:hover {
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-o-transform: scale(1.2);
	-ms-transform: scale(1.2);
	transform: scale(1.2);
	cursor: pointer;
	-webkit-box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
	box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
}


/* ==== IMAGE GALLERY FOR PROJECTS PAGE === */

#photogallery {
    display: block;
    clear:both;
    margin-top: 20px;
}

ul {
	 list-style: none;
	 margin: 0;
	 padding: 0;
}

figure {
	 margin: 0;
}

figcaption {
	 font-style: normal;
	 font-size: 100%;
	 color: #333;
	 line-height: 1.5;
     margin-bottom: 1em;
     text-align: center;
}

.grid {
	 display: grid;
	 grid-auto-flow: column;
	 grid-auto-columns: 90%;
	 grid-gap: 1em;
	 overflow-x: scroll;
	 -webkit-overflow-scrolling: touch;
	 padding: 2em 1em;
    background-color: #f9f9f8;
}

 @media all and (min-width: 600px) {
	 .grid {
		 grid-auto-flow: initial;
		 grid-template-columns: repeat(auto-fit, minmax(auto, 20em));
		 justify-content: center;
	}}

 .grid__figure {
	 display: grid;
	 grid-template-rows: 15em 1fr;
	 grid-gap: 1em;
}

 .grid__figure img {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
}
 