:root {
--darkblue: #003C65;
--lightblue: #0064A8;
--green: #078072;
}
.news-grid {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.news-item {
width: calc(50% - 10px);
min-height: 312px;
color: #fff;
}
.news-item:hover {
color: #fff;
} .news-cat {
font-size: 14px !important;
color: #fff !important;
margin: 0 !important;
}
.news-title {
font-size: 20px !important;
color: #fff !important;
margin: 3px 0 15px 0 !important;
line-height: 28px !important;
font-weight: 500 !important;
letter-spacing: 0 !IMPORTANT;
}
.news-excerpt {
font-size: 16px !important;
color: #fff !important;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.news-item-content {
padding: 10px;
display: flex;
flex-direction: column;
height: 100% !important;
background: var(--lightblue);
transition: all .3s ease-in-out;
}
.news-item-img-txt {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;
gap: 4px;
}
.news-item-img-txt.news-item-content {
grid-area: 1 / 1 / 2 / 2;
}
.news-item-img-txt.news-item-image {
grid-area: 1 / 2 / 2 / 3;
} .news-item-img-txt.var-2 .news-item-content{
background: #003c64 !important;
}
.news-item-img-txt.var-3 .news-item-content{
background: #003c64 !important;
}
.news-item-img-txt.var-3 .news-item-image{
order: 2;
}
.news-item-img-txt.var-4 .news-item-image{
order: 2;
}
.news-item-image img {
height: 100%;
width: 100%;
object-fit: cover;
transition: transform 0.3s ease-in-out;
will-change: transform;
}
.news-item:hover .news-item-image img {
transform: scale(1.05);
}
.news-item-image {
overflow: hidden;
}
.news-item:hover .news-item-content {
background: var(--green) !important;
} .news-item-video {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 1fr;
grid-column-gap: 0px;
grid-row-gap: 0px;
position: relative;
overflow: hidden;
}
.news-item-video-container {
grid-area: 1 / 1 / 2 / 3;
}
.news-item-video-overlay {
grid-area: 1 / 1 / 2 / 3;
}
.news-item-video {
background: var(--lightblue);
}
.news-item-video-content .news-title {
margin-bottom: 0 !important;
}
.news-item-video-content {
grid-area: 1 / 1 / 2 / 2;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: flex-end;
z-index: 2;
}
.news-video-play-btn {
height: 45px;
aspect-ratio: 1 / 1;
background: var(--lightblue);
border-radius: 50%;
transition: all .3s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
}
.news-item-video:hover .news-video-play-btn {
background: var(--green);
}
.news-item-video-overlay {
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
.news-item-video-container-bg {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
transition: all .3s ease-in-out;
z-index: 0;
filter: brightness(0.8);
}
.news-item-video:hover .news-item-video-container-bg {
filter: brightness(0.7);
}
.news-item-video-lightbox .brlbs-cmpnt-container.brlbs-cmpnt-content-blocker {
width: 550px;
}
.news-item-video-lightbox iframe{
aspect-ratio: 16 / 9;
} .news-spacer {
flex-grow: 1;
}
.news-arrow-wrapper {
display: flex;
justify-content: flex-end;
margin: -11px;
}
.news-arrow {
background: #fff;
width: 45px;
aspect-ratio: 1/1;
position: relative;
overflow: hidden;
}
.news-arrow i {
color: var(--lightblue);
}
.news-icon-one {
position: absolute;
top: 50%;
right: 50%;
transform: translate(50%, -50%);
transition: all .2s ease-in-out;
}
.news-icon-two {
position: absolute;
top: 50%;
right: 100%;
transform: translate(-100%, -50%);
transition: all .2s ease-in-out;
}
.news-item:hover .news-icon-one {
top: 50%;
right: 0%;
transform: translate(100%, -50%);
}
.news-item:hover .news-icon-two {
top: 50%;
right: 50%;
transform: translate(50%, -50%);
} @media only screen and (max-width: 800px) {
.news-item {
width: 100%;
}
.news-item-video-lightbox iframe{
height: auto;
width: 100%;
}
.news-item-video-lightbox{
width: 90%;
}
.fancybox__content{
padding: 10px !important;
}
}
@media only screen and (max-width: 600px) {
.news-item-video-content {
grid-area: 1 / 1 / 2 / 3;
}
}
@media only screen and (max-width: 450px) {
.news-item-img-txt {
grid-template-columns: repeat(1, 1fr);
}
.news-item-img-txt.var-3 .news-item-image{
order: 0;
}
.news-item-img-txt.var-4 .news-item-image{
order: 0;
}
}