.rmg-grid-wrapper{width:100%;margin:0 0 20px;}
.rmg-archive-header{margin-bottom:20px;}
.rmg-archive-title{font-size:1.6rem;margin:0;}
.rmg-grid{display:grid;gap:20px;}
.rmg-cols-2 .rmg-grid{grid-template-columns:repeat(2,1fr);}
.rmg-cols-3 .rmg-grid{grid-template-columns:repeat(3,1fr);}
.rmg-cols-4 .rmg-grid{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){
 .rmg-cols-3 .rmg-grid,
 .rmg-cols-4 .rmg-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
 .rmg-grid{grid-template-columns:repeat(2,1fr);}
}
.rmg-grid.rmg-shadow-none .rmg-item{box-shadow:none;}
.rmg-grid.rmg-shadow-light .rmg-item{box-shadow:0 2px 6px rgba(0,0,0,.08);}
.rmg-grid.rmg-shadow-strong .rmg-item{box-shadow:0 4px 12px rgba(0,0,0,.15);}
.rmg-item{background:#fff;border-radius:6px;overflow:hidden;display:flex;flex-direction:column;height:100%;}
.rmg-thumb-link{display:block;}
.rmg-thumb img{display:block;width:100%;height:auto;transition:transform .3s ease;}
.rmg-thumb-link:hover img{transform:scale(1.05);}
.rmg-title{margin:12px 12px 6px;font-size:1rem;line-height:1.3;}
.rmg-title a{text-decoration:none;}
.rmg-title a:hover{text-decoration:underline;}
.rmg-excerpt{margin:0 12px 12px;font-size:.9rem;flex-grow:1;}
.rmg-pagination{text-align:center;margin-top:20px;}
.rmg-pagination .page-numbers{display:inline-block;margin:0 4px;}
.rmg-no-posts{text-align:center;font-style:italic;margin:30px 0;}
