.image-viewer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 80%;
    margin: auto;
    margin-bottom: 16px;
}

.image-viewer-thumbnail {
    cursor: pointer;
    max-width: 300px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-viewer-thumbnail:hover {
    transform: scale(1.05);
}

.image-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
    z-index: 1000;
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-modal img {
    max-width: 100%;
    height: auto;
    margin: auto;
    padding: 20px 0;
}


.image-viewer-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
}

.image-viewer-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-viewer-optional-heading {
    text-align: center;
}
