.album-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.album-grid-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;       /* forces the square */
    overflow: hidden;
    text-decoration: none;
}

.album-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* crops to fill the square without distortion */
    display: block;
}

.album-grid-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);   /* sits just below the tile, hidden */
    transition: transform 0.3s ease;
    background: #f5f0e8;            /* Parchment, matching your brand */
    color: #0f0e0c;                 /* Void */
    padding: 0.75rem 1rem;
    text-align: center;
}

.album-grid-item:hover .album-grid-caption {
    transform: translateY(0);       /* slides up into view on hover */
}