/* Galerie-spezifische Styles - ausgelagert aus style.css */
.gallery-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem 2rem 2rem;
}

.gallery-header {
	text-align: center;
	margin-bottom: 3rem;
	background: rgba(255, 255, 255, 0.95);
	padding: 3rem 2rem;
	border-radius: 25px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	border: 2px solid rgba(212, 175, 55, 0.2);
}

.gallery-header h2 {
	font-family: 'Dancing Script', cursive;
	font-size: 3.5rem;
	color: #d4af37;
	margin-bottom: 1rem;
	font-weight: 600;
	text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.gallery-header p {
	font-size: 1.4rem;
	color: #5a7a5a;
	font-style: italic;
	line-height: 1.8;
	max-width: 800px;
	margin: 0 auto;
    text-align: center;
}

.gallery-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	background: white;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	height: 400px;
	flex-grow: 1;
	flex-shrink: 0;
}

/* Entfernt spezielle Klassen */
.gallery-item.portrait,
.gallery-item.landscape,
.gallery-item.square {
	grid-row: unset;
	grid-column: unset;
	aspect-ratio: unset;
}

.gallery-item:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.gallery-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(90, 122, 90, 0.1));
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
	border-radius: 20px;
}

.gallery-item:hover::before {
	opacity: 1;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 20px;
}

.gallery-item:hover img {
	transform: scale(1.08);
}

.gallery-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 2rem 1.5rem 1.5rem;
	transform: translateY(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 2;
	border-radius: 0 0 20px 20px;
}

.gallery-item:hover .gallery-item-overlay {
	transform: translateY(0);
}

.gallery-item-number {
	font-family: 'Dancing Script', cursive;
	font-size: 1.3rem;
	color: #d4af37;
	font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(8px);
	z-index: 10000;
	justify-content: center;
	align-items: center;
	animation: fadeInDark 0.15s ease-out;
}

.lightbox.active {
	display: flex;
}

@keyframes fadeInDark {
	from { 
		opacity: 0;
		backdrop-filter: blur(0px);
	}
	to { 
		opacity: 1;
		backdrop-filter: blur(8px);
	}
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	animation: fadeInContent 0.15s ease-out;
}

@keyframes fadeInContent {
	from { 
		opacity: 0;
	}
	to { 
		opacity: 1;
	}
}

.lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 20px;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 
	            0 0 40px rgba(212, 175, 55, 0.2);
	transition: transform 0.4s ease-out;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	color: #d4af37;
	font-size: 2.5rem;
	width: auto;
	height: auto;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	font-weight: normal;
	padding: 0.5rem;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.lightbox-close:hover {
	background: none;
	transform: scale(1.2) rotate(90deg);
	box-shadow: none;
	filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

.lightbox-close:active {
	transform: scale(1.05) rotate(90deg);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #d4af37;
	font-size: 2.5rem;
	width: auto;
	height: auto;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	font-weight: normal;
	padding: 1rem;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.lightbox-nav:hover {
	background: none;
	transform: translateY(-50%) scale(1.3);
	box-shadow: none;
	filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

.lightbox-nav:active {
	transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

.lightbox-counter {
	position: absolute;
	left: 10%;
	bottom: 5%;
	transform: translateX(-50%);
	color: white;
	font-size: 1.1rem;
	font-family: 'Cormorant Garamond', serif;
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(212, 175, 55, 0.8));
	padding: 0.7rem 2rem;
	border-radius: 30px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3),
	            inset 0 1px 0 rgba(255, 255, 255, 0.4);
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* Swipe-Animationen für Bildwechsel */
@keyframes slideOutLeft {
	to {
		opacity: 0;
		transform: translateX(-30%);
	}
}

@keyframes slideOutRight {
	to {
		opacity: 0;
		transform: translateX(30%);
	}
}

@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(30%);
	}
}

@keyframes slideInFromLeft {
	from {
		opacity: 0;
		transform: translateX(-30%);
	}
}

.lightbox img.slide-out-left {
	animation: slideOutLeft 0.075s ease-out forwards;
}

.lightbox img.slide-out-right {
	animation: slideOutRight 0.075s ease-out forwards;
}

.lightbox img.slide-in-left {
	animation: slideInFromLeft 0.075s ease-out forwards;
}

.lightbox img.slide-in-right {
	animation: slideInFromRight 0.075s ease-out forwards;
}

/* Galerie Responsive Design */
@media (max-width: 768px) {
	.gallery-grid {
		gap: 1.2rem;
	}

	.gallery-item {
		height: 300px;
	}

	/* Auf Tablet kleinere Spans */
	.gallery-item.landscape {
		grid-column: span 1;
	}

	.gallery-item.portrait {
		grid-row: span 1;
	}

	.gallery-header h2 {
		font-size: 2.5rem;
	}

	.gallery-header p {
		font-size: 1.2rem;
	}

	.lightbox-nav {
		font-size: 2rem;
		padding: 1.2rem;
		margin-left: 25px;
		margin-right: 25px;
		filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8));
	}

	.lightbox-prev {
		left: 15px;
	}

	.lightbox-next {
		right: 15px;
	}

	.lightbox-close {
		font-size: 2rem;
		top: 15px;
		right: 15px;
	}

	.lightbox-counter {
		margin-bottom: 5%;
		left: 50%;
		font-size: 1rem;
		padding: 0.6rem 1.5rem;
		bottom: 20px;
		left: 50%;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		gap: 1rem;
		flex-direction: column;
	}

	.gallery-item {
		height: 350px;
		width: 100%;
	}

    .gallery-header {
        padding: 0 1.5rem 2rem 1.5rem;
        margin-bottom: 2rem;
        margin-top: 0;
    }

	.gallery-header h2 {
		font-size: 2rem;
	}

	.gallery-header p {
		font-size: 1.1rem;
	}

	.lightbox-close {
		font-size: 1.8rem;
		top: 12px;
		right: 12px;
		padding: 0.3rem;
	}

	.lightbox-nav {
		margin-left: 5px;
		margin-right: 5px;
		font-size: 1.8rem;
		padding: 0.8rem;
	}

	.lightbox-prev {
		left: 12px;
	}

	.lightbox-next {
		right: 12px;
	}

	.lightbox-counter {
		font-size: 0.9rem;
		padding: 0.5rem 1.2rem;
		bottom: 15px;
		left: 50%;
	}

    body[data-page="galerie"] .container {
        padding-top: 0 !important;
    }

    body[data-page="galerie"] .heart-1 {
        top: 2.3% !important;
    }

    body[data-page="galerie"] .heart-2 {
        top: 3.4% !important;
    }
}
