/* --- Add to app.css or site.css --- */

.attachment-thumbnail {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.attachment-thumbnail:hover {
    border-color: #0d6efd;
}
.attachment-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-toggle {
    display: none; /* Hide the checkbox */
}

.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* When the checkbox is checked, show the lightbox */
.lightbox-toggle:checked + .lightbox {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    cursor: pointer;
    z-index: -1;
}
