/* ============================================
	 FOTO - Alben-Container
============================================ */

.album {
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto;
	padding: 0;
	justify-content: flex-start;
	align-items: flex-start;
	width: 95%;
	gap: 25px !important; /* Mobile Standard, angepasst für alle Geräte */
}

@media (min-width: 1200px) {
	.album {
		width: 100%;
	}
}

/* ===========================
   Album-Vorschau (einzelnes Album)
   =========================== */
.album-preview {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: 1 / 1;      /* quadratisch */
	background: #f8f8f8;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	user-select: none;
}

/* ===========================
	 Album-Vorschau (einzelnes Album) Responsive Layout
	 =========================== */

/* Mobile: 1 Album pro Zeile */
@media (max-width: 768px) {
	.album-preview {
		aspect-ratio: 3 /2;
		flex: 0 0 100%;
    max-width: 100%;
	}
	.album {
		gap: 25px; /* auch auf Mobile größerer Abstand */
	}
}

/* Tablet: 2 Alben pro Zeile */
@media (min-width: 769px) and (max-width: 992px) {
	.album-preview {
		aspect-ratio: 3 /2;
		flex: 0 0 calc((100% - 50px) / 2);
		max-width: calc((100% - 50px) / 2);
	}
	.album {
		gap: 25px;
	}
}

/* Desktop: 3 Alben pro Zeile */
@media (min-width: 993px) {
	.album-preview {
		aspect-ratio: 3 /2;
		flex: 0 0 calc((100% - 75px) / 3);
		max-width: calc((100% - 75px) / 3);
	}
	.album {
		gap: 25px;
	}
}

/* Hover auf Album */
.album-preview:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* ===========================
   Album-Inhalt ????????
   =========================== */
.album-preview-inner {
  height: 100%;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* Album-Link */
.album-preview-inner a {
	display: block;
	height: 100%;
	width: 100%;
	position: relative;
	text-decoration: none;
	color: inherit;
}


/* Bild */
.album-preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radiusx: 10%;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.album-preview:hover .album-preview-img {
	transform: scale(1.04);
	filter: brightness(0.88);
}






.album-preview:hover .album-preview-img {
	transform: scale(1.04);
	filter: brightness(0.88);
}




/* Album-Name Overlay */
.album-name {
	position: absolute;
	bottom: 1em;
  left: 1em;
  right: 1em;
	width: auto;
	padding: 0.5em;
	background: linear-gradient(to top, rgba(255,255,255,0.5), transparent);
	color: #ffffff !important;
	font-weight: 500;
	font-size: 1.1rem;
  font-family: 'Roboto';
	text-align: center;
  text-transform: uppercase;
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
	transition: background 0.3s ease, transform 0.3s ease;
	border-radiusx: 0 0 15% 15%;
	border: 1px solid white;
	z-index: 2;
}

.album-preview:hover .album-name {
	transform: translateY(-2px);
	background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}



 
/* NEUE CSS FÜR BILDERGALERIE */
.gallery-new {
	box-sizing: border-box;
	display: grid;
	grid-auto-flow: dense;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: clamp(1rem, 2vw, 3rem);
	justify-content: center;
	width: 100%;
	max-width: 1200px;
	margin: 10vh auto 10vh auto;
}
@media (max-width: 600px) {
	.gallery-new {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 601px) and (max-width: 1024px) {
	.gallery-new {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1025px) {
	.gallery-new {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (min-width: 1200px) {
	.gallery-new {
	width: 100%;
	}
}

/* BILDERGALERIE EINZEL-ELEMENT ALS FIGURE */
.gallery-new-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin: 0;
}

.image-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}


.gallery-new-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.2s;
}

.gallery-new-item img:hover {
	transform: scale(1.05);
}



/* BILDERGALERIE LIGHTBOX */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 100000;
}

/* Container für Bild + Captions */
.lightbox-content {
	display: inline-flex;      /* passt sich an die Bildbreite an */
	flex-direction: column;    /* Bild oben, Captions darunter */
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	max-width: 90vw;
	max-height: 90vh;
}

/* Bild in der Lightbox */
.lightbox-content img {
	display: block; 
	width: auto;
	max-width: min(90vw, 1500px);
	max-height: 80vh;
}

/* Captions */
.lightbox-content figcaption {
	width: 100%;
	margin-top: 0.3em;
	color: white;
	display: flex !important;
}

/* Hauptcaption (zentriert) */
#lightbox-caption {
	text-align: center;
	font-size: 1rem;
	padding-right: 2em;
}

@media (max-width: 480px) {
	#lightbox-caption {
		font-sizex: 1.2rem;
	}
}

/* Zusatzcaption (rechtsbündig, z. B. Settings-Icon) */
#toggle-caption {
	text-align: right;
	margin-top: 0.3em;
	width: 100% !important;
}

/* Icon */
#toggle {
	background-color: transparent;
	border-radius: 50%;
	color:#fff;
}

/* FOTO - Lightbox Tooltip */
#tooltip {
	display: none; /* Unsichtbar, bis es angezeigt wird */
	position: fixed; /* Fixierte Position für mittige Anzeige */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Exakte Zentrierung */
	background: rgba(51, 51, 51, 0.7); /* Dunkler Hintergrund mit leichter Transparenz */
	color: #fff;
	padding: 8px;
	border-radius: 8px;
	font-size: 0.8rem;
	white-space: normal;
	z-index: 9999;
	
	max-width: 90vw; /* Maximale Breite auf 50% des Bildschirms begrenzen */
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
	border: 1px solid red;
}

.imgdata {
	display: table-cell;
	min-width: 100px;
	min-width: 20em;
	width: auto;
	text-align: left;
}

.imgdata div {
	display: flex;
	align-items: center;
	border: 1px silver;
}

.imgdata span {
	margin-right: 0.3rem;
	width: 2.8rem;
}

.imgdata .icon{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 2.5rem;
}
	
.imgdata .material-icons {
	font-size: 1.8rem;
	color: ##fff;
}

/* BILDERGALERIE LIGHTBOX EFFEKT */
@keyframes swipe-left {
	0% {
		transform: translateX(0);  /* Ausgangsposition */
		opacity: 1;
	}
	100% {
		transform: translateX(-100%);  /* Bewege das Bild nach links */
		opacity: 0.5;  /* Optional: Verblasst das Bild */
	}
}

@keyframes swipe-right {
	0% {
		transform: translateX(0);  /* Ausgangsposition */
		opacity: 1;
	}
	100% {
		transform: translateX(100%);  /* Bewege das Bild nach rechts */
		opacity: 0.5;  /* Optional: Verblasst das Bild */
	}
}

/* BILDERGALERIE LIGHTBOX ANIMATION für nach links wischen */
.lightbox img.swipe-left {
	animation: swipe-left 1.5s forwards;  
}

/* BILDERGALERIE LIGHTBOX ANIMATION für nach rechts wischen */
.lightbox img.swipe-right {
	animation: swipe-right 1.5s forwards;
}

/* BILDERGALERIE LIGHTBOX CLOSE PREVIEW NEXT */
.close, .prev, .next {
	background-color: transparent;
	position: absolute;
	color: white;
	font-size: 30px;
	cursor: pointer;
	z-index: 1001;
}
@media (max-width: 480px) {
	.close, .prev, .next {
		font-size: 15px;
	}
}

/* BILDERGALERIE LIGHTBOX CLOSE */
.close {
	top: 20px;
	right: 30px;
}

.prev, .next {
		top: 50%;
		transform: translateY(-50%);
		user-select: none;
}

/* BILDERGALERIE LIGHTBOX PREVIEW NEXT */
.prev {
	left: 0px;
}
.next {
	right: 0px;
}