.cpt-shortcode-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
} .cpt-item {
background: #ffffff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
transition: transform .25s ease, box-shadow .25s ease;
display: flex;
flex-direction: column;
text-align: center;
} .cpt-item:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
} .cpt-thumb {
width: 100%;
background: #f2f2f2;
}
.cpt-thumb img {
width: 100%;
height: auto; display: block;
object-fit: contain; } .cpt-item h3 {
font-size: 17px;
font-weight: 600;
margin: 16px;
line-height: 1.3;
color: #222;
}
@media (max-width: 1200px) {
.cpt-shortcode-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 900px) {
.cpt-shortcode-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.cpt-shortcode-grid {
grid-template-columns: 1fr;
}
}
.cpt-link {
display: flex;
flex-direction: column;
height: 100%;
text-decoration: none;
color: inherit;
}
.cpt-link:hover h3 {
text-decoration: underline;
}