/* =========================================================
   HOME PAGE — RECENT ACTIVITY CARDS
   ========================================================= */

.home-activity-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 20px);
}

.home-activity-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.home-activity-card:hover,
.home-activity-card:focus-visible {
    transform: translateY(-3px);
}

.home-activity-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

/*
 * The title is separate from the reusable Media Card.
 */
.home-activity-card__title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 58px;

    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 9px;
    padding-left: 10px;

    background: #fffdf6;
    border-radius: 0 0 12px 12px;
    color: #159bd3;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

/*
 * Join the Media Card visually to the title block.
 */
.home-activity-card .softmedia-card {
    height: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.home-activity-card .softmedia-card__footer {
    border-radius: 0;
}

/*
 * Put the shadow around the complete assembled card rather
 * than making the title appear detached.
 */
.home-activity-card__title {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}


/* Two columns on tablets. */

@media (max-width: 900px) {

    .home-activity-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* One card wide on phones. */

@media (max-width: 520px) {

    .home-activity-photo-grid {
        grid-template-columns: 1fr;
    }
}