
.dpg-wrapper,
.dpg-wrapper * {
    box-sizing: border-box;
}

.dpg-wrapper {
    width: 100%;
}

.dpg-grid {
    display: grid;
    grid-template-columns: repeat(var(--dpg-columns, 3), minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.dpg-card {
    background: #ffffff;
    border: 1px solid #eadbd3;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: none;
}

.dpg-image-link {
    display: block;
    padding: 10px 10px 0;
    text-decoration: none;
}

.dpg-image-wrap {
    width: 100%;
    aspect-ratio: 1.84 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f4f4;
}

.dpg-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dpg-card:hover .dpg-image {
    transform: scale(1.025);
}

.dpg-image-placeholder {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.025), rgba(0,0,0,0.065)),
        #f2f2f2;
}

.dpg-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 10px 22px;
}

.dpg-title {
    margin: 0 0 10px;
    font-family: inherit;
    font-size: clamp(21px, 1.55vw, 31px);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1f2b20;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dpg-title a {
    color: inherit;
    text-decoration: none;
}

.dpg-title a:hover,
.dpg-title a:focus {
    color: inherit;
    text-decoration: none;
}

.dpg-excerpt {
    margin: 0 0 20px;
    color: #323232;
    font-family: inherit;
    font-size: clamp(16px, 1.02vw, 19px);
    line-height: 1.38;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dpg-read-more {
    margin-top: auto;
    display: inline-block;
    width: fit-content;
    color: #161d16;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
}

.dpg-read-more:hover,
.dpg-read-more:focus {
    color: #161d16;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dpg-no-posts {
    grid-column: 1 / -1;
    margin: 0;
}

.dpg-load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 28px;
}

.dpg-load-more {
    appearance: none;
    border: 1px solid #1f2b20;
    border-radius: 8px;
    background: #1f2b20;
    color: #ffffff;
    min-width: 150px;
    padding: 13px 24px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dpg-load-more:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.dpg-load-more:disabled {
    cursor: default;
    opacity: 0.7;
    transform: none;
}

.dpg-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dpg-spin 0.7s linear infinite;
}

.dpg-load-more.is-loading .dpg-spinner {
    display: inline-block;
}

@keyframes dpg-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .dpg-grid {
        grid-template-columns: repeat(min(var(--dpg-columns, 3), 2), minmax(0, 1fr));
    }

    .dpg-title {
        font-size: 23px;
    }
}

@media (max-width: 640px) {
    .dpg-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dpg-content {
        padding: 16px 10px 20px;
    }

    .dpg-title {
        font-size: 22px;
    }

    .dpg-excerpt {
        font-size: 16px;
    }
}
