/* Home News Modul VC */

.no-overflow {
	overflow: visible !important;
}

.newsandmore-wrapper {	
	margin-top: var(--maple-newsandmore-margin-top);
	margin-bottom: var(--maple-newsandmore-margin-bottom);
}

.lineclamp-1 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.lineclamp-2 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.lineclamp-3 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.newsandmore-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	padding-left: 0;
	margin-left: 0;
	list-style: none;
}

.newsandmore-item::before {
	display: none;
}

.newsandmore-item {
	text-align: left;
	background-color: var(--black);	
	position: relative;
	padding: 20px !important;
	transition: background-color 0.2s;
}

li.newsandmore-item:hover {
	background-color: var(--grey);
}

.newsandmore-item a {
	text-decoration: none;
}

.newsandmore-content h2 {
	font-size: 30px;
	margin: 35px 0 15px;
	padding-right: 0px;
	line-height: 1.0;
	color: var(--aqua-3);	
}

.newsandmore-content p {
	font-size: 18px;
	color: var(--white) !important;
	margin: 5px 0 15px;
	padding-right: 50px;	
}

.bg-white .newsandmore-content p {
	color: var(--black);	
}

.newsandmore-item img {
	filter: grayscale(1) brightness(0.8) contrast(2);
	transition: 0.2s;	
}

.newsandmore-item .newsandmore-image {
	position: relative;
	z-index: 1;
}

.newsandmore-item a:hover img {
	filter: grayscale(0) brightness(1) contrast(1);
}

.newsandmore-content {
	position: relative;	
	padding: 0 10px;
}

.newsandmore-content:after {
	content: '\f102';
	font-weight: 900;
	font-family: 'Font Awesome 7 Free';
	font-size: 35px;
	position: absolute;
	bottom: 0;
	right: 0;
	transform: rotate(134deg);
	color: var(--black);
}

.newsandmore-empty {
	font-size: 18px;
	color: var(--black);
}

.newsandmore-pagination {
	margin-top: 60px;
}

.newsandmore-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding: 0;
	margin: 0;
	list-style: none;
	justify-content: center;	
}

.newsandmore-pagination ul li::before {
	display: none;
}

.newsandmore-pagination ul li {
	padding-left: 10px;
}

.newsandmore-pagination a,
.newsandmore-pagination span {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 2px 12px 0;    
    text-decoration: none;
    line-height: 1;
    color: var(--black);
    background-color: var(--aqua-3);   
}

.newsandmore-pagination .current {
	background: var(--black);
	color: var(--white);
}

.newsandmore-pagination a:hover {
	background-color: var(--aqua-4);   	
}

@media (max-width: 991px) {
	.newsandmore-items {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
		padding-left: 0;
		margin-left: 0;
		list-style: none;
	}	
}

@media (max-width: 768px) {
	.newsandmore-items {
		grid-template-columns: repeat(1, auto);
		gap: 30px;
		padding-left: 0;
		margin-left: 0;
		list-style: none;
	}

	.newsandmore-item:nth-child(2) {
		transform: translateY(0%);
	}

	.lineclamp-1 {
		-webkit-line-clamp: 2;
	}

	.lineclamp-2 {
		-webkit-line-clamp: 3;
	}
	.newsandmore-item:nth-child(even) {
    transform: translateY(0%);
}
}


/* Framed Image addition */

.paper-frame {
	position: relative;
	width: 100%;
	max-width: 700px;
	aspect-ratio: 16 / 9;
}

.paper-frame__image,
.paper-frame__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.paper-frame__image {
	object-fit: cover;

	-webkit-mask-image: url("/wp-content/plugins/maple-ext/inc/vc-modules/assets/img/frame-mask2.svg");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 102% 103%;
	-webkit-mask-position: center;

	mask-image: url("/wp-content/plugins/maple-ext/inc/vc-modules/assets/img/frame-mask2.svg");
	mask-repeat: no-repeat;
	mask-size: 102% 103%;
	mask-position: center;
}

.paper-frame__overlay {
	object-fit: contain;
	pointer-events: none;
	z-index: 2;
}