.bb-articles {
width: 100%;
}
.bb-articles__filters {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 8px;
margin: 0 0 clamp(30px, 3.8vw, 70px) 0;
padding: clamp(10px, 0.8vw, 15px) clamp(35px, 4vw, 80px);
background-color: #202A3b;
border-radius: 50px;
}
.bb-articles__filter {
cursor: pointer;
border: none;
background-color: transparent;
font-weight: 300;
}
.bb-articles__filter.is-active {
font-weight: 700;
}
.bb-articles__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: clamp(15px, 1.6vw, 30px);
}
.bb-articles__more {
margin-top: 16px;
display: flex;
justify-content: center;
}
.bb-articles__loadmore {
border: 1px solid #ddd;
background: #fff;
padding: 10px 12px;
cursor: pointer;
}
.bb-article-card {
overflow: hidden;
background: #fff;
}
.bb-article-card__link {
display: block;
color: inherit;
text-decoration: none;
}
.bb-article-card__img {
aspect-ratio: 1 / 1;
overflow: hidden;
position: relative;
}
.bb-article-card__img::before {
content: "";
position: absolute;
inset: 0;
background-image: inherit;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transform: scale(1);
transition: transform .25s ease-in-out;
}
.bb-article-card__link:hover .bb-article-card__img::before,
.bb-article-card__link:focus-visible .bb-article-card__img::before {
transform: scale(1.06);
}
.bb-article-card__img--placeholder {
background: #f3f3f3;
}
.bb-article-card__body {
padding-top: 12px;
}
.bb-article-card__date {
font-family: "New Frank", serif;
font-size: clamp(15px, 1.2vw, 20px);
font-weight: 100;
}
.bb-article-card__title {
font-family: "New Frank", serif;
font-size: clamp(18px, 1.5vw, 30px);
font-weight: 500;
margin: clamp(10px, 1.2vW, 20px) 0;
}
.bb-article-card__text {
font-size: clamp(15px, 1.2vw, 22px);
}
.bb-articles__empty {
padding: 12px;
border: 1px dashed #ddd;
} .bb-carousel-layout {
display: grid;
grid-template-columns: 30% minmax(0, 1fr);
gap: 16px;
align-items: stretch;
}
.bb-carousel-layout__left {
display: flex;
flex-direction: column;
height: 100%;
justify-content: space-between;
min-height: 0;
}
.bb-carousel-layout__bottom {
display: flex;
flex-direction: column;
gap: 14px;
margin-top: 16px;
}
.bb-carousel-layout__dots {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.bb-carousel__dot {
margin-bottom: 20px;
width: 45px;
height: 6px;
border: 0;
padding: 0;
cursor: pointer;
background: #dfbd9398;
border-radius: 999px;
}
.bb-carousel__dot.is-active {
background: #DFBD93;
}
.bb-carousel-layout__cta {
font-weight: 500;
margin-right: auto;
}
.bb-carousel {
position: relative;
display: grid; grid-template-columns: 1fr;
align-items: center;
gap: 8px;
min-height: 0;
}
.bb-carousel__viewport {
overflow: hidden;
width: 100%;
}
.bb-carousel__track {
display: flex;
will-change: transform;
}
.bb-carousel__slide {
box-sizing: border-box;
padding: 0 10px;
}
.bb-carousel__nav {
border: 1px solid #ddd;
background: #fff;
height: 36px;
width: 36px;
cursor: pointer;
line-height: 34px;
text-align: center;
font-size: 18px;
} .bb-articles__more {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
margin-top: 16px;
}
.bb-articles__loadmore.is-loading {
opacity: 0.7;
cursor: not-allowed;
position: relative;
padding-right: 34px;
}
.bb-articles__loadmore.is-loading::after {
content: "";
width: 14px;
height: 14px;
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: 999px;
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
animation: bbSpin 0.8s linear infinite;
}
.bb-articles__loading {
font-size: 14px;
}
@keyframes bbSpin {
from {
transform: translateY(-50%) rotate(0deg);
}
to {
transform: translateY(-50%) rotate(360deg);
}
}
@media (max-width: 1023px) {
.bb-articles__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bb-carousel-layout {
grid-template-columns: 280px minmax(0, 1fr);
}
}
@media (max-width: 767px) {
.bb-articles__grid {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.bb-carousel-layout__title {
text-align: center;
padding-bottom: 25px;
}
.bb-carousel-layout {
grid-template-columns: 1fr;
grid-template-areas:
"title"
"carousel"
"dots"
"cta";
gap: 15px;
}
.bb-carousel-layout__left {
display: contents;
height: auto;
}
.bb-carousel-layout__bottom {
display: contents;
}
.bb-carousel-layout__title {
grid-area: title;
}
.bb-carousel {
grid-area: carousel;
grid-template-columns: 1fr;
}
.bb-carousel-layout__dots {
grid-area: dots;
margin-top: 8px;
justify-content: center;
button {
margin-bottom: 0;
}
}
.bb-carousel-layout__cta {
grid-area: cta;
margin-top: 25px;
margin-left: auto;
margin-right: auto;
}
.bb-carousel__nav {
display: none;
}
}