/* 
Theme Name:   Fabulist Child Theme
Theme URI:    https://wordpress.org/themes/Fabulisty/
Description:  A Fabulist child theme 
Author:       Kaitlyn Threndyle
Author URI:   Kaitlynthrendyle.com
Template:     fabulist
Version:      1.0.0
Text Domain:  fabmulistchild
*/

/* Colors */

p {
    color: var(--text-color);
}
a {
	color: var(--text-color);
}
a:hover,
a:focus,
a:active {
	color: var(--accent-color);
}

a:hover,
.main-navigation a:hover,
.main-navigation a:hover,
.main-navigation ul.menu li.current-menu-item > a:hover {
color: var(--accent-color);
border-bottom-color: var(--accent-color);
}

article .entry-title a:hover,
article .entry-title a:focus {
    color: var(--accentcolor);
}

/* Header 2 */

html,
body {
    height: 100%;
    background-color: white;
}

html {
    font-family: "proxima-nova", sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "proxima-nova", sans-serif;
}

#page {
    height: 100%;
    overflow-x: unset;
}

.site-header-2 {
    position: relative;
}

.site-header-main {
	display: -webkit-box;   /* OLD - iOS 6-, Safari 3.1-6, BB7 */
	display: -ms-flexbox;  /* TWEENER - IE 10 */
	display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
	display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

.site-branding {
    margin: 0 auto 0 0;
    text-align: left;
    padding-top: 25px;
}

.site-title a {
    font-size: 2rem;
    font-family: "proxima-nova", sans-serif;
    font-style: italic;
    font-weight: 400;
}

.site-socials__mobile {
    display: none; /* will be toggled with js */
    padding: 20px;
}

.site-socials__desktop {
    display: none;
}

.site-socials__mobile .site-socials_icons,
.site-socials__desktop .site-socials_icons {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
}

.social_icon a {
    border-bottom: none;
}

.site-socials_icons svg {
    width: 18px;
    height: 23px;
}

.main-navigation {
    text-align: left;
    background: transparent;
    position: unset;
    margin-bottom: 0;
}


svg.icon-menu,
.menu-open .menu-toggle .icon-close {
    fill: #272B2F;
}

.main-navigation li  a {
    font-weight: 400;
    padding: 0;
}

.main-navigation ul.menu li.current-menu-item > a {
    color: #272B2F;
}
.current-menu-item:not(.filter) a,
.current-menu-item.active a {
    font-weight: 700;
}

.site-header-2 #filter-portfolio ul li:before {
	content: '';
	margin: 0;
}

.site-header-2 #filter-portfolio ul li a {
	padding: 10px 0;
    line-height: normal;
    float: unset;
}

.blog-posts-wrapper {
    margin: 0;
}

@media screen and (min-width: 767px) {
    .column-3 article {
        box-sizing: border-box;
        padding: 0 1% 1% 0;
        width: 33%;
    }
}

/* Masonry CSS */

.image-focus-masonry .blog-posts-wrapper article .post-wrapper {
    position: relative;
}
.image-focus-masonry .blog-posts-wrapper article.has-post-thumbnail .entry-container {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    width: 100%;
    height: 100%;
    margin: auto;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.9);
    padding: 25px;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translate( -50%, -50% );
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}
.image-focus-masonry .blog-posts-wrapper article.has-post-thumbnail .entry-container:after {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    content: "";
}
.image-focus-masonry .blog-posts-wrapper article.has-post-thumbnail .entry-container .entry-content {
    display: none;
}
.image-focus-masonry .blog-posts-wrapper article.has-post-thumbnail:hover .entry-container {
    opacity: 1;
}

.hentry {
    margin: 0;
}


/*--------------------------------------------------------------
# Filter Posts (Main Nav)
--------------------------------------------------------------*/
.menu-inside-wrapper {
	margin: 0;
    padding: 0;
    right: 0;
    top: 100%;
	display: block;
    position: absolute;
    z-index: 999999;
    width: 250px;
    background: white;
}
.main-navigation ul.nav-menu {
    background-color: white;
    border-top: none;
    margin-top: 0;
}
.filter-portfolio-category {
	float: left;
	margin-right: 5px;
	font-weight: 700;
}
.filter-portfolio-tag {
	float: left;
	margin-right: 5px;
	font-weight: 700;
}

#filter-portfolio .cat-filter ul,
#filter-portfolio .tag-filter ul {
	padding: 0;
	float: left;
}

#filter-portfolio ul li {
    float: unset;
	padding: 0;
}

#filter-portfolio ul li.active a {
	font-weight: 700;
}

.page-header .cat-links {
    position: relative;
    margin-right: 10px;
}
.page-header .cat-links:not(:last-of-type):after {
	content: ', ';
    position: absolute;
    right: -5px;
}

.home .post__event-date {
    display: none;
}

/*--------------------------------------------------------------
# Posts (Main Nav)
--------------------------------------------------------------*/

.post__meta,
.post__company {
    display: flex;
    justify-content: center;
}

.post__company {
    font-size: 1.75rem;
    font-weight: 300;
}

.post__meta {
    font-size: 1.25rem;
}

.single-post .post__meta,
.single-post .post__company {
    justify-content: flex-start;
}
.single-post .post__company a {
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
}
.single-post .post__company a:hover {
    border-bottom-color: var(--accent-color);
}
.post__video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
}
.post__video iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*--------------------------------------------------------------
# Additional Grid pages
--------------------------------------------------------------*/
.grid-item {
    display: flex;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.grid-item--black {
    background-color: #000;
}

.page .grid-item {
    height: 300px;
    max-width: 300px;
}


/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media screen and (min-width:  768px) {
    .page .grid-item {
        width: 100%;
    }
}

@media screen and (min-width:  1024px) {
    html, body {
        overflow-x: inherit;
    }
    #masthead-2 {
        overflow-y: scroll;
        top: 0;
        bottom: 0;
        max-width: 250px;
        position: fixed;
    }

    .site-header-main {
        flex-direction: column;
        padding: 0 30px;
    }

    .main-navigation li {
        display: block;
    }

    .site-branding {
        text-align: center;
        padding-top: 50px;
    }
    .site-title {
        margin: 16px 0;
    }

    .site-title a {
        font-size: 3rem;
    }

    .site-content-2 {
        left: 250px;
        position: absolute !important;
        right: 0;
        top: 0;
        -webkit-transition: all 0.3s ease-in-out;
        -moz-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
    }

    .site-content-2 .wrapper.page-section {
        margin: 0;
        width: 100%;
    }

    .site-socials__desktop {
        display: block;
    }

    .site-socials__mobile {
        display: none;
    }

    .menu-inside-wrapper {
        padding: 20px 0;
        position: static;
        width: 100%;
    }

}