/* sga-style.css */

.sga-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* grid-template-rows set by JS */
    gap: 10px;
}

.sga-item {
    position: relative;
    background-color: #A9A9A9;
    overflow: hidden;
}

.sga-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sga-caption {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    display: none;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    box-sizing: border-box;
}

.sga-item:hover .sga-caption {
    /* Hover for desktop, but JS will handle */
}