/*
 * ioann-karpovka: albums_list block (task 29, the «Фотоальбомы» page; design Site.dc.html lines 572-608).
 * Sticky year bar = .ik-page-tabs--anchors (page-tabs.css). One section per year: the year numeral (600 clamp(72px,9vw,120px)
 * Cormorant, ochre; the design's cqw is vw here) with the «N альбомов» row, and the AlbumCard grid
 * (auto-fill minmax(min(100%,260px),1fr), gap 48px 32px). The numeral sits beside the cards only when 4 tracks of
 * 220px + 3 gaps of 64px fit (section >= 1072px = viewport >= 1136px); below that it stacks above the cards.
 * Breakpoints: 768 only via `(min-width: 768px)` / `not all and (min-width: 768px)` (none needed here);
 * the side layout has its own 1136px query.
 */
.ik-albums__years { padding-bottom: 120px; }

.ik-albums__year {
    display: grid;
    gap: 32px;
    min-width: 0;
    padding-block: 72px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: var(--ik-anchor-offset, 73px);
}

.ik-albums__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    min-width: 0;
}

.ik-albums__numeral {
    margin: 0;
    font: 600 clamp(72px, 9vw, 120px)/.9 var(--font-title);
    letter-spacing: -.02em;
    color: var(--iskm-ochre);
}

.ik-albums__count {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font: 500 13px/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--iskm-mauve-700);
}
.ik-albums__count .ik-flower { flex: none; width: 14px; height: 14px; }

.ik-albums__grid {
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 48px 32px;
}
.ik-albums__item { min-width: 0; }

.ik-albums__empty {
    margin: 0;
    padding-block: 40px 120px;
    font: italic 400 24px/1.3 var(--font-title);
    color: var(--iskm-mauve-700);
}

@media (min-width: 1136px) {
    .ik-albums__year {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 64px;
    }
    .ik-albums__head { position: sticky; top: 96px; }
    .ik-albums__grid { grid-column: span 3; }
}
