/*
Theme Name: Galilei TwentyTwenty
Theme URI: https://github.com/tidythemes/blankslate
Author: Jacob Sacks-Jones
Author URI: https://jacobsacksjones.com
Description: Galilei TwentyTwenty built for Galileo Publishing and Sophisticated Games, from boilerplate Blankslate by Tidy Themes (tidythemes.com/concept).
Version: 2019.1
License: Copyrighted 2019 - Not for reuse
License URI: 
Tags: one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Text Domain: galilei

Galilei TwentyTwenty WordPress Theme © 2019 Jacob Sacks-Jones
BlankSlate WordPress Theme © 2011-2019 TidyThemes
*/

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Lusitana:wght@400;700&display=swap');

/* CSS Document */

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}body{line-height:1}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:bold}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute !important}

* {-webkit-font-smoothing: antialiased;} /* Fix workaround for Chrome ignoring font weights */

html {
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
    
    /* Vars */
    --pageWidth: 1400px;
    --pageHorizontalPadding: 3vw;
    --linkColor: #0D2279;
    --hoverColor: rgba(227,36,20,1.00);
}

body {
	font-family: 'Lusitana','Ibarra Real Nova', serif;
}

body ::selection {
	background: #111;
	color: #fff;
}


/*------------------------------------*\
    Home Splash
\*------------------------------------*/

#homepage-content img {
	width: 100%;
	max-width: 720px;
}

.homepage-container {
	width: 720px !important;
}


/*------------------------------------*\
   Page Structure
\*------------------------------------*/

header {
    width: 100%;
    position: sticky;
    top: 0px;
    left: 0px;
    padding-top: 1vh;
    padding-bottom: 1vh;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
    background: rgba(246, 246, 246, 1);
    border-bottom: 1px solid #ccc;
    z-index: 99;
}

#header-inner {
    height: 100%;
    max-width: var(--pageWidth);
    padding-left: var(--pageHorizontalPadding);
    padding-right: var(--pageHorizontalPadding);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}

#wrapper {
    width: 100%;
    max-width: var(--pageWidth);
    padding-left: var(--pageHorizontalPadding);
    padding-right: var(--pageHorizontalPadding);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3vh;
}

@media all and (max-width: 1300px) {
    #header-inner {
       max-width: 100%; 
    }
    
    #wrapper {
        max-width: 100%;
    }
}

#container {
    width: 100%;
    box-sizing: border-box;
}

#container > h1 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 30px;
}

#container > h1.search-title {
    font-size: 1.5em;
}

#footer {
	position: fixed;
	bottom: 0px;
	left: 0px;
	width: 100%;
	font-size: 8pt;
	padding-top: 10px;
	padding-left: 10px;
	padding-bottom: 10px;
	z-index: 5;
}

/* Nav */

#site-title {
    width: 30%;
    max-width: 200px;
    margin-right: 4vw;
    display: flex;
    align-items: center;
    justify-content: left;
}

#site-title img {
    width: 100%;
    height: auto;
    border: 0px;
    outline: 0px;
}

nav {
	font-family: 'Lusitana','Ibarra Real Nova', serif;
    box-sizing: border-box;
	left: 0px;
	top: 0px;
	z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

nav > div {
    width: 100%;
}

nav li {
    display: inline-block;
	color: #000;
	font-size: 1em;
	padding-right: 1.5vw;
	padding-bottom: 0.5vh;
	padding-top: 0.5vh;
}


nav li a {
	color: #000;
	text-decoration: none;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

nav li a:hover {
	text-decoration: underline;
    color: var(--hoverColor);
}

nav .main-menu-categories li {
    font-size: 0.92em;
    padding-right: 1.2vw;
}

nav li.current-menu-item {
	text-decoration: underline; 
}

nav li.current-menu-item a {
    color: var(--hoverColor);
}

/* Search */

#search-nav {
    width: 25%;
    display: flex;
    justify-content: right;
    align-items: center;
}

#search-nav > form {
    width: 100%;
    max-width: 250px;
}

#search-nav #search-label {
    display: flex;
    justify-content: space-between;
}

#search-nav #search-input {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 3px;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
    font-family: 'Lusitana','Ibarra Real Nova', Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    font-size: 1rem;
}

#search-nav #search-submit { /* Currently not shown */
    width: 10%;
    box-sizing: border-box;
    border: none;
    font-family: 'Lusitana','Ibarra Real Nova', Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif";
    font-size: 5vw;
    padding: 5px;
    font-weight: bold;
    border-radius: 5px;
    background: none;
    color: rgba(41,41,41,1.00);
    cursor: pointer;
    text-align: right;
}

#search-nav #search-submit:hover {
    color: var(--linkColor);
}

/*------------------------------------*\
    INDEXES
\*------------------------------------*/

#index-wrapper {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(270px, 1fr));
    column-gap: 1.5vw;
    row-gap: 0.1vh;
    grid-auto-rows: 400px;
}

@media all and (max-width: 580px) {
    #index-wrapper {
        grid-template-columns: 100%;
        grid-auto-rows: 1fr;
    }
}

#index-wrapper .single-title {
    height: 100%;
    width: 100%;
}

#index-wrapper .single-title a {
    color: #000;
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    height: 100%;
}

#index-wrapper .single-title .title-image {
    width: 100%;
    height: calc(100% - 9em);
}

#index-wrapper .single-title .title-text {
    height: 8em;
    width: 100%;
}

#index-wrapper .title-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    border-color: transparent;
    outline: none;
    outline-color: transparent;
    outline-width: 0px;
    /*opacity: 1;
    -webkit-transition: opacity 0.1s linear;
    transition: opacity 0.1s linear;*/
    object-position: left;
}

#index-wrapper .single-title a h1 {
    margin-bottom: 0.5em;
    font-size: 1.12em;
    text-decoration: none;
    line-height: 115%;
}

#index-wrapper  .single-title a .credit {
    font-size: 0.9em;
    text-decoration: none;
}

#index-wrapper  .single-title a .meta {
    display: none;
    font-size: 0.9em;
    margin-top: 0.1vh;
    text-decoration: none;
}

@media all and (max-width: 795px) {
    /* Go full width */
    #index-wrapper .single-title {
        max-width: 720px;
        max-height: unset;
    }
    
    #index-wrapper .title-image {
        height: unset;
        min-height: 10px; /* Arbitrary minimum to give height before load and prevent loading bugs */
    }

}

#index-wrapper .single-title a:hover {
    color: var(--hoverColor);
}


#index-wrapper .single-title a:hover h1 {
    text-decoration: underline;
    color: var(--hoverColor);
}

#index-wrapper .single-title a:hover .title-image img {
    /*opacity: 0.8;*/
}

/*------------------------------------*\
    tMOBI-NAV
\*------------------------------------*/

#mobile-menu-button {
	display: none;
    font-size: 3vh;
    opacity: 0.8;
    cursor: pointer;
}

#mobile-menu-button:hover, #mobile-menu-button:active, #mobile-menu-button.open {
    opacity: 1;
}

@media all and (max-width: 620px) {
    header {
        height: 10vh;
    }
    
    #site-title img {
        max-height: 8vh;
        width: auto;
    }
    
    #mobile-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    nav {
        display: none;
        position: fixed;
        width: 100vw;
        height: 90vh;
        background: #fff;
        top: 10vh;
        padding: 5vw;
        box-sizing: border-box;
        overflow-y: scroll;
        padding-bottom: 7vh;
    }
    nav.open {
        display: flex;
    }
    nav li {
        display: block;
    }
    nav li, nav .main-menu-categories li {
        font-size: 1.1rem;
        padding-right: 0px;
        padding-left: 0px;
        padding-bottom: 1vh;
        padding-top: 1vh;
    }
    #search-nav {
        display: none;
    }
    #search-nav.open {
        display: block;
        position: fixed;
        bottom: 1.5vh;
        width: 90vw;
        left: 5vw;
        z-index: 10;
    }
    #search-nav.open > form {
        max-width: 100%;
    }
    
    #search-nav.open #search-input {
        font-size: 1.2rem;
        padding-left: 2vw;
        padding-right: 2vw;
    }
}

.mobile-nav {
	display: none;
	width: 100% !important;
	position: fixed;
	left: 0px !important;
	top: 100px;
	z-index: 10;
	height: 100%;
}

.mobile-nav .menu-nav-container {
	height: 75%;
	overflow: scroll;
	border-bottom: 1px solid #DEDEDE;
}

.mobile-nav::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}
 .mobile-nav::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0,0,0,.5);
	box-shadow: 0 0 1px rgba(255,255,255,.5);
	-webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.mobile-branding {
	height: 102px !important;
}

.mobile-branding #site-title {
	margin-left: 21px !important;
	margin-top: 10px !important;
}

.mobile-footer {
	position: relative !important;
	padding-top: 60px;
}

.mobile-menu-active {
	opacity: 1 !important;
}

#mobile-menu-button img:active {
	opacity: 1;
}

.mobile-nav li a {
	color: #000;
	background: rgba(255,255,255,0.93);
	text-align: left;
	display: block;
	width: 100%;
	font-size: 15pt;
	line-height: 30px;
}

.mobile-nav li a:first-of-type {
	padding-top: 4px;
	padding-bottom: -1px;	
}

/*------------------------------------*\ 


/*------------------------------------*\
    Page & Content Styling
\*------------------------------------*/

article {
	font-size: 1em;
}

article p:first-of-type {
	margin-top: 20px;
}

article p {
	margin-bottom: 1.3em;
	line-height: 135%;
}

article h1 {
	font-size: 2em;
	font-weight: bold;
	margin-bottom: 10px;
}

article strong {
	font-weight: bold;
}

article em {
	font-style: italic;
}

article i {
	font-style: italic;
}

article a {
	color: var(--linkColor);
	text-decoration: none;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

article a:hover {
	color: var(--hoverColor);
	text-decoration: underline;
}

article .alignleft {
	float: left;
	padding-right: 12px;
	padding-bottom: 2px;
	clear: left;
    box-sizing: content-box
}

article .alignright {
	float: right;
	padding-left: 12px;
	padding-bottom: 2px;
	clear: right;
    box-sizing: content-box
}

article #smart-button-container {
    margin-top: 5vh;
}

/*------------------------------------*\
    Single Post Specific
\*------------------------------------*/

.entry-meta {
	font-size: 90%;
	margin-bottom: 10px;
}

.entry-meta a {
	color: var(--linkColor);
	text-decoration: none;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

.entry-meta a:hover {
	color: var(--hoverColor);
	text-decoration: underline;
}

.entry-content {
    padding-top: 30px;
}

.entry-content-body {
    display: flex;
    flex-wrap: wrap;
}

.entry-content-body .content {
    width: 40%;
    flex: 23rem;
}

.entry-content-body .image {
    padding-right: 5vw;
    margin-bottom: 3vh;
    max-width: 60%;
    box-sizing: border-box;
}

@media all and (max-width: 960px) {
    .entry-content-body .image {
        max-width: 100%;
    }
}

.entry-content-body .image img {
    max-height: 800px;
    width: auto;
    max-width: 100%;
    height: auto;
}

.entry-content-body .content p:first-of-type {
    margin-top: 0px;
    padding-top: 0px;
}

.publication-info-group {
	margin-top: 40px;
	margin-bottom: 25px;
	padding-bottom: 10px;
	clear: both;
	padding-top: 10px;
}

.publication-info {
	font-size: 10.5pt;
	line-height: 120%;
	padding-bottom: 20px;
	padding-top: 20px;
	padding-left: 15px;
	border-top: 1px solid #000;
}

.publication-info .buy-online {
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

.pub-title {
}

.pub-small {
	font-size: 9.5pt;
}

.purchase-link a {
	border: 1px solid;
	border-color: #686868;
	border-radius: 3px;
	background: #fff;
	color: #000;
	width: 150px;
	padding: 8px;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 25px;
	display: block;
	-webkit-transition: all 0.4s ease;
	-moz-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

.purchase-link a:hover {
	border-color: #979797;
	background: #181818;
	color: #fff;
	text-decoration: none;
}


/*------------------------------------*\
   Mobile Single Post Specific
\*------------------------------------*/

.mobile-wrapper #container {
	position: absolute;
	top: 135px;
	left: 8px;
	width: 95%;
	max-width: 95%;
}

.mobile-wrapper .attachment-post-thumbnail {
	width: 100% !important;
}

.mobile-wrapper .purchase-link a {
	width: 250px;
}

.mobile-wrapper article {
	font-size: 13pt;
}

.home .mobile-footer {
	position: fixed !important;
}

.page-template-default .mobile-footer {
	display: none;
}


/*------------------------------------*\
    Custom Posts (back-end) re-styling
\*------------------------------------*/

.acf-message-small-margin {
	margin-top: -12px;
	margin-bottom: -12px;
}