body {
    font-family: Arial;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}
/* Color Variables */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --hover-color: #706cd9;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --highlight-color: yellow;
    --dark-header: rgb(12, 62, 92);
    --all-bg-color: gray;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.card {
    color: black;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 250px; /* Set a consistent width */
    height: 400px; /* Set a consistent height */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
    position: relative; /* Required for absolute positioning inside */
    overflow: hidden;
}
.pdf-thumbnail {
    width: 100%;
    height: auto;
}

.card img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 9999; /* Ensure it's always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Transparent dark overlay */
}

.popup-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* No background, just the PDF */
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.popup iframe {
    flex: 1; /* Fill available height */
    width: 100%;
    height: 100%;
    border: none;
}

.popup-footer {
    background: rgba(0, 0, 0, 0.7); /* Transparent footer background */
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popup-footer button,
.popup-footer a {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.btn-close {
    background-color: #888;
}

.btn-download {
    background-color: #4CAF50;
}

.card h3 {
    font-size: 16px;
    margin: 0;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}