/* static/css/components/image-card.css */

/* --- Image Card Styling --- */
.image-item {
    border: 1px solid #ddd; /* Card border */
    border-radius: 5px; /* Rounded corners */
    padding: 15px; /* Internal padding */
    background-color: #f9f9f9; /* Card background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack image and text vertically */
    overflow: hidden; /* Helps contain elements if needed */
}

/* --- Image Styling within Card --- */
.image-item img {
    display: block; /* Remove extra space below image */
    width: 100%; /* Make image fill card width */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 15px; /* Space between image and text */
    border-radius: 3px; /* Optional: slightly rounded image corners */
}

/* --- Text Styling within Card --- */
.image-item p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.image-item p:last-child {
    margin-bottom: 0;
}

/* --- Comment Styling within Card --- */
.image-item .submission-comment {
    border: 2px solid #777;
    background-color: #eee;
    padding: 8px;
    margin-top: 10px;
    border-radius: 3px;
    font-style: italic;
}

/* --- Media Query for Small Screens (Affecting Card Padding) --- */
@media (max-width: 480px) {
    .image-item {
        /* Reduce padding inside each card on small screens */
        padding: 5px;
        /* Reduce margin below image on small screens */
        margin-bottom: 10px;
    }
     .image-item img {
        margin-bottom: 10px; /* Also adjust image margin if needed */
     }
}