/*
 Theme Name:   Fasto Child
 Theme URI:    https://github.com/openmindculture/wp-fasto-child-theme/i
 Description:  Fasto Child Theme
 Author:       Ingo Steinke
 Author URI:   https://www.ingo-steinke.com/
 Template:     fasto
 Version:      1.2.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         Tags: 404, inclusive, footer, search, ux, usability, accessibility
 Text Domain:  fastochild
*/

/* raise body font color contrast */

body  {
	color: #383d4f;
}

/* fix distorted image size in default gallery detail view */
img {
    max-width: 100%;
    height: auto
}

/* hide redundant poster image */
.single .article-single .post-thumb {
    display: none;
}

footer .widget p,
footer .widget p a {
    font-size: 16px;
    line-height: 1.5;
    color: white;
}

footer .widget p a:link,
footer .widget p a:visited {
    text-decoration: underline;
}

/* harmonize column heights */
.post-thumb .cover-image {
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* 2-column footer */
@media (min-width: 1024px) {
    #footer-widgets .col-desktop-4:nth-child(2) {
        flex: 0 0 65%;
        max-width: 65% !important;
    }
        #footer-widgets .col-desktop-4:nth-child(3) {
    	display:none;
    }
}

.copyright-user a, .copyright-fasto a {
    color: #114791;
}

/* mobile more calm and compact */

@media (max-width: 767px) {
	.site-grid {
		margin-top: 0;
	}
	header#theme-header {
		width: 100vw;
		max-width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		padding-left: 0;
		padding-right: 0;
	}
	header#theme-header nav {
		grid-column: 1;
		grid-row: 1;
	}
	header#theme-header .logo {
		flex-direction: column;
		justify-content: center;
		grid-column: 2;
		grid-row: 1;
	}
	header#theme-header .search-mobile {
		grid-column: 3;
		grid-row: 1;
	}
	header#theme-header .site-title {
		text-align: center;
		font-size: 1rem;
	}
	header#theme-header p {
		text-align: center;
		font-size: .75rem;
		line-height: 1;
	}
}
