/* ==========================================================================
   Organism: Publication Grid Section — Masonry Layout
   ========================================================================== */

.saha-publication-grid {
    width: 100%;
}

/* --- Section header --- */

.saha-publication-grid__header {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--saha-color-border);
    margin-bottom: 48px;
}

.saha-publication-grid__section-title {
    font-family: var(--saha-font-primary);
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: var(--saha-color-text-primary);
    margin: 0;
}

/* --- Masonry grid (CSS columns) --- */

.saha-publication-grid__masonry {
    columns: 4;
    column-gap: 30px;
}

/* --- Item with divider --- */

.saha-publication-grid__item {
    break-inside: avoid;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--saha-color-border);
}

/* --- Hidden items (load-more) --- */

.saha-publication-grid__item--hidden {
    display: none;
}

/* --- Footer (load-more button) --- */

.saha-publication-grid__footer {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding-bottom: 30px;
}

/* --- Responsive: Tablet --- */

@media (max-width: 1023px) {
    .saha-publication-grid__masonry {
        columns: 2;
        column-gap: 20px;
    }
}

/* --- Responsive: Mobile --- */

@media (max-width: 639px) {
    .saha-publication-grid__masonry {
        columns: 1;
    }

    .saha-publication-grid__item {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}
