/* ==========================================================================
   Photos — album listing
   ========================================================================== */

.album-list {
    margin-top: var(--space-xl);
}

/* Each album card — generous vertical rhythm, no divider lines */

.album-item + .album-item {
    margin-top: var(--space-2xl);
}

/* Link wrapper */

.album-link {
    display: block;
}

.album-link:hover .album-cover {
    opacity: 0.88;
}

.album-link:hover .album-title {
    color: var(--color-accent);
}

/* Cover images */

.album-covers {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    margin: 0;
}

.album-covers .album-cover:nth-child(n + 2) {
    display: none;
}

.album-cover {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    transition: opacity 0.3s ease;
}

/* Text group — separated from images */

.album-text {
    margin-top: var(--space-l);
}

/* Title — the dominant text element */

.album-title {
    font-family: var(--font-serif);
    font-size: var(--text-size-prose-h);
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.25;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    border-bottom: none;
    padding-bottom: 0;
    transition: color 0.2s ease;
}

/* Meta line sits below the title */

.album-meta {
    font-family: var(--font-mono);
    font-size: var(--text-size-sm);
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: var(--space-xs) 0 0 0;
    color: var(--color-muted);
}

/* Summary — readable prose, clear separation from heading */

.album-summary {
    font-family: var(--font-serif);
    font-size: var(--text-size-body);
    line-height: 1.65;
    margin: var(--space-m) 0 0 0;
    max-inline-size: 55ch;
}

/* Animations */

.js-animated .album-item {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.5s forwards;
}

/* Responsive: tablet and up */

@media (min-width: 541px) {
    .album-covers {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .album-covers .album-cover:nth-child(n + 2) {
        display: block;
    }
}
