.news_archive {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--gap-m);
}
@media (max-width: 700px) {
.news_archive {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 400px) {
.news_archive {
grid-template-columns: repeat(1, 1fr);
}
}
.news_archive .post_thumb {
border-radius: 10px;
aspect-ratio: 10/9.5;
position: relative;
overflow: hidden;
}
.news_archive .post_thumb img {
position: absolute;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.news_archive .post_thumb:after {
content: "";
width: 66px;
aspect-ratio: 1/1;
position: absolute;
top: 0;
right: 0;
opacity: 0;
transition: 0.3s;
background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2766%27 height=%2770%27 fill=%27none%27%3E%3Cpath fill=%27%23FFD100%27 d=%27M0 .04h55.417c5.523 0 10 4.476 10 10v59.509H0V.039Z%27/%3E%3Cpath fill=%27%232E2057%27 fill-rule=%27evenodd%27 d=%27m23.902 23.638 17.997.315a2 2 0 0 1 1.965 2.034l-.314 17.997a2 2 0 0 1-4-.07l.23-13.169-13.79 13.318a2 2 0 0 1-2.78-2.878l13.791-13.317-13.17-.23a2 2 0 1 1 .07-4Z%27 clip-rule=%27evenodd%27/%3E%3C/svg%3E");
}
.news_archive a {
display: flex;
flex-direction: column;
gap: var(--gap-s);
text-decoration: none;
padding-bottom: var(--gap-s);
border-bottom: 3px solid transparent;
container-name: news-listing-post;
container-type: inline-size;
}
.news_archive a .large {
font-weight: 600;
}
@media (max-width: 700px) {
.news_archive a .large {
font-size: 16px;
}
}
@media (pointer: fine) {
.news_archive a:hover {
border-color: var(--bg-yellow);
}
.news_archive a:hover .post_thumb:after {
opacity: 1;
}
}
.loop_cats {
position: absolute;
bottom: 10px;
left: 10px;
display: flex;
flex-wrap: wrap;
gap: 5px;
right: 10px;
}
.loop_cats > div {
background: var(--bg-yellow);
color: var(--bg-dark);
padding: 2px 5px;
border-radius: 5px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
}
@container news-listing-post (max-width: 200px) {
.loop_cats {
display: none;
}
} @media (max-width: 700px) and (min-width: 400px) {
.featured_news.count-3 a:nth-child(3) {
display: none;
}
}