
/* Holstrom Photographic Archives - Random Photo Gallery */

.block-randomItems .item-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.block-randomItems .item.resource {
    min-width: 0;
    text-align: center;
}

.block-randomItems .item.resource img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
}

.block-randomItems .item.resource h3 {
    font-size: 14px;
    margin-top: 8px;
}

/* Make images non-clickable on public Item and Media pages */
body.item.resource.show .media-render.file > a,
body.media.resource.show .media-render.file > a {
    pointer-events: none;
    cursor: default;
}

/* Smaller screens */
@media (max-width: 700px) {
    .block-randomItems .item-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 400px) {
    .block-randomItems .item-showcase {
        grid-template-columns: 1fr;
    }
}
