﻿/* --- Galerie Grundlayout --- */
.gallery {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
}

.gallery h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #0B3D2E;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* --- Galerie-Items --- */
.gallery-item {
	position: relative;
    display: flex;
    height: 260px; /* einheitliche Höhe */
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover; /* sorgt für saubere Kacheln */
    object-position: center;
}

/* Hover-Zoom */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* --- Navigation --- */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.nav.prev {
    left: 30px;
}

.nav.next {
    right: 30px;
}

.nav:hover {
    color: #C9A44C;
}

/* --- Schließen --- */
.lightbox .close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
