﻿/*
		assets/css/slideshowJS.css
		
		Stylesheet für "Slideshow" bei eingeschaltem Javascript.

		MH, 05.22, 03.25, 04.25
*/
	





.slideshow {
	max-width: 100%;
	/* max-height: 32.8125%; */
	margin-bottom: 1em;
	outline: none;
}

.slideshow.home {
	margin: 0;
}

.slideshow .img-descr.js-only,
.slideshow .page-counter.js-only
{
	display: block
}

.slideshow .screen {
	display: flex;
	position: relative;
	text-align: right;
	overflow: hidden;
	justify-content: center;
	align-items: center;
	cursor: grab;
	width: 2286px;
	max-width: inherit;
	max-height: inherit;
	background-color: #fbfbfb;
}

.slideshow .fade-object {
	transition: filter 3s ease 1s;
}

.slideshow .rewindButton,
.slideshow .forwardButton {
	display: none;
	position: absolute;
	visibility: hidden;
	border: none;
	cursor: pointer;
	color: #d9e4ef;
	background-color: #2a588000;
	font-size: 24px;
	height: 100%;
	width: 50px;
	transition: filter 1s 0.3s, left 1.5s 1s, right 1.5s 1s, opacity 1.5s 1s, background-color 1.0s, visibility 1s;
}

.slideshow .rewindButton {
	left: 50%;
}

.slideshow .forwardButton {
	right: 50%;
}

.rewindButton:hover,
.forwardButton:hover {
	background-color: #2a588080;
}

.slideshow .rewindButton::before,
.slideshow .forwardButton::before {
	position: relative;
	color: inherit;
	opacity: 0;
	transition: filter 1s 0.3s, left 1.5s 1s, right 1.5s 1s, opacity 1.5s 1s, background-color 1.0s, visibility 1s;
	visibility: visible;
	overflow: clip;
	width: 100%;
}

.slideshow .screen:hover .rewindButton::before,
.slideshow .screen:hover .forwardButton::before,
.slideshow .screen .rewindButton.demo::before,
.slideshow .screen .forwardButton.demo::before {
	opacity: .7;
	visibility: visible;
	transition: filter 1s 0.3s, left 1.5s 0s, right 1.5s 0s, opacity 1.5s 0s, background-color 1.0s 1.5s, visibility 0s 1.5s;
}

.slideshow .screen:hover .rewindButton,
.slideshow .screen:hover .forwardButton {
	background-color: #2a588080;
	visibility: visible;
	transition: filter 1s 0.3s, left 1.5s 0s, right 1.5s 0s, background-color 1.0s 1.5s, visibility 0s 1.5s;
}

.slideshow .screen .rewindButton.demo,
.slideshow .screen .forwardButton.demo {
	background-color: #2a588080;
	visibility: visible;
	transition: filter 1s 0.3s, left 1.5s 0s, right 1.5s 0s, background-color 1.0s 1.5s, visibility 0s 1.5s;
}

.slideshow .screen:hover .rewindButton,
.slideshow .screen .rewindButton.demo {
	left: 0;
}

.slideshow .screen:hover .forwardButton,
.slideshow .screen .forwardButton.demo {
	right: 0;
}

.slideshow .screen .rewindButton:hover,
.slideshow .screen .forwardButton:hover {
	transition: left 1.5s 0s, right 1.5s 0s, background-color 1.0s 0s, visibility 0s 1.5s;
}

.slideshow .end-sign {
	position: absolute;
	visibility: hidden;
	width: 50px;
	font-size: 24px;
	color: #d9e4ef;
	background-color: #2a5880;
	opacity: .3;
	transition: opacity .3s;
}

.slideshow .end-sign::before {
	width: inherit;
}

.slideshow .end-sign.left {
	left: 0;
}

.slideshow .end-sign.right {
	right: 0;
}

@media (hover:none), (pointer:coarse) {

	.slideshow .screen button.forwardButton,
	.slideshow .screen button.rewindButton
	{
		display: none !important;
	}

	.slideshow .screen button.forwardButton:before,
	.slideshow .screen button.rewindButton:before
	{
		display: none !important;
	}
}

.slideshow .progressBar {
	display: flex;
	position: absolute;
	visibility: hidden;
	bottom: 10px;
	justify-content: center;
	opacity: 0.75;
	flex-wrap: wrap;
	cursor: default;
}

	.slideshow .progressBar > .progressBarItem,
	.slideshow .progressBar > .progressBarItem {
		margin-top: 8px;
	}

.slideshow .progressBar > button.progressBarItem {
	display: inline-block;
	padding: 0;
	width: 27px;
	height: 6px;
	border: none;
	margin: 8px 4px;
	cursor: pointer;
}

.heading,
.img-descr,
.page-counter
{
	color: white;
	background-color: #2a5880;
	max-width: 100%;
	height: 26px;
	text-align: center;
	overflow-y: clip;
}

.slideshow .slide {
	position: absolute;
	opacity: 0;
}

.slideshow img:nth-of-type(1) {
	opacity: 1;
}

.slideshow svg.placeholder {
	position: static;
	height: auto;
	visibility: hidden;
}

.slideshow svg.placeholder > rect {
	fill: #2a5880;
}

.slideshow .img-descr {
	display: none;
}

@media screen and (max-width: 455px) {

	.slideshow div p {
		font-size: 20px;
		margin-bottom: 0;
	}
	
	.slideshow div a {
		font-size: 12px
	}
}






@keyframes caption {

	0% { right: 100%; visibility: hidden; opacity: .1; transform: rotateY(180deg); }
	25% { right: 100%; filter: blur(45px); visibility: visible; }
	50% { opacity: .2;}
	75% { right: 56px; transform: rotateY(180deg); filter: blur(0); }
	100% { opacity: 1; transform: rotateY(0deg); }
}

@keyframes font-style {

	99.99% {font-style: normal; }
	100% {font-style: italic; }
}

.slideshow .caption p {
	font-size: 30px;
	font-weight: bold;
	margin-top: 0;
	margin-bottom: 16px;
	color: white;
	opacity: 1;
	animation-name: font-style;
	animation-duration: 6s;
	animation-fill-mode: forwards;
	animation-play-state: inherit;
}

.slideshow .caption a {
	text-decoration: none;
	color: white;
	font-size: 18px;
	font-weight: bold;
	opacity: .65;
}

.slideshow div a:hover {
	opacity: .9; 
}

.slideshow .caption {
	position: absolute;
	bottom: 55px;
	right: 65px;
	background-color: #2a5880;
	padding: 15px 16px 10px 14px;
	animation-name: caption;
	animation-duration: 6s;
	animation-fill-mode: none;
	animation-play-state: paused;
	white-space: nowrap;

	background: rgba(42, 88, 128, 0.27);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10.1px);
	-webkit-backdrop-filter: blur(10.1px);
	border: 1px solid rgba(42, 88, 128, 0.3);
}


.slideshow .caption:not(.slideshow .caption:hover) {
	opacity: 1;
	transition-property: opacity, filter;
}

.slideshow .caption:hover {
	opacity: .7;
	transition-property: opacity;
}

@media screen and (max-width: 799px) {
	.caption {
    	display: none;
	}

	.slideshow.home .rewindButton, .slideshow.home .forwardButton, .slideshow.home .rewindButton::before, .slideshow.home .forwardButton::before {
		animation-duration: 3s;
	}
}


