/* Fonts */

@font-face {
    font-family: "Circus";
        src: url('misc/fonts/libertinage-q.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
	font-family: 'Signature';
	src: url('misc/fonts/scriptina.ttf') format('truetype'),
		 url('misc/fonts/scriptina.otf') format('opentype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* Base styles */
html { background: url('images/graphics/page-background.jpg') top left/cover fixed no-repeat; }

body { 
	display: flex; 
	flex-direction: column;
	height: 100vh; min-height: 100vh; 
	margin: 0; padding: 0; 
	position: relative; 
	color: #e3e3e3;	
	font-family: "Circus","Times New Roman", sans-serif; 
	font-size: 1.15em; 
	overflow: auto;
}

div.header {
	background: rgba(255,255,255,0.1) url('images/graphics/leona-darnell-photography-logo.png') top left no-repeat;
	padding: 1em;
	position: relative; 
	font-weight: normal; 
	font-size: 1em;
	min-height: 75px;
	text-align: right; 
}

div.social-media-icons { display: inline-block; }
div.social-media-icons a { 
	display: inline-block; 
   width: 32px; height: 32px;
	background: url('images/graphics/social-media-icons.png') top left no-repeat; 
	outline: none;
}
div.social-media-icons a#facebook { background-position: left; }
div.social-media-icons a#twitter { background-position: -32px; }
div.social-media-icons a#pinterest { background-position: -64px; }
div.social-media-icons a#linkedin { background-position: -96px; }
div.social-media-icons a#instagram { background-position: -128px; }
div.social-media-icons a#yelp { background-position: right; }


nav {
  max-width: 100%;
  padding: 1em 1em 0 1em;
  text-align: center;
}

nav a { 
  font-size: 1.05em; 
  display: inline-block; 
  padding: 0 0.25em 0 0.25em; 
  color: silver;
  border-top: 1px solid transparent;
}
nav a.current { text-decoration: silver underline; }
nav a:hover { border-top: 1px solid silver; }
nav a.current:hover { border-top: none; }
nav a:visited { color: #e6c1e9; }

footer { 
	color: whitesmoke; 
	text-align: center; 
	font-size: small; 
	font-style: italic; 
	padding: 0.5em; 
	clear: both; 
	position: relative; 
	border-top: 1px solid gray;
}
footer p { padding: 0; margin: 0; }
footer p a { color: inherit; }
footer p a:hover { color: aqua; }

span.mobile { display: none; }
span.non-mobile { display: inline; }

div.content {
	position: relative; 
	margin: 0 auto 0 auto; 
	padding: 0 1em; 
	text-align: center; 
	max-width: 1920px; 
	flex: auto;	 
}
div.content p { max-width: 1280px; margin-left: auto; margin-right: auto; }
div.content p a { color: silver; }
div.content p a.website { color: cyan; }
div.content p span.first-sentence { font-size: 1.35em; }

div.logo { margin: 0; text-align: left; display: inline-block; }
div.logo img { max-width: 275px; }

h1 { font-size: 3em; font-weight: normal; margin: 0.5rem; padding: 0; text-align: center; }

blockquote { font-style: italic; }
a { text-decoration: none; color: #4682B4; }
a:visited { color: #4169E1; }
video { width: 100%; max-width: 1280px; border: 5px ridge gray; }
img { max-width: 1280px; width: 100%; border: none; }

div.category-thumbnail {
	position:  relative;
	border: 5px ridge black;
	width: 35%;
	margin: 1em; 
	padding: 1em 1em 1.5em 1em;
	display: inline-block;
	box-shadow: 0 0 2em #000;
	max-width: 400px;
}
div.category-thumbnail:hover { border-color: gray; }

div.category-thumbnail p { 
	font-weight: bold;
	margin: 0; padding: 0;
	position: absolute; 
	left: 0; bottom: 0; 
	width: 100%;
	text-align: center; 
}
div.category-thumbnail:hover > a p { color: red; }

div.category-thumbnail img { max-width: inherit; display: block; border: none; }

.gallery-page div.gallery div { max-width: 400px; display: inline-block; margin: 1em; }
.gallery-page div.gallery div img { display: block; border: 5px ridge black; box-shadow: 0 0 2em #000; }

/* Misc debris */
.small-text { font-size: smaller; }
.smoke-border { border: 5px ridge black; box-shadow: 0 0 2em #000; }

/* Instagram icons */
.ig-b- { display: inline-block; }
.ig-b- img { visibility: hidden; }
.ig-b-:hover { background-position: 0 -60px; } 
.ig-b-:active { background-position: 0 -120px; }
.ig-b-32 { width: 32px; height: 32px; background: url(https://badges.instagram.com/static/images/ig-badge-sprite-32.png) no-repeat 0 0; }

/* Responsive styles */
nav select { display: none; }
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) 
{
.ig-b-32 { background-image: url(https://badges.instagram.com/static/images/ig-badge-sprite-32@2x.png); background-size: 60px 178px; } 
}

@media screen and (max-width: 1140px) { 
   div.content { margin: 2em; }
   p { font-size: 1.25em; bottom: 2em; }
   footer { background-color: rgba(255,255,255,0.25); }
}

@media screen and (max-device-width: 812px) {
  div.header { background-position: top center; min-height: unset; }	
  div.social-media-icons { display: block; text-align: center; margin: 5rem 0 0 0; padding: 0; }  
/*  div.content { margin: 1em auto 1em auto; padding: 0.5rem 0.5rem 1.5rem 0.5rem; }*/
  div.content { margin: unset; padding: 0.5rem 1rem 1.5rem 0.5rem; }  
  h1 { margin: 0; padding: 0; }
  span.mobile { display: inline-block; padding: 0.5em 0 0.5em 0; }
  footer a { color: inherit; }  
  span.non-mobile { display: none; }
}

@media only screen and (max-device-width : 800px) {
	div.header { background-position: top center; }
	header { padding-bottom: 0; margin-bottom: 0; }
	nav { position: relative; padding: 1em; bottom: 0; text-align: center; }
	nav select { display: block; margin: 0 auto 0 auto; padding: 0; }
	nav a { display: none; }
	div.category-thumbnail { width: auto; }
	div.category-thumbnail p { font-size: medium; }
	footer { font-size: medium;}
}

