/* MODAL SLIDER ////////////////////////////////////////////// */

.bg-modal { z-index; 9999; width: 100%; margin: 0 auto; padding: 0; }

/* Modal mittig, Höhe 80% vom Viewport */
.bg-modal .modal-dialog { display: flex; width: 75%; max-width: 1200px; height: 75vh; margin: 3vh auto; align-items: center; }
.bg-modal .modal-content { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 8px; }

/* Modal Header – 8% Höhe */
.bg-modal .modal-header { position: relative; z-index: 9999; display: flex; flex-shrink: 0;  align-items: top;
	height: 10%; 
	min-height: 40px; 
	max-height: 70px; 
	padding: 20px 20px; 
	background: transparent;
	border: none;
	}
.bg-modal .modal-header h3 { font-size: 1.4em; letter-spacing: 1px; background: #fff; }
.bg-modal .modal-header .close { font-size: 1.7em; font-weight: 300; }
.bg-modal .modal-header .close a { color: #000; font-weight: 400; }

/* Modal Body */
.bg-modal .modal-body { display: flex; padding: 0; margin: -10% 0 0 0; flex: 1; 
	flex-direction: column; 
	align-items: center; 
	justify-content: center; 
	}

/* Slider-Container */
.bg-modal .modal-slider { position: relative; z-index: 999;display: flex; width: 100%; max-width: 850px; 
	margin: 0 auto; 
	flex-direction: column; 
	background: #fff; 
	height: auto; 
	}
.bg-modal .modal-slider::before { display: block; content: ""; padding-bottom: 55%; /* Standard */ }

/* Optionale Formate –– Hoch-, Quadrat- und Querformat */
.bg-modal .modal-slider.vertical::before { padding-bottom: 65%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 60%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 50%; }



.bg-modal .modal-slider ul { display: flex; list-style: none; padding: 0; margin: 0; width: 100%; height: 100%;  
	justify-content: center; 
	align-items: center; 
	}
.bg-modal .modal-slider li { position: absolute; z-index: 10; display: block; left: 0; top: 0; width: 100%; height: 100%; 
	margin: 0 auto;
	background-position: center center; 
	background-repeat: no-repeat; 
	background-size: contain; 
	}



/* CAPTIONS –– Bildtitel */
.bg-modal .modal-slider .bg-title { position: absolute; z-index: 999; bottom: -80px; width: 100%; height: 80px; 
	margin: auto; 
	padding: 10px 10% 20px 10%; 
	background: #fff; 
	font-size: 0.85em; 
	font-weight: 300; 
	line-height: 1.35em; 
	font-style: italic; 
	text-align: center; 
	color: grey;
	border-radius: 8px; 
	word-break: break-word; 
	overflow-wrap: break-word;
	}


/* CONTROLS –– Arrows */
.bg-modal .arrow { position: absolute; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%;  margin-top: 3%;
	transition: background .5s, 
	opacity .5s; 
	}
.bg-modal .arrow a { position: absolute; top: 50%; transform: translateY(-50%); text-decoration: none; font-size: 2em; 
	opacity: 0.5; 
	}
.bg-modal .arrow .arrow-left,
.bg-modal .arrow .arrow-right { position: absolute; display: block; width: 50px; height: 50px; border-radius: 50%;
  top: 50%; 
  transform: translateY(-50%);
  background-color: #fff; 
  background-repeat: no-repeat; 
  background-position: center; 
  background-size: 75%; /* Arrows 25% kleiner */
  opacity: 0.5; cursor: pointer; 
  transition: background .5s, opacity .5s; 
}
.bg-modal .arrow .arrow-left { left: 25px; background-image: url("../pix/controls/bg-arrow-left.png"); }
.bg-modal .arrow .arrow-right { right: 25px; background-image: url("../pix/controls/bg-arrow-right.png"); }

.bg-modal .arrow .arrow-left:hover, 
.bg-modal .arrow .arrow-right:hover { opacity: 1; }


/* MEDIA QUERIES ------------------------------------------------------  */

/* Special Queries für Bildgrössen ------------------------------------  */

/* lg */
@media (max-width: 1199.98px) {
.bg-modal .modal-slider::before{ padding-bottom: 60%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 65%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 60%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 50%; }
}
/* md */
@media (max-width: 991.98px) {
.bg-modal .modal-slider::before{ padding-bottom: 65%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 70%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 60%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 55%; }
}
/* sm */
@media (max-width: 767.98px) {
.bg-modal .modal-dialog { width: 90%; height: 85vh;

.bg-modal .modal-slider::before{ padding-bottom: 80%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 130%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 80%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 110%; }

.bg-modal .arrow .arrow-left { left: 10px; }
.bg-modal .arrow .arrow-right { right: 10px; }
}
/* xs */
@media (max-width: 575.98px) {
.bg-modal .modal-dialog { margin: 1vh auto; } 

.bg-modal .modal-slider::before{ padding-bottom: 85%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 110%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 80%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 70%; }

.bg-modal .arrow .arrow-left, 
.bg-modal .arrow .arrow-right { width: 40px; height: 40px; }
}
/* 480 px */
@media screen and (max-width: 480px) {
.bg-modal .modal-dialog { width: 90%; } 
.bg-modal .modal-header h3 { font-size: 1.2em; letter-spacing: 0.5px; }
.bg-modal .modal-slider::before{ padding-bottom: 90%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 120%; }
.bg-modal .modal-slider.quadrat::before { padding-bottom: 90%; }
.bg-modal .modal-slider.horizontal::before { padding-bottom: 75%; }

.bg-modal .modal-slider .bg-title {padding: 10px 5%; }
.bg-modal .arrow .arrow-left, 
.bg-modal .arrow .arrow-right { width: 35px; height: 35px; }
.bg-modal .arrow .arrow-left { left: 10px; }
.bg-modal .arrow .arrow-right { right: 10px; }
}
/* 375 px */
@media screen and (max-width: 375px) {
.bg-modal .modal-dialog { width: 100%; } 
.bg-modal .modal-slider::before{ padding-bottom: 100%; } /* Standard */
.bg-modal .modal-slider.vertical::before { padding-bottom: 115%; }
/* CAPTIONS –– Bildtitel */
.bg-modal .modal-slider .bg-title { font-size: 0.8em; padding: 15px 3% 30px 3%;  }

}



