.d-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

/* каталог */

.activity-list {
    background-color: transparent;
    margin-bottom: 24px;
}

.activity-list a {
    color: inherit;
}

.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    word-wrap: break-word;
    background-color: white;
    background-clip: border-box;
    border: 1px solid #dddddd;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    transition: transform 0.3s ease-out;
    position: relative;
    /*clip-path: polygon(0 0, 100% 0, 100% 80%, 80% 100%, 0 100%);*/
}

.card:hover {
    transform: scale(1.02);
    transition: transform 0.07s ease-in;
}

.card a {
    font-size: inherit;
    color: inherit;
}

.card-img-top {
    height: 210px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    flex: 1 1 auto;
    padding: 15px;
    color: inherit;
}

.card .card-title {
    color: inherit;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    padding: 0;
}

.card .card-text {
    font-size: 14px;
}

.card-footer {
    font-size: 13px;
    padding: 0 15px;
    color: inherit;
    background-color: #fafafa;
    border-top: 1px solid #ddd;
}

.card-img-top.image-bordered {
    object-fit: contain;
    padding: 15px;
    box-sizing: border-box;
}

/* Детальник */

.activity-detail {
    background-color: transparent;
}

.activity-detail-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 12px;
}

.activity-detail-info a {
    color: #07b1ff;
    text-decoration: none;
}

.activity-detail-info .date,
.activity-detail-info .author,
.activity-detail-info .photographer {
    font-size: 16px;
    color: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.activity-detail-info span:nth-child(1) {
    flex: 1;
}

.activity-detail-info span:not(:last-child) {
    margin-right: 24px;
}


h1.activity-detail-h1 {
    font-size: 32px;
    line-height: 44px;
    color: inherit;
    padding: 0;
    margin-bottom: 24px;
}

h2.activity-detail-h2 {
    font-size: 24px;
    line-height: 36px;
    color: inherit;
    padding: 0;
    margin-bottom: 24px;
}

.activity-detail-body {}

.activity-detail-body a {
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: .25em;
    text-decoration-thickness: 1px;
    text-decoration-color: #40be2a;
    transition: .225s;
}

.activity-detail-body a:hover {
    color: #40be2a;
}

.activity-detail .article-image {
    display: block;
    margin: 24px auto;
    width: auto;
    max-width: 800px;
    height: auto;
}

@media (max-width: 425px) {
    .d-grid-3 {
        grid-template-columns: 1fr;
    }

    .activity-detail-info {
        display: block;
    }

    h1.activity-detail-h1 {
        font-size: 18px;
        line-height: 26px;
    }

    h2.activity-detail-h2 {
        font-size: 16px;
        line-height: 24px;
    }
}