/* Layout */
.wrap {
    max-width: 1365px;
    margin: 0 auto;
    padding: 24px;
}

.cpg-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    margin: 0 0 12px;
}

/* Archive cards */
.cpg-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.cpg-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cpg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.cpg-thumb img,
.cpg-thumb--placeholder {
    display: block;
    width: 100%;
    height: 230px;
    /*height: 180px;*/
    object-fit: cover;
    /*background: linear-gradient(135deg, #f3f4f6, #ffffff);*/
        background: linear-gradient(135deg, #ffecec, #ffffff);
            padding: 10px;
}

.cpg-card-title {
    font-size: 1.1rem;
    padding: 12px 14px 14px;
    margin: 0;
    border-top: 1px solid #ffecec;
}

.cpg-card-title a {
    text-decoration: none;
}

.cpg-card-title a:hover {
    text-decoration: underline;
}

/* Single grid */
.cpg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /*grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));*/
    gap: 14px;
    margin-top: 12px;
}

.cpg-grid-item {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
}

.cpg-grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.cpg-grid-item:hover img {
    transform: scale(1.03);
}
