/* CSS styling for sc_recs_gallery.php */

/* Accessible gallery style */
.recs-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive columns */
    grid-gap: 10px; /* Gap between the images */
    padding: 0;
    margin: 0;
    list-style: none; /* Remove bullets from list */
}

.recs-gallery-item {
    list-style-type: none;
    margin-bottom: 10px;
}

.recs-gallery-item figure {
    margin: 0;
    padding: 0;
}

.recs-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Maintain aspect ratio */
    border-radius: 5px;
}

.recs-gallery-item figcaption {
    text-align: center;
    font-size: 0.9em;
    color: #333; /* Ensure caption contrast is 4.5:1 or higher */
    background-color: #f8f8f8; /* Optional: Add contrast for captions */
    padding: 5px;
}

/* Optional: Highlight focus on images if ever interactive */
.recs-gallery-item img:focus {
    outline: 2px solid #0073aa; /* Visible focus outline for interactive images */
}
