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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /*padding: 20px;*/
    background-color: #f4f4f4;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1, h2 {
    margin-bottom: 20px;
}

section {
    margin-bottom: 40px;
}

.intro {
    background-color: #e8f4fc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.intro p {
    margin-bottom: 15px;
}

.intro ul {
    margin-left: 20px;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Visual indicator for viewer-eligible images */
.viewer-eligible {
    border: 2px solid #3498db;
}

/* Image Viewer Styles */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer.active {
    display: flex;
    opacity: 1;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#viewer-img {
    /* Entferne max-width, um das Bild in Originalgröße anzuzeigen */
    /* CSS-Eigenschaften werden jetzt dynamisch per JavaScript gesetzt */
    display: block;
    /*border: 3px solid white;*/
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ff4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery {
        gap: 10px;
    }
    
    .viewer-content {
        max-width: 95%;
    }
}