/*
Theme Name:   Model Maker
Description:  Child theme of Sydney for model-maker.cz. Holds the site-specific look so the parent theme can be updated safely.
Template:     sydney
Version:      1.1.0
Text Domain:  model-maker
*/

/* Font: Source Sans 3 from this theme (fonts.css). Sydney's own font options are set to
   "System default" so that it does not load anything from Google. */
body,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6, .site-title,
#mainnav > div > ul > li > a {
	font-family: "Source Sans 3", sans-serif;
}
h1, h2, h3, h4, h5, h6, .site-title {
	font-weight: 600;
}

/* Header menu: white on red, light yellow on hover / current page. */
#mainnav ul li a:hover,
.main-header #mainnav .menu > li > a:hover,
#mainnav .current-menu-item > a,
#mainnav .current_page_item > a {
	color: #f9d78b;
}

/* Home page: the tile row and the banner below it join seamlessly, like on the old site. */
.home .entry-content .wp-block-group > .wp-block-image,
.home .entry-content > .wp-block-group:first-child {
	margin: 0;
}

/* Gallery page: red content area with captions under the thumbnails (old Photo Gallery look). */
.page-galerie .site-main {
	background: #df1610;
	padding: 30px 40px 40px;
}
.page-galerie .wp-block-gallery {
	margin-bottom: 40px;
}
.page-galerie .wp-block-gallery.has-nested-images figure.wp-block-image {
	justify-content: flex-start;
	flex-grow: 0; /* keep thumbnails in the last row the same size */
}
.page-galerie .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 1;
	height: auto;
	flex: none;
}
.page-galerie .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
	display: none;
}
.page-galerie .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	background: none;
	max-height: none;
	overflow: visible;
	padding: 6px 4px 0;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: none;
}

/* Contact map. */
.mm-map {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}
.mm-map-link {
	text-align: center;
	font-size: 14px;
}

@media (max-width: 781px) {
	.page-galerie .site-main {
		padding: 20px 12px;
	}
	.page-galerie .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
		font-size: 12px;
	}
}
