.projects {
margin-top: 5rem;
margin-bottom: 5rem;
}
@media (max-width: 992px) {
.projects {
margin-top: 1rem;
margin-bottom: 1rem;
}
}
.projects-container {
position: relative;
display: grid;
height: auto;
grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
.projects-container {
grid-template-columns: repeat(2, 1fr);
}
}
.news-container, .products-container {
row-gap: 1rem;
column-gap: 1rem;
}
@media (min-width: 768px) {
.news-container, .products-container {
row-gap: 3rem;
column-gap: 3rem;
}
}
.masonry-container .masonry {
position: absolute;
width: calc(50% - 8rem);
transition: top 0.2s ease-in-out;
}
.masonry-container .left {
left: 0;
}
.masonry-container .right {
right: 0;
}
.projects .pagination {
margin-top: 3rem;
}
.projects .pagination .btn.btn-primary {
width: auto;
}
.product-item__container, .news-item__container {
overflow: hidden;
width: 100%;
position: relative;
}
.product-item__container .product-item__text,
.product-item__container .news-item__text, .news-item__container .product-item__text,
.news-item__container .news-item__text {
padding: 1rem;
}
.product-item__container .product-item__text h2,
.product-item__container .news-item__text h2, .news-item__container .product-item__text h2,
.news-item__container .news-item__text h2 {
color: white;
}
.product-item__container time, .news-item__container time {
color: white;
font-size: var(--dm-body-font-size);
font-weight: 400;
margin-bottom: 0.25rem;
display: block;
}
.product-item__image, .news-item__image {
z-index: 0;
position: absolute;
margin: auto;
aspect-ratio: 484/461;
object-fit: cover;
object-position: center;
transition: transform 0.2s ease-in-out;
}
.product-item__content, .news-item__content {
position: relative;
aspect-ratio: 2/1;
background: transparent;
align-content: center;
justify-content: center;
width: 100%;
text-align: center;
}
.product-item__content:before, .news-item__content:before {
z-index: 1;
content: "";
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
.product-item__content, .news-item__content {
aspect-ratio: 484/461;
}
}
.product-item__text, .news-item__text {
position: relative;
z-index: 2;
transition: margin-bottom 0.2s ease-in-out;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
@media (min-width: 768px) {
.product-item__text, .news-item__text {
height: auto;
display: block;
}
}
.product-item__readmore, .news-item__readmore {
position: absolute;
opacity: 1;
left: 0;
right: 0;
margin: auto;
transition: opacity 0.2s ease-in-out;
height: 100%;
width: 100%;
border-color: transparent;
color: transparent;
}
@media (min-width: 768px) {
.product-item__readmore, .news-item__readmore {
opacity: 0;
width: fit-content;
height: fit-content;
border-color: white;
color: white;
}
}
.product-item:hover .news-item__image, .news-item:hover .news-item__image {
transform: scale(1.05);
}
.product-item:hover .news-item__text, .news-item:hover .news-item__text {
margin-bottom: 0;
}
@media (min-width: 768px) {
.product-item:hover .news-item__text, .news-item:hover .news-item__text {
margin-bottom: 4rem;
}
}
.product-item:hover .news-item__readmore, .news-item:hover .news-item__readmore {
opacity: 1;
margin-top: 0;
}
@media (min-width: 768px) {
.product-item:hover .news-item__readmore, .news-item:hover .news-item__readmore {
margin-top: 1rem;
}
}
.product-item:hover .btn, .news-item:hover .btn {
background-color: transparent;
border-color: transparent;
color: transparent;
}
@media (min-width: 768px) {
.product-item:hover .btn, .news-item:hover .btn {
border-color: white;
color: var(--dm-body-color);
background-color: white;
}
}.container-width-75 {
position: relative;
width: 75%;
}
@media (max-width:991px) {
.container-width-75 {
width: 100%;
}
}.fullwidth {
width: 100vw;
position: relative;
margin-left: -50vw;
left: 50%;
background-color: lightgrey;
}
.fullwidth.has-image {
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-blend-mode: overlay;
}