/* General Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.navbar-logo .logo {
    height: 60px;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-menu a:hover {
    background-color: #6c4f70;
    color: #ffffff;
    border-radius: 5px;
}

.dropdown-content a {
    padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Gallery Styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.gallery a {
    display: block;
    width: calc(25% - 20px);
    max-width: calc(25% - 20px);
    overflow: hidden;
    position: relative;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific Image Sizes */
.portraits a {
    flex: 1 1 calc(25% - 20px); /* four images in a row */
    max-width: calc(25% - 20px);
}

.studio-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.studio-container img {
    max-width: 600px;
    width: 100%;
}

.studio-container p {
    flex: 1;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .studio-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .studio-container img,
    .studio-container p {
        max-width: 100%;
        width: 100%;
    }

    .portraits a,
    .zza a,
    .taufe a,
    .party a {
        flex: 1 1 calc(50% - 20px); /* two images in a row */
        max-width: calc(50% - 20px);
        height: calc(50vw - 20px); /* square images */
    }

    .einschulung a {
        flex: 1 1 100%; /* individual images stacked */
        max-width: 100%;
        height: auto;
    }

    .party a {
        flex: 1 1 calc(50% - 20px); /* two images in a row */
        max-width: calc(50% - 20px);
        height: calc(50vw - 20px); /* square images */
    }
}

/* Gallery Adjustments */
.gallery.zza a {
    flex: 1 1 calc(25% - 10px);
    height: calc(25vw - 10px);
    max-height: 300px;
}

.gallery.taufe {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.gallery.taufe a {
    flex: 1 1 calc(33.33% - 20px);
    height: calc(33.33vw - 20px);
    max-height: 300px;
}

.gallery.einschulung a {
    flex: 1 1 calc(50% - 10px);
    height: calc(50vw - 10px);
    max-height: 300px;
}

.gallery.party a {
    flex: 1 1 calc(33.33% - 10px);
    height: calc(33.33vw - 10px);
    max-height: 300px;
}

/* Specific Gallery Adjustments */
.gallery.taufe {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.gallery.taufe a {
    flex: 1 1 calc(33.33% - 20px);
    height: calc(33.33vw - 20px);
    max-height: 300px;
    margin: 10px;
}

.gallery.taufe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
