body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #0d0d97;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    max-width: 100%px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 5px solid #0d0d97; /* Blue border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Force all images to be the same size */
.gallery-item img {
    width: 300px;
    height:100%; /* Fixed height */
    object-fit: cover; /* Crop images to fit the dimensions */
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.5);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        max-width: 90%;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
    }
    .gallery-item img {
       width: 300px;
       height: 100%;
       object-fit: cover;
}

}


#pdf-viewer {
    text-align: center;
}
canvas {
    border: 1px solid #ccc;
    margin-bottom: 20px;
}
.pagination-buttons {
    text-align: center;
    margin-top: 10px;
}
button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
}