.post-boxes { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 15px; } .post-box { box-shadow: 0 0 3px 0px var(--grey-400); transition: 0.3s box-shadow ease-out; display: flex; flex-direction: column; align-items: flex-start; position: relative; flex: 1; border-radius: 5px; overflow: hidden; } .post-box:hover { box-shadow: 0 0 15px 0px var(--grey-400); } .post-box__tile { font-size: 17px; font-weight: 600; margin: 3px 10px 5px; padding-bottom: 0; position: static; } .post-box__excerpt { margin: 0 10px 5px; font-size: 13px; line-height: 1.3; color: var(--grey-600); flex: 1 1; } .post-box__info { display: flex; align-items: center; padding: 0 10px 5px; color: var(--grey-500); } .post-box__info__half { font-size: 11px; } .post-box__info__half .url { color: var(--grey-500); position: relative; text-decoration: underline; } .post-box__info__half .url:hover { color: var(--grey-600); } .post-box_info__divider { margin-left: 5px; margin-right: 5px; } .post-box__link { height: 100%; left: 0; position: absolute; top: 0; width: 100%; } .post-box__img { width: 100%; } .post-box__category { font-size: 11px; font-weight: 600; margin: 10px 10px 0; position: relative; text-transform: uppercase; } .post-nav { display: flex; justify-content: space-between; border-top: 1px solid var(--grey-400); margin-bottom: 15px; padding-top: 10px; margin-top: 30px; } @media (max-width: 1024px) { .post-boxes { grid-template-columns: repeat(2, 1fr); } .post-nav { margin-bottom: 0; } } @media (max-width: 767px) { .post-boxes { flex-direction: column; } .post-box { width: 100%; } .post-boxes { gap: 12px; } .post-box_info__divider { display: none; } .post-box__info { flex-direction: column; gap: 2px; align-items: flex-start; margin-top: 10px; } .post-box__excerpt { display: none; } .post-box__tile { flex: 1; font-size: 15px; } }