a {cursor: pointer;text-decoration: none;}
a:link{color:white;} 
a:visited{color:white;}
a:active {color:white;}
a:hover {color:grey;}

* {
  box-sizing: border-box;
}
body, html {
	margin: 0;
	height: 100%;
	min-width: 250px;
	background-color: black;
	background-image:none;
	touch-action: pan-y; /* nur vertikales Scrollen erlaubt, horizontales blockiert */
	-ms-touch-action: pan-y; /* für alte IE / Edge */  
}

abbr {
    text-decoration: none;
    border-bottom: none;
}

.textshadow {text-shadow: 0px 0px 0px white, 2px 2px 0px black;}

.hidden {
    opacity: 0;
	transition: opacity 1s ease;
    pointer-events: none;
}
.visible {
    opacity: 1;
	transition: opacity 1s ease;
}

/* Vollflächiger, zentrierender Flex-Container */
#mainlayer_eventfotoalbum {
  position: relative;
  display: flex;
  justify-content: center; /* horizontal zentrieren */
  align-items: center;     /* vertikal zentrieren */
  height: 100dvh; /* volle dynamische Viewport-Höhe */
  width: 100%;
}
/* Innen-Container – keine fixe Höhe nötig */
#image-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#swipeArea:hover {cursor: pointer;}

/* Wrapper ebenfalls ohne erzwungene Höhe */
.image-wrapper {
	position: relative;
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
}
/* Picture soll nicht größer als der Viewport werden */
.picture-wrap {
  position: relative;
  display: inline-block; /* passt sich Bildgröße an */
  max-width: 100%;
  max-height: 100dvh;         /* begrenze Höhe */
  
}
/* Das WICHTIGE: Bild responsiv ohne Verzerrung */
.picture-wrap img {
  display: block;
  width: 100%;
  height: auto;               /* <— auto! Seitenverhältnis bleibt */
  max-height: 100dvh;         /* optional: Bild nicht höher als Viewport */
  object-fit: contain;        /* falls Breite/Höhe kollidieren, enthalten */
}


/* Bild-Link – optional: nicht auf 100% Höhe strecken */
.img-link {
  display: inline-flex;       /* statt flex + 100% Höhe */
  justify-content: center;
  align-items: center;
}


/* Text-Overlay */
.picture_description_wrapper_evt {
	position: absolute;
	bottom: 0;
	width:100%;
	text-align: center;
	padding: 0px 8px 5px 8px;
	line-height: 1.3;
	pointer-events: none;
}

.picture_description_text_evt {
  font-family:"Comic Sans MS";
  color:black;
  font-size:1.0rem;  
  font-weight:bold;
  text-shadow: 0px 0px 0px black, 1px 1px 0px white;
  background-color: rgba(211, 211, 211, .5);
  border-radius:10px;
  padding: 1px 10px;
}

#toolbarContainerTopLeft, #toolbarContainerTopRight {
	display:block;
	position: absolute;
	top:0px;
	visibility: visible;
}
#toolbarContainerTopLeft {left: 0px;margin-left:2%;padding-top: 10px;text-align: left;}
#toolbarContainerTopRight {right:0px;margin-right:2%;}

#eventfoto_titel {
	width:80%;
	color:white;
	font-size:1.0rem;
	font-weight:bolder;
	text-align: left;
}
.toolbarContainerRight_content {
	display: grid;
	/* ZENTRIERUNG */
	justify-items: center; /* horizontal */
	align-items: center;   /* vertikal */
	
	/* wird in eventalbum.funktionen.php gesetzt:
	grid-template-columns: auto auto auto auto; 
	grid-template-areas:
    "eventfoto_info_click foto_index_evt button_fullscreen_evt button_exit_evt";
	*/	
}
#eventfoto_download {
	justify-self: start;
	align-self: center;
}
#eventfoto_download img {
	margin-right: auto;
}

#eventfoto_info_click  {
	grid-area: eventfoto_info_click;
	display: flex;
	align-items: center;
	justify-content: center;

}

#foto_index_evt {
	grid-area: foto_index_evt;
	display: flex;
	align-items: center;
	justify-content: center;
}

#button_fullscreen_evt {
	grid-area: button_fullscreen_evt;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon_img {
	max-width: 25px;
	height: auto;
	cursor:pointer;
}
.icon_img:hover {opacity:0.6;}

#button_exit_evt {
	grid-area: button_exit_evt;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.8rem;
	font-weight: bolder;
	white-space: nowrap;
	cursor: pointer;
}
#button_exit_evt:hover {color:grey;}

#button_back_evt, #button_forward_evt {
	position: absolute;
	width: 20%;
	font-size:1.7rem;
	font-weight:bolder;
	transform: scaleY(8); /* 1.0 = normal, >1 = strecken, <1 = zusammendrücken */
}

.button_back_evt, .button_no_back_evt {
	display: flex;
	justify-content: left; /* horizontal */
	align-items: center; /* vertikal */
	top:50%;
	left: 0px;
	margin-left:3%;
	text-align:left;
}
.button_forward_evt, .button_no_forward_evt {
	display: flex;
	justify-content: right; /* horizontal */
	align-items: center; /* vertikal */
	top:50%;
	right: 0px;
	margin-right:3%;
	text-align:right;
}
.button_back_evt {
	color:white;
}
a.button_no_back_evt {
	color:red;
}
.button_nav_bgr_evt {background: rgba(0,0,0,0.1);}

#exif_layer {
	display: none;
	position: absolute;
	top: 50px;              /* top:50px; -> im javascript definiert nach Slide-In */
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 420px;       /* optional – angenehme Lesebreite */
	height: auto;
	overflow: hidden;
	background: rgba(0,0,0,0.4);
	border-radius: 12px;
	padding: 12px;	
}
#exif_layer:hover {cursor:pointer;}

#exif_daten {
	position: relative;
	text-align: left;
	width: 100%;
	overflow: auto;
}	