:root {
	/* --show-pos-borders: 1px solid !important; */
	--space-slider-left: 175px;
	--space-slider-right: 175px;
	
	--ref-max-item-width: 250px;
	--ref-img-mirror-border: 20px;
	--ref-item-margin: 10px;
	--item-count: 1;
	--max-content-width: calc(((var(--item-count) * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)));
	--news-shadow-style: 5px 5px 8px var(--color-main-shadow-trans);
}
/*
@media (min-width: 2500px) {
	:root {
		--max-content-width: calc(((8 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 2200px) and (max-width: 2500px) {
	:root {
		--max-content-width: calc(((7 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 1850px) and (max-width: 2200px) {
	:root {
		--max-content-width: calc(((6 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 1560px) and (max-width: 1850px) {
	:root {
		--max-content-width: calc(((5 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 1280px) and (max-width: 1560px) {
	:root {
		--max-content-width: calc(((4 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 1015px) and (max-width: 1280px) {
	:root {
		--max-content-width: calc(((3 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
@media (min-width: 750px) and (max-width: 1015px) {
	:root {
		--max-content-width: calc(((2 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
		}
}
@media (max-width: 750px) {
	:root {
		--max-content-width: calc(((1 * var(--ref-max-item-width)) + var(--space-slider-left) + var(--space-slider-right)) / 0.875);
		--height-factor: 1.0;
	}
}
*/

.link-ref-item {
	perspective: inherit;
	perspective-origin: inherit;
}
.link-ref-item:link,
.link-ref-item:visited {
	color: var(--color-main-text);
	text-decoration: none;
	perspective: inherit;
	perspective-origin: inherit;
}
.link-ref-item:hover  {
	/* opacity: 0.85; */
	background-color: rgba(209, 216, 222, 0.2);
	color: var(--color-primary-element-light);
	text-decoration: none;
}
/* .link-ref-item:hover  > div > div.ref-item-img {
	
} */
.link-ref-item:active {
	color: var(--color-main-text);
	text-decoration: none;
}

.ref-text-bold {
	font-weight: 700;
}
.mymod-news {
	width: 100%;
	min-height: 480px;
	position: relative;
	border: var(--show-pos-borders);
	border-color: magenta;
	padding: 0;
	height: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
}

.vertical-center {
	border: var(--show-pos-borders);
	border-color: cyan;
	position: relative;
	width: 100%;
	height: auto;
	margin-top: auto;
	margin-bottom: auto;
}

.ref-slide-screen {
	position: relative;
	border: var(--show-pos-borders);
	border-color: yellow;
	width: var(--max-content-width);
	height: 370px;
	padding: 0;
	margin-left: auto;
	margin-right: calc(100% - var(--pos-content-left) - var(--width-content));
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
}

.ref-grey-bar {
	/* background-color: var(--color-grey-lighter); */
	height: auto;
	width: 100px;
	position: absolute;
	bottom: 0;
	padding-left: 15px;
	left: var(--pos-content-left);
	z-index: 10;
	font-size: 1.8em;
	font-weight: 700;
}
.ref-grey-bar::after {
	content: 'bildbearbeitung scans proofs druckaufbereitung';
}

.ref-lower-label-field {
	background-color: var(--color-main-background);
	opacity: 1;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 10px;
	z-index: 10;
	box-shadow: var(--news-shadow-style);
}

.ref-slider {
	border: var(--show-pos-borders);
	border-color: black;
	position: relative;
	left: var(--space-slider-left);
	width: calc(var(--max-content-width) - var(--space-slider-left) - var(--space-slider-right));
	display: flex;
	margin-top: auto;
	margin-bottom: auto;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	color: var(--color-main-text);
	overflow-y: hidden;
	overflow-x: hidden;
	perspective: 800px;
	perspective-origin: 50% 50%;
	z-index: 15;
}

.ref-catslider {
	border: var(--show-pos-borders);
	border-color: black;
	position: absolute;
	width: 105px;
	height: 90px;
	top: 23px;
	left: calc(var(--space-slider-left) - 105px);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	overflow-y: hidden;
	overflow-x: hidden;
	padding-bottom: auto;
	z-index: 15;
}

.ref-cs-item {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-left: 0;
	margin-right: 0;
	border: var(--show-pos-borders);
	border-color: red;
	position: relative;
	height: 50px;
	z-index: 20;
}
.ref-cs-item-desc  {
	width: 95px;
	border: var(--show-pos-borders);
	border-color: cyan;
	margin-left: 0;
	margin-right: 5px;
	
}
.ref-cs-item-desc   > p {
	margin-bottom: auto;
	margin-top: 0;
}

.text-cat-desc {
	font-weight: 700;
	font-size: 1.4em;
	color: var(--color-primary);
}

.ref-btn-nav  {
	display: none;
}

.ref-item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 325px;
	border: var(--show-pos-borders);
	border-color: red;
	z-index: 20;
	margin-left: 10px;
	margin-right: 10px;
	perspective: 1000px;
	perspective-origin: 50% 30%;
}
.ref-itemcat {
	display: none;
	justify-content: flex-end;
}

.ref-item-img {
	position: relative;
	height: 320px;
	width: calc(var(--ref-max-item-width) - (2 * var(--ref-item-margin)));
	--pos-baseline: 275;
	--img-max-height: 250px;
	--img-max-width: 180px;
	--img-rot-angle: -120deg;
	perspective: 1000px;
	perspective-origin: 50% 25%;
	transform-origin: 50% 50%;
	transform-style: preserve-3d;
}

.ref-item-spacer {
	display: none;
}

.ref-item-desc {
	display: none;
}

[id^="ref_item_img_"] {
	display: none;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
	position: absolute; 
	top: 0;
	left: 0;
	transform-origin: left bottom;
	transform-style: preserve-3d;
}

[id^="mref_item_img_"] {
	display: none;
	position: absolute;
	top:0 ;
	left: 0;
	opacity: 0.2;
	transform-origin: left bottom;
	transform-style: preserve-3d;
}

.cuboid {
	--img-max-height: 220px;
	--img-max-width: 200px;
	height: 300px;
	width: 200px;
	margin-left:auto;
	margin-right:auto;
	margin-top: 40px;
	margin-bottom: auto;
	transform-origin: 50% 50%;
	transform-style: preserve-3d;
}
.cuboid-front {
	position: absolute;
	height: 300px;
	background-color: darkgrey;
}
.cuboid-back {
	position: absolute;
	height: 300px;
	background-color: darkgrey;
}
.cuboid-left {
	position: absolute;
	height: 300px;
	background-color: darkgrey;
}
.cuboid-right {
	position: absolute;
	height: 300px;
	background-color: lightgrey;
}
.cuboid-top {
	position: absolute;
	background-color: lightgrey;
}
.cuboid-bottom {
	position: absolute;
	background-color: lightgrey;
}