.mod_portfoliolist .item {
	border: 10px solid transparent;
}

.mainmenu ul li {
/*	margin-right: 0px; */
}

h6	{
	margin-bottom: 0px;
	font-size: 1.0rem;
}

.ce_downloads li	{
	border-bottom: 0px;
	margin-bottom: 0px;
	padding-bottom: 0px;
	padding-top: 2px;
}

.mod_article.article-pt-s > .container {
    padding-top: 50px !important;
}

.rechtsrueber {
	padding-left: 50px;
	padding-right: 200px;
}

@media (max-width: 767px) {
	.rechtsrueber {
		padding-left: 0;
	}
}

/* Nachrichtenliste */
.news_title_menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news_title_menu li {
	margin: 0;
}

.news_title_menu a {
	display: block;
	padding: 8px 10px;
	text-decoration: none;
	border-bottom: 1px solid #e5e5e5;
}

.news_title_menu a:hover,
.news_title_menu a:focus {
	background: #f6f6f6;
}

.news_title_menu li.is-active a {
	font-weight: 600;
	background: #f2f2f2;
	color: #000;
}

/* Galerie */
.gallery_right_wrapper {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.gallery_main_image {
	flex: 1 1 auto;
	min-width: 0;
}

.gallery_main_image a,
.gallery_main_image .gallery_main_stage {
	display: block;
	width: 100%;
}

.gallery_main_stage {
	width: 100%;
	max-width: 700px;
	height: 520px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.gallery_main_stage img {
	display: block;
	width: auto;
	height: 90%;
	max-width: 100%;
	max-height: 90%;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}
.gallery_thumbs_right {
	flex: 0 0 140px;
	height: 550px;
	display: flex;
	align-items: flex-start;
	overflow: hidden;
}

.gallery_thumbs_right_inner {
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
/*	padding-top: 30px; */
	box-sizing: border-box;
}

.gallery_thumbs_right ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 0;
	row-gap: 2px;
}

.gallery_thumbs_right li {
	margin: 0;
	padding: 0;
}

.gallery_thumbs_right a {
	display: block;
/*	border: 1px solid #e3e3e3; */
	padding: 2px;
	box-sizing: border-box;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery_thumbs_right a:hover {
	border-color: #cfcfcf;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.gallery_thumbs_right a.active {
/*	border-color: #666; */
/*	box-shadow: 0 0 0 1px #666; */
}

.gallery_thumbs_right img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
	margin: 0;
}

.gallery_thumbs_right ul,
.gallery_thumbs_right ul.cols_2 {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 0 !important;
	row-gap: 2px !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.gallery_thumbs_right ul.cols_2 li,
.gallery_thumbs_right ul li,
.gallery_thumbs_right li.entry {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.gallery_thumbs_right ul.cols_2 li::before,
.gallery_thumbs_right ul.cols_2 li::after,
.gallery_thumbs_right ul li::before,
.gallery_thumbs_right ul li::after {
	content: none !important;
	display: none !important;
}

/* Lightbox */
body.gallery_lightbox_open {
	overflow: hidden;
}

.gallery_lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.gallery_lightbox.is_open {
	display: block;
}

.gallery_lightbox_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.gallery_lightbox_content {
	position: relative;
	z-index: 2;
	width: min(1200px, calc(100vw - 40px));
	height: min(92vh, 900px);
	margin: 4vh auto;
	display: flex;
	flex-direction: column;
}

.gallery_lightbox_close {
	position: absolute;
	top: 100px;
	right: 10px;
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 40px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
}
.gallery_lightbox_stage_wrap {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 0;
}

.gallery_lightbox_stage {
	flex: 1 1 auto;
	height: 100%;
	background: rgba(255, 255, 255, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	min-width: 0;
}

.gallery_lightbox_stage img {
	display: block;
	width: auto;
	height: auto;
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}

.gallery_lightbox_caption {
	color: #fff;
	text-align: center;
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.4;
	min-height: 20px;
	width: 100%;
}

.gallery_lightbox_nav {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.42);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery_lightbox_nav:hover {
	background: rgba(40, 40, 40, 0.62);
	border-color: rgba(255, 255, 255, 0.38);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	transform: scale(1.04);
}

.gallery_lightbox_nav:active {
	transform: scale(0.98);
}

.gallery_lightbox_nav:focus {
	outline: none;
}

.gallery_lightbox_nav:focus-visible {
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.28),
		0 0 0 4px rgba(255, 255, 255, 0.12),
		0 6px 20px rgba(0, 0, 0, 0.28);
}

.gallery_lightbox_thumbs {
	margin-top: 14px;
	display: flex;
	justify-content: center;
}

.gallery_lightbox_thumbs_inner {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 4px;
	justify-content: center;
	max-width: 100%;
	margin: 0 auto;
}

.gallery_lightbox_thumb {
	display: block;
	flex: 0 0 72px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	overflow: hidden;
	opacity: 0.75;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery_lightbox_thumb:hover,
.gallery_lightbox_thumb.active {
	opacity: 1;
	border-color: #fff;
}

.gallery_lightbox_thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 767px) {
	.gallery_right_wrapper {
		flex-direction: column;
	}

	.gallery_thumbs_right {
		flex: none;
		width: 100%;
		height: auto;
		display: block;
		overflow: visible;
	}

	.gallery_thumbs_right_inner {
		max-height: none;
		overflow: visible;
		padding-top: 0;
	}

	.gallery_thumbs_right ul {
		grid-template-columns: repeat(2, 1fr);
		column-gap: 4px;
		row-gap: 8px;
	}

	.gallery_main_stage {
	/*	max-width: 100%; */
	/*	aspect-ratio: 4 / 3; */
		justify-content: center;
		height: auto;
	}

	.gallery_main_stage img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
		object-position: center center;
		margin-left: auto;
		margin-right: auto;
	}

	.gallery_lightbox_content {
		width: calc(100vw - 20px);
		height: calc(100vh - 20px);
		margin: 10px auto;
	}

	.gallery_lightbox_stage_wrap {
		gap: 8px;
	}

	.gallery_lightbox_nav {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		font-size: 20px;
	}

	.gallery_lightbox_thumb {
		flex-basis: 60px;
	}

	.gallery_lightbox_stage img {
		max-width: 90%;
		max-height: 90%;
	}

    table {
        font-size: 1rem;

	}
}