/*!
Theme Name: TOC
Theme URI: http://thoughtandfound.co/
Author: Thought & Found
Author URI: http://thoughtandfound.co/
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
 */

@media screen and (min-width: 0px) {
	/* GLOBALS */
	html {
		line-height: 1.15;
		-webkit-text-size-adjust: 100%;
	}

	body {
		margin: 0;
		padding: 15px;
		background: #f2f2e8;
	}

	@font-face {
		font-family: 'Baskerville-Alt';
		src: url('fonts/baskerville-alt-webfont.eot');
		src: url('fonts/baskerville-alt-webfont.eot?#iefix') format('embedded-opentype'),
		 		 url('fonts/baskerville-alt-webfont.woff') format('woff2'),
				 url('fonts/baskerville-alt-webfont.woff') format('woff'),
				 url('fonts/baskerville-alt-webfont.ttf') format('truetype'),
				 url('fonts/baskerville-alt-webfont.svg#webfont') format('svg');
		font-weight: normal;
		font-style: normal;
	}

	html, body, a, p, h1, h2, h3, h4, h5, h6, span {
    font-size: 12px;
		line-height: 14px;
    font-family: 'Baskerville-Alt', 'Baskerville', serif;
		font-weight: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		color: black;
		text-decoration: none;
	}

	i {
		font-family: 'Baskerville', serif;
	}

	a, ul h1, ul h4, .back, .post-nav span, .bio, .m-toggle, span.stills {
    display: inline-block;
		transition: transform ease 500ms;
	}

	.p-txt {
		transition: transform ease 500ms;
	}

	.grey {
		filter: saturate(0);
	}

	a:hover, ul h1:hover, ul h4:hover, .post-nav span:hover, .back:hover, .selected, .bio:hover, .m-toggle:hover, span.stills:hover {
		transform: skewX(-25deg);
		cursor: pointer;
	}

	.preview .visuals img {
		cursor: pointer;
		transition: filter ease 500ms;
  }

	.preview.invisible {
		display: none;
	}

	img {
		display: block;
		width: 100%;
	}

	/* HEADER */
	.col-bar {
    background: #f2f2e8;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    height: 58px;
    z-index: 12;
	}

	.desk.bio {
		display: none;
	}

	nav.main-navigation, .mob-nav-panel {
		display: none;
	}

	.mob-nav-panel {
		position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    padding: 75px 15px;
    background: #f2f2e8;
    z-index: 11;
	}

	nav.mob-navigation ul {
		padding: 0;
		list-style: none;
	}

	nav.mob-navigation ul h1 {
		margin: 0;
	}

	nav.mob-navigation ul.post-title {
		display: none;
	}

	nav.mob-navigation ul.post-title h4 {
		margin: 0;
	}

	nav.mob-navigation ul.post-title > .post-ttl:last-child {
		padding-bottom: 15px;
	}

	.mob-nav-panel span, .mob-nav-panel h1, .mob-nav-panel h4, .mob-nav-panel .bio {
	  font-size: 24px;
		line-height: 28px;
	}

	.mob-nav-panel span.indent {
    width: 15px;
  }

	.mob-nav-panel ul.post-title h4 {
    width: calc(90% - 15px);
  }

	.site-branding {
		position: fixed;
		top: 15px;
		left: 15px;
		z-index: 15;
	}

	.site-branding a {
    color: black;
    text-decoration: none;
  }

	.m-toggle {
		position: fixed;
		top: 15px;
		right: 15px;
		z-index: 15;
	}

	.site-info {
    margin-top: 70px;
	}

	.post-ttl {
    clear: both;
    overflow: hidden;
  }

	ul.post-title h4, span.indent {
		float: left;
	}

	span.indent {
    width: 11px;
  }

	ul.post-title h4 {
		width: calc(100% - 11px);
	}

	/* STILLS */
	.still-panel {
		position: relative;
		display: none;
		margin-bottom: 15px;
		background: #f2f2e8;
		margin-top: 73px;
		z-index: 10;
	}

	.stills img {
		display: block;
		width: 100%;
		margin-bottom: 15px;
	}

	/* POST PREVIEW */
	.visuals img, .iframe-container {
    margin-bottom: 15px;
  }

	.iframe-container {
		position: relative;
	  padding-bottom: 56.25%;
	  height: 0;
	  overflow: hidden;
	  max-width: 100%;
	}

	.visuals iframe {
		position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
  }

	.preview .visuals > img:last-child {
		margin-bottom: 7.5px;
	}

	.thumbnail, .excerpt {
		margin-bottom: 15px;
	}

	.thumbnail {
		max-width: 332px;
	}

	main#primary {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 15px;
		margin-top: 213px;
  }

	/* POST PANEL */
	.entry-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
		right: 0;
    padding: 15px;
		margin-bottom: 15px;
    background: #f2f2e8;
    height: 100vh;
    overflow-y: scroll;
		z-index: 10;
	}

	.bio-bg {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: #f2f2e8;
		z-index: -1;
	}

	.bio-panel {
		display: none;
		position: fixed;
    top: 0;
    left: 0;
    right: 0;
		bottom: 0;
    padding: 110px 15px 15px 15px;
    margin-bottom: 15px;
    background: #f2f2e8;
    overflow-y: scroll;
    z-index: 11;
	}

  .bio-panel p {
		margin-top: 0;
		margin-bottom: 60px;
	}

	.post-top {
    margin-top: 71px;
		margin-bottom: 7.5px;
		clear: both;
		overflow: hidden;
  }

	.back, .post-nav {
		float: left;
	}

	.post-nav {
		margin-left: 15px;
	}

	.nums {
		float: right;
	}

	.main-txt {
    margin-bottom: 120px;
  }

	.main-txt p a {
		text-decoration: underline;
	}

}

@media screen and (min-width: 568px) {
	/* GLOBALS */

	/* HEADER */

	/* POST PREVIEW */
	/* .entry-content {
		clear: both;
		overflow: hidden;
	} */

	.entry-content .s-thumbnail, .main-txt {
    width: 50%;
    width: calc(55% - 15px);
    float: left;
	}

	.entry-content .s-thumbnail {
		width: 45%;
	}

	.main-txt {
		margin-left: 15px;
		margin-top: 77.5px;
	}

}

@media screen and (min-width: 768px) {
	/* GLOBALS */
	main#primary {
		padding: 15px 15px 0px 15px;
	}

	/* HEADER */
	.m-toggle, .mob-nav-panel {
		display: none;
	}

	.desk.bio {
		display: block;
		font-size: 12px;
		position: fixed;
		right: 15px;
		top: 15px;
		z-index: 12;
	}

	nav.main-navigation {
    display: block;
    position: fixed;
    top: 15px;
    z-index: 15;
		left: 21%;
  }

	.col-bar {
		height: 130px;
	}

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

	ul h1, ul h4 {
		margin: 0;
	}

	ul.post-title {
    position: fixed;
    left: 31%;
    width: 15%;
    top: 15px;
		display: none;
  }

	.site-info {
    position: fixed;
    top: 15px;
    left: 60%;
    z-index: 15;
    margin: 0;
  }

	.bio-panel {
		padding: 225px 0 0 0;
		width: 40%;
		left: auto;
	}

	.bio-panel p {
		padding: 0 35% 0 0;
	}

	/* STILLS */
	.still-panel {
		margin-top: 198px;
	}

	/* main#primary {
		display: block;
	} */

	.stills img {
		display: inline-block;
		position: absolute;
		margin: 15px 0;
		width: 90%;
		transform: translateY(100px);
		opacity: 0;
		/* min-width: 250px; */
	}

	/* .stills img:first-child {
		opacity: 1;
	} */

	/* POST PREVIEW */
	.Half {
		width: 45%;
		width: calc(50% - 7.5px);
	}

	.entry-content .Half {
		width: 100%;
	}

	.preview {
		clear: both;
		overflow: hidden;
	}

	.thumbnail, .excerpt {
		float: left;
	}

	.thumbnail {
		width: 45%;
		max-width: none;
	}

	.excerpt {
    width: calc(55% - 15px);
		margin-left: 15px;
  }

	.excerpt p {
		padding-left: 25.5%;
		padding-right: 35%;
		margin-top: 0;
	}

	.visuals {
		font-size: 0;
		line-height: 0;
	}

	.visuals img {
		display: inline-block;
		vertical-align: top;
	}

	.preview .visuals > img.Half:nth-child(even) {
    margin-right: 15px;
  }

	/* POST PANEL */
	.post-top {
		margin-top: 191px;
	}

	.post-nav {
    margin-left: 0;
  }

	.back {
    width: 44%;
  }

	.main-txt {
		margin-top: 197.5px;
	}

	.main-txt p {
		padding-left: 25.5%;
		padding-right: 35%;
  }

	.entry-content .s-thumbnail {
		margin-bottom: 60px;
	}

}

@media screen and (min-width: 1000px) {

	/* HEADER */
	/* nav.main-navigation {
		left: 207px;
	}

	ul.post-title {
		left: 310px;
		width: 142px;
	}

	.site-info {
		left: 600px;
	} */

	/* POST PREVIEW */
	/* .entry-content {
		width: 100%;
	}

  .entry-content .s-thumbnail, .thumbnail {
	  width: 436px;
  }

  .main-txt, .excerpt {
	  width: 518.5px;
  } */

}
