/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.header-cards {
    position: relative;
    color: var(--off-white);
}

.header-cards .slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    justify-items: center;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.header-cards .slide,
.header-cards .img-cont,
.header-cards .slide-img {
    position: relative;
    z-index: 1;
}

.header-cards .slide {
    max-width: 230px;
}

.header-cards .img-cont {
    margin-bottom: 10px;
    border: 2px solid var(--off-white);
}

.header-cards .slide-img {
    width: 100%;
}

.header-cards .read-time {
    position: absolute;
    inset: auto auto 6px -4px;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 12px;
    background: var(--yellow);
    font-family: var(--typewriter);
    font-weight: normal;
    font-size: 0.70625rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--blue);
    pointer-events: none;
}

.header-cards .slide-title {
    font-family: var(--sofia);
    font-weight: var(--font-weight-black);
    font-size: var(--text-sm);
    line-height: 1.2;
    color: inherit;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (min-width: 40em) {
    .header-cards .slides {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}