.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    align-items: stretch;
    gap: 26px 22px;
    width: 100%;
    padding: 26px 20px 30px;
    text-align: center;
}

.card-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 260px));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 248, 238, 0.04);
    border: 1px solid rgba(232, 201, 154, 0.35);
    border-radius: 14px;
    padding: 12px 12px 10px;
    overflow: hidden;
}

.card picture {
    display: block;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
}

.card h2 {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.3;
}

.card h2 a:link,
.card h2 a:visited {
    color: #f0d7ae;
    text-decoration: none;
}

.card h2 .dash {
    display: none;
}

.card h2 .subtitle {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: normal;
    color: #e4d3bc;
}

.more {
    margin-top: auto;
    padding-top: 8px;
}

.more summary {
    position: relative;
    z-index: 2;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    color: #e8c99a;
    padding: 6px 0;
}

.more summary::-webkit-details-marker {
    display: none;
}

.more-open::after {
    content: " \25BE";
}

.more-close {
    display: none;
}

.more-close::after {
    content: " \2715";
}

.more[open] .more-open {
    display: none;
}

.more[open] .more-close {
    display: inline;
}

/* The overlay stays inside the card and leaves the summary in place,
   so opening it never changes the card size (CLS). */
.more-text {
    position: absolute;
    inset: 0 0 44px 0;
    z-index: 1;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
    color: #f3e6d0;
    background: rgba(26, 18, 12, 0.97);
    border-bottom: 1px solid rgba(232, 201, 154, 0.35);
}

.card:has(.more[open]) {
    border-color: #e8c99a;
}

@media (max-width: 767px) {
    .card-grid,
    .card-grid.two-columns {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
        padding: 18px 14px 26px;
    }

    .card {
        padding: 8px 8px 6px;
        border-radius: 12px;
    }

    .card img {
        border-radius: 9px;
    }

    .card h2 {
        margin-top: 9px;
        font-size: 15px;
    }

    .card h2 .subtitle {
        font-size: 12.5px;
    }

    .more-text {
        bottom: 40px;
        padding: 10px;
        font-size: 13px;
        line-height: 1.5;
    }
}
