*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    min-height: 100%;
    background: #000;
}

#collage {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    min-height: 100vh;
    align-content: flex-start;
}

.album-item {
    position: relative;
    width: calc(100% / var(--cols));
    aspect-ratio: 1;
    overflow: hidden;
    flex-shrink: 0;
}

.album-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.album-item .placeholder {
    width: 100%; height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: #333;
    font-family: sans-serif;
    text-align: center;
    padding: 4px;
}

.album-item .overlay {
    position: absolute;
    inset: 0;
    background: var(--accent, rgba(0,0,0,0.78));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-align: center;
    font-family: sans-serif;
}

.album-item:hover img    { transform: scale(1.07); filter: brightness(0.5) saturate(0.6); }
.album-item:hover .overlay { opacity: 1; }

.overlay .artist {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.overlay .title {
    font-size: 0.72rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

#title {
    color: white;
    font-family: sans-serif;
    text-align: center;
}