/*
Theme Name: Intertrab
Author: R. Kretschmann
Author URI: 
Version: 2.3.0
Text Domain: intertrab
*/


/* Layout */
* {
	box-sizing: border-box;
}

html {
	max-width: 1920px;
	margin: 0 auto;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex-grow: 1;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 90%;
}

/* Tables */
.is-style-blank table {
	width: auto;
}

.is-style-blank td {
	border: none;
	padding: 0;
	vertical-align: top;
}

.is-style-blank td + td {
	padding-left: .5em;
}

/* Forms */
input, textarea, select {
	font-size: 1rem;
	padding: .5em;
}

.wpcf7-form p > label {
	display: block;
	padding: .5em 0;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	display: block;
	width: 100%;
}

.wpcf7-list-item {
	margin-left: 0;
}

@media screen and (min-width: 768px) {
	.wpcf7 .group {
		margin: 1em 0;
		display: flex;
		gap: 2em;
	}

	.wpcf7 .group > * {
		margin-top: 0;
		margin-bottom: 0;
		flex-grow: 1;
	}
}

/* Custom */

body {
	box-shadow: 0 0 9px rgba(0, 0, 0, 0.2);;
}

/* https://github.com/WordPress/gutenberg/issues/60505 */
.wp-block-gallery {
	--wp--style--gallery-gap-default: var(--wp--preset--spacing--40);
}

.wp-block-post-featured-image {
	background: #E0E0E0;
	border: 1px solid #E0E0E0;
}

.wp-block-post-featured-image img {
	object-fit: contain !important;
}

.entry-content > :first-child.alignfull {
	margin-top: calc(var(--wp--preset--spacing--60) * -1);
}

.wp-block-post-template .page {
	position: relative;
}

.wp-block-post-template .page img {
	object-fit: cover !important;
}

.wp-block-post-template .page .wp-block-post-title {
	position: absolute;
	max-width: 90%;
	left: 50%;
	transform: translateX(-50%);
	bottom: 1em;
}

.wp-block-post-template .page .wp-block-post-title a {
	background: var(--wp--preset--color--secondary);
	color: #FFFFFF;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	white-space: nowrap;
}

.is-style-partner {
	padding: .3em 1em;
	background: #E0E0E0;
}

.rund-um-den-trabant li {
	background: #E0E0E0;
}

.rund-um-den-trabant li figure {
	margin-bottom: 0;
}