.mp-post-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.5em;
margin: 0;
}
.mp-post-grid.mp-columns-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.mp-post-grid.mp-columns-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mp-post-grid.mp-columns-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mp-post-grid.mp-columns-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mp-post-card {
background: #fff;
overflow: hidden;
min-width: 0;
}
.mp-post-thumb-wrap {
position: relative;
display: block;
overflow: hidden;
text-decoration: none;
line-height: 0;
}
.mp-post-thumb {
display: block;
width: 100%;
height: auto;
aspect-ratio: 16 / 10;
object-fit: cover;
max-height: 200px;
}
.mp-post-thumb-placeholder {
background: #dcdcdc;
min-height: 240px;
}
.mp-post-content {
padding: 20px 18px 12px;
text-align: center;
}
.mp-post-title {
margin: 0 0 14px;
font-size: 20px;
line-height: normal;
font-weight: 700;
overflow-wrap: anywhere;
word-break: normal;
}
.mp-post-title a {
color: #333;
text-decoration: none;
}
.mp-post-title a:hover {
color: #111;
}
.mp-post-taxonomy {
margin-bottom: 14px;
}
.mp-post-badge {
display: inline-block;
background: #1abc9c;
color: #fff;
font-size: 10px;
font-weight: 400;
line-height: normal;
padding: 3px 8px;
text-transform: uppercase;
}
.mp-post-meta {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 18px;
margin-bottom: 18px;
color: #333333;
font-size: 12px;
line-height: normal;
font-style: italic;
}
.mp-post-meta-item {
display: inline-flex;
align-items: center;
gap: 6px;
}
.mp-meta-icon {
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 1;
gap: 4px;
}
.mp-meta-icon svg {
width: 14px;
height: 14px;
fill: #666;
}
.mp-post-excerpt {
color: #333333;
font-size: 15px;
line-height: 1.66;
margin-bottom: 20px;
overflow-wrap: anywhere;
word-break: normal;
}
.mp-post-readmore a {
display: inline-block;
color: #888;
text-decoration: none;
font-size: 0.875rem;
padding-bottom: 6px;
position: relative;
}
.mp-post-readmore a::after {
content: "";
display: block;
width: 100px;
height: 1px;
background: #888;
margin: 8px auto 0;
}
.mp-post-readmore a:hover {
color: #333;
}
.mp-post-pagination {
margin-top: 30px;
text-align: center;
}
.mp-post-pagination .page-numbers {
list-style: none;
padding: 0;
margin: 0;
display: inline-flex;
gap: 8px;
flex-wrap: wrap;
}
.mp-post-pagination .page-numbers li {
margin: 0;
}
.mp-post-pagination .page-numbers a,
.mp-post-pagination .page-numbers span {
display: inline-block;
padding: 8px 12px;
border: 1px solid #ddd;
text-decoration: none;
color: #333;
background: #fff;
}
.mp-post-pagination .page-numbers .current {
background: #333;
color: #fff;
border-color: #333;
}
.mp-post-grid-empty {
text-align: center;
padding: 20px 0;
}
@media (max-width: 1200px) {
.mp-post-grid.mp-columns-4 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 1024px) {
.mp-post-grid,
.mp-post-grid.mp-columns-3,
.mp-post-grid.mp-columns-4 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mp-post-title {
font-size: 20px;
}
}
@media (max-width: 767px) {
.mp-post-grid,
.mp-post-grid.mp-columns-2,
.mp-post-grid.mp-columns-3,
.mp-post-grid.mp-columns-4 {
grid-template-columns: 1fr;
}
.mp-post-title {
font-size: 18px;
}
.mp-post-content {
padding: 18px 15px 12px;
}
}