:root {
    --navbar-height: 60px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    padding-right: 10px;
    z-index: 1000;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.menu-button {
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: none;
    color: white;
    white-space: nowrap;
    padding: 10px;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: black;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    z-index: 999;
}

.menu.active {
    height: 100vh;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    padding: 15px;
}

/* Beide Galerien bekommen Abstand */
.image-gallery,
.half-gallery {
    padding-top: var(--navbar-height);
}

/* Galerie Container */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Bildcontainer */
.image-item {
    position: relative;
    flex: 1 1 45%;
    max-width: 45%;
    box-sizing: border-box;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    display: none;
    text-align: left;
    margin-top: 5px;
    font-size: 14px;
    color: #ffffff;
}

.image-item:hover .caption {
    display: block;
}

@media (max-width: 768px) {
    .image-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Half-Gallery Layout */
.half-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.image-item {
    width: 50%;
}

.image-item.left {
    align-self: flex-start;
}

.image-item.right {
    align-self: flex-end;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}
