body {
    margin: 0;
    /* padding-top: 80px;*/
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

h1 {
    font-size: 40px;
    font-weight: 600;
    margin: 0px;
    padding-bottom: 5px;
}

.custom-text {
    font-size: 20px;
    font-weight: 400;
    margin: 20px 0 25px;
    padding: 10px 15%;
}

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

.image-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-actions {
    margin-top: 10px;
}

.btn {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: inline-block;
    width: auto;
}

.btn:hover {
    background-color: #0056b3;
}

.download-all {
    text-align: center;
    margin-top: 0;
    width: 100%;
}

.download-zip {
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 15px;
    border-radius: 5px;
    display: block;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.download-zip:hover {
    background-color: #218838;
}

.logout {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 1000;
}

.logout-btn {
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logout-btn:hover {
    background-color: #cc0000;
}

.reset {
    position: absolute;
    top: 20px;
    left: 25px;
    z-index: 1000;
}

.reset-btn {
    background-color: #000;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 0;
    font-family: Arial, sans-serif;
}

.reset-btn:hover {
    background-color: #151515;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.96);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #999;
}

.gallery-image {
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(0.95);
}

/* Pagination styling */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.pagination .btn:hover {
    background-color: #0056b3;
}

.pagination .active {
    background-color: #0056b3;
    pointer-events: none; /* Disable clicking on the active page */
}

.pagination .prev,
.pagination .next {
    background-color: #28a745;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #218838;
}

.gallery-download-all{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}



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

.image-card {
    padding: 10px;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 5px;
}




@media (max-width: 768px) {
    h1 {
        margin-top: 10px;
    }

    .custom-text {
        padding: 10px 5%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .gallery-image {
        transition: none;
    }
    .gallery-image:hover {
        transform: none;
    }

    .download-zip {
        width: 100%;
    }
}
