/*
Theme Name: Gymnasium Alfeld
Author: Maximilian Rogalski <rog@christmann.info>
Author URI: https://christmann.info
Description: Theme für Gymnasium Alfeld.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gym-alfeld
*/

/* make a class "img-scale-up" with an hover effect */
.img-scale-up-effect {
	transition: transform 0.2s ease-in-out;
}

.img-scale-up-effect:hover {
	transform: scale(1.1);
}

.no-scroll {
	overflow: hidden;
}

@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 400;
	src: url("./assets/webfonts/icon-buttons/roboto-condensed-v27-latin-regular.woff2")
		format("woff2");
	font-display: swap;
}

:root {
	--gym-alfeld-diagonal-cut: 70%;
}

.is-style-complete-line {
	width: 100%;
	border-top: 1px solid;
	padding: 0 20px;
	margin-left: -20px;
}

.diagonal-cut img {
	clip-path: polygon(0 0, 100% 0, 100% var(--gym-alfeld-diagonal-cut), 0 100%);
}

@media (max-width: 879px) {
	.diagonal-cut img {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
	}
}

.white-border img {
	border: 10px solid rgb(255, 255, 255);
	border-radius: 6px;
	box-sizing: border-box;
}

.wp-latest-post-more-posts {
	padding: 20px;
}

.wp-latest-post-more-posts h2 {
	color: #0077bb;
}

.wp-latest-post-more-posts ul {
	list-style-type: none;
	padding: 0;
}

.wp-latest-post-more-posts ul li {
	margin-bottom: 5px;
}

.wp-latest-post-more-posts a {
	text-decoration: none;
	color: #0077bb;
}

.wp-latest-post {
	padding: 20px;
}

.wp-latest-post-container {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	background-color: white;
	border-radius: 8px;
	box-sizing: border-box;
}

.wp-latest-post-container .wp-latest-post-content {
	padding: 20px;
	padding-right: 90px;
}

.wp-latest-post-container .wp-latest-post-content .wp-latest-post-title {
	color: #00496a;
	font-size: 32px;
	margin: 0;
	/* margin-bottom: 40px; */
	/* padding: 15px; */
	font-weight: 300;
}

.wp-latest-post-container .wp-latest-post-content .wp-latest-post-author {
	font-size: 20px;
	color: grey;
	padding: 15px 15px 0 0;
}

.wp-latest-post-container .wp-latest-post-content .wp-latest-post-excerpt {
	font-size: 20px;
	/* margin-top: 40px; */
	margin: 0;
	padding: 15px;
}

.wp-latest-post-container .wp-latest-post-image img {
	border-radius: 8px 8px 0 0;
	width: 100%;
	object-fit: cover;
}

.wp-latest-post-container .wp-latest-date-badge {
	background-color: #883a7f;
	position: absolute;
	justify-content: center;
	align-items: center;
	top: 0;
	right: 0;
	display: grid;
	grid-template-rows: auto auto;
	color: white;
	border-radius: 0 8px 0 8px;
	overflow: hidden;
}

.wp-latest-post-container .wp-latest-date-badge .wp-latest-post-day {
	padding: 16px;
	text-align: center;
	font-size: 40px;
}

.wp-latest-post-container .wp-latest-date-badge .wp-latest-post-month-year {
	padding: 16px;
	font-size: 28px;
	background-color: #a65c9f;
	text-align: center;
}

.wp-latest-post-container .wp-latest-side-note-badge {
	height: 40px;
	display: grid;
	place-items: center;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px 30px;
	background-color: #00496a;
	color: white;
	border-radius: 8px 0 8px 0;
	font-size: 32px;
}

.wp-latest-post-container
	.wp-latest-post-content
	.wp-latest-post-excerpt
	table {
	width: initial !important;
	height: initial !important;
}

.entry-content {
	margin-block-start: 0px !important;
}

/* 1024px */

@media (max-width: 1024px) {
	.wp-latest-post-container {
		max-width: 100%;
	}
	.wp-latest-post-container .wp-latest-post-content {
		padding-right: 30px !important;
	}
	.wp-latest-post-container .wp-latest-post-content .wp-latest-post-excerpt {
		padding: unset;
	}
	.table-container-gym-alfeld {
		overflow: auto;
	}

	.wp-latest-post-container .wp-latest-post-content .wp-latest-post-title {
		font-size: 30px !important;
	}

	.wp-latest-date-badge .wp-latest-post-day {
		font-size: 20px !important;
		padding: 10px !important;
	}
	.wp-latest-date-badge .wp-latest-post-month-year {
		font-size: 16px !important;
		padding: 10px !important;
	}
}
