body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

h1 {
    margin: 0;
    font-size: 24px;
}


a.back-link {
    color: white;
}

a.back-link:hover {
    color: #d0d0d0;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

/* Pagination */
.pagination {
    margin: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    background-color: #f2f2f2; /* Grau-Silber */
    color: #333; /* Dunkler Text */
    border: 1px solid #2c2c2c;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #d0d0d0;
}

.pagination a:hover {
   background-color: #d0d0d0; 
}

/* Pop-Up Styling */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

#popup.visible {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    position: relative;
}

#popup-img {
    max-width: 70%;
    max-height: 1200px;
    border-radius: 10px;
}

#close-btn {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

#prev-btn, #next-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #fff;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#prev-btn:hover, #next-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

/* Download-Button */
#download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001;
}

#download-btn:hover {
    background: #0056b3;
}
