/* News CPT – Frontend Styles */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: 25px 15px;
}
.news-grid-item {
	display: block;
	text-decoration: none!important;
	color: #333!important;
	border-radius: 3px;
	overflow: hidden;
	background: #eaeaea;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	border: 1px solid #cac7c7;
}
.news-grid-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.news-grid-bild {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e2e2e2;
}
.news-grid-bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.news-grid-titel {
	margin: 0;
	padding: 12px;
	font-size: calc(15px + (18 - 15) * ((100vw - 220px) / (1900 - 220)))!important;
	line-height: 1.35;
	font-weight: 400;
}
.news-grid-leer {
	opacity: 0.7;
}

/*SINGLEPOST*/
main#content.news_kategorie-news-kegeln {
    max-width: calc(350px + (1100 - 350) * ((100vw - 220px) / (1900 - 220)));
}
.news_kategorie-news-kegeln {
    margin-top: 5em;
	margin-bottom: 5em;
}
.news_kategorie-news-kegeln h1 {
    font-weight: 100;
}
.news-single-zurueck {
	margin: 50px 0 120px 0;
}
.news-single-zurueck a {
	text-decoration: none!important;
}
.news-single-zurueck a:hover {
	text-decoration: underline!important;
}
.news-single-bild {
	margin: 20px 0;
}
.news-single-bild-link {
	display: block;
	cursor: zoom-in;
}
.news-single-bild img {
	width: auto;
    height: auto;
    border-radius: 6px;
    display: block;
    max-height: 500px;
}
.news-single-untertitel {
	margin: 8px 0 0 0;
	font-size: 0.9rem;
	font-style: italic;
	opacity: 0.75;
}

.news-single-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.news-single-thumb-link {
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 4px;
	overflow: hidden;
	cursor: zoom-in;
	flex-shrink: 0;
}
.news-single-thumb-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.15s ease;
}
.news-single-thumb-link:hover img {
	opacity: 0.8;
}

.news-single-text {
	margin-top: 35px;
}

/* LIGHTBOX */
body.news-lightbox-open {
	overflow: hidden;
}
.news-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	cursor: zoom-out;
	padding: 30px;
	box-sizing: border-box;
}
.news-lightbox-overlay img {
	width: 90vw;
	height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.news-lightbox-close {
	position: absolute;
	top: 18px;
	right: 28px;
	color: #fff;
	font-size: 2.2rem;
	line-height: 1;
	cursor: pointer;
}
.news-lightbox-caption {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-size: 0.95rem;
	font-style: italic;
	opacity: 0.9;
	margin: 0;
	padding: 0 20px;
}
.news-lightbox-prev,
.news-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	padding: 10px 16px;
	user-select: none;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}
.news-lightbox-prev:hover,
.news-lightbox-next:hover {
	opacity: 1;
}
.news-lightbox-prev {
	left: 10px;
}
.news-lightbox-next {
	right: 10px;
}
.news-lightbox-zaehler {
	position: absolute;
	top: 18px;
	left: 28px;
	color: #fff;
	font-size: 0.9rem;
	opacity: 0.85;
}