/* Browser-specific styles */

/* Analysis indicator for images */
.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 280px; /* Standard height for image thumbnails in browser */
    overflow: hidden;
}

.image-wrapper .image-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain original behavior for browser */
    display: block;
}

/* Specific styles for modal image wrapper */
#image-modal .image-wrapper {
    position: relative; /* This ensures absolute positioning context for overlays */
    height: auto; /* Allow modal images to have flexible height */
    max-height: 70vh; /* Limit to 70% of viewport height */
    min-height: 200px; /* Minimum height for visibility */
    width: auto; /* Allow width to adjust */
    max-width: 100%; /* Don't exceed container width */
    overflow: visible; /* Allow full image display */
    display: flex;
    justify-content: center;
    align-items: center;
}

#image-modal .image-wrapper .image-thumbnail {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain; /* Show full image without cropping */
    display: block;
}

.analysis-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #4CAF50; /* Green background */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 3; /* Higher z-index to stay above image */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Overlay for modal image with checkbox */
.modal-image-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4; /* Above the image and indicator */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 5;
}