/* Sticky Cards Grid Container */
.dipl_horizontal_scrolling_card,
.dipl-sticky-cards-scroller{
	position: relative;
	overflow: hidden;
}
.dipl-sticky-cards-scroller{
	background-size: cover;
	background-position: 50%;
	background-repeat: no-repeat;
}
.dipl-sticky-cards-wrapper{
	position: relative;
}
.dipl-sticky-cards-inner{
	display: flex; 
	overflow: visible; 
}

.dipl_horizontal_scrolling_card .dipl-sticky-cards-wrapper .dipl_horizontal_scrolling_card_item{
	flex-shrink: 0;
	margin-bottom: 0;
}
.dipl_horizontal_scrolling_card_item .et_pb_module_inner,
.dipl_horizontal_scrolling_card_item > div{
	height: 100%;
}
.dipl_horizontal_scrolling_card_wrapper{
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 300px;
	min-width: 300px;
	margin-right: 20px; /* this should be coming from the module */ 
	padding: 20px;
	font-size: 2rem;
	background-color: #f0f0f0;
	border: 0 solid #000;
}
.dipl_horizontal_scrolling_card_item:last-child .dipl_horizontal_scrolling_card_wrapper{
	margin-right: 0;
}

.dipl_horizontal_scrolling_card_inner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.28);
	transition: all .3s ease-in-out;
}
.dipl_horizontal_scrolling_card_image_wrapper{
	position: relative;
	width: 100%;
}
.dipl_horizontal_scrolling_card_image{
	width: 100%;
	max-width: 100%;
	object-fit: cover;
	border: 0 solid #000;
}
.dipl_horizontal_scrolling_card_content_wrapper{
	width: 100%;
	border: 0 solid #000;
}
.dipl_horizontal_scrolling_card_title{
	margin-top: 15px;
}
.dipl_horizontal_scrolling_card_description{
	font-size: 16px;
	line-height: 1.2em;
}

/* Tag. */
.dipl_horizontal_scrolling_card_tag_wrapper .dipl_horizontal_scrolling_card_tag{
	display: inline-block;
	padding: 5px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
	background-color: #000;
}

/* Button. */
.dipl_horizontal_scrolling_card_wrapper .et_pb_button_wrapper{
	margin-top: 15px;
}
.dipl_horizontal_scrolling_card_wrapper .et_pb_button{
	display: inline-block;
}
.dipl_horizontal_scrolling_card_item .et_pb_button:before,
.dipl_horizontal_scrolling_card_item .et_pb_button:after{
	content: attr(data-icon);
}

/* Layout 1 Specific. */
.dipl_horizontal_scrolling_card .layout1 .dipl_horizontal_scrolling_card_image_wrapper .dipl_horizontal_scrolling_card_tag_wrapper{
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
}
.dipl_horizontal_scrolling_card .layout1 .dipl_horizontal_scrolling_card_content_wrapper{
	flex-grow: 1;
}

/* Layout 2 Specific. */
.dipl_horizontal_scrolling_card .layout2 .dipl_horizontal_scrolling_card_wrapper{
	min-height: 500px;
	padding: 0px;
}
.dipl_horizontal_scrolling_card .layout2 .dipl_horizontal_scrolling_card_inner{
	display: flex;
	align-items: flex-end;
	height: 100%;
	min-width: 100%;
	background-size: cover;
	background-position: center;
	padding: 20px;
}
.dipl_horizontal_scrolling_card .layout2 .dipl_horizontal_scrolling_card_content_wrapper{
	position: relative;
	color: #fff;
}
.dipl_horizontal_scrolling_card .layout2 .dipl_horizontal_scrolling_card_tag_wrapper{
	position: relative;
}.dp-posts-ticker-wrap{
	display: flex;
	overflow: hidden;
	max-width: 100%;
}

/* Ticker label. */
.dp-posts-ticker-label {
	font-size: 18px;
	color: #fff;
	border: 0 solid #000;
	white-space: nowrap;
    position: relative;
	z-index: 3;
	overflow: unset !important;
}

/* Ticker items. */
.dp-posts-ticker-items{
	position: relative;
	overflow: hidden;
	flex-grow: 1;
	border: 0 solid #000;
	white-space: nowrap;
}
.dp-posts-ticker-bar{
	display: flex;
	align-items: center;
	max-width: 100%;
}
.dp-posts-ticker-post-title{
	padding: 0 5px;
	font-size: 16px;
	color: #000;
}

/* Scroll effect. */
.dp-ticker-effect-scroll .dp-posts-ticker-bar{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	white-space: nowrap;
	max-width: none !important; /* Force full width of content. */
	width: max-content; 
	animation-name: dp-posts-ticker-scroll;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-duration: 35.00s;
}
.dp-ticker-effect-scroll:hover .dp-posts-ticker-bar{
	animation-play-state: paused;
}
.dp-ticker-effect-scroll .dp-posts-ticker-item{
	white-space: nowrap;
}
.dp-ticker-effect-scroll .dp-posts-ticker-item::after{
	content: "";
}
.dp-ticker-effect-scroll .dp-posts-ticker-item:last-child::after {
	display: none !important;
}
.dp-ticker-effect-scroll .dp-posts-ticker-post-title{
	display: inline-block;
}

/* Fade/Slide effect. */
.dp-ticker-effect-slide .dp-posts-ticker-bar,
.dp-ticker-effect-fade .dp-posts-ticker-bar{
	height: 100%;
}
.dp-ticker-effect-fade .dp-posts-ticker-item{
	max-width: 100%;
}
.dp-ticker-effect-slide .dp-posts-ticker-post-title,
.dp-ticker-effect-fade .dp-posts-ticker-post-title{
	display: block;
}
.dp-ticker-effect-slide .dp-posts-ticker-item{
	max-width: 100%;
	height: 100% !important;
}
.dp-ticker-effect-slide .swiper-container{
	margin-left: 0;
	flex-grow: 1;
	height: auto;
}
.dp-posts-ticker-items .dipl_swiper_navigation .swiper-button-next {
	margin-left: 7px;
}

.dp-posts-ticker-items .dipl_swiper_navigation{
	order: 1;
	flex-wrap: nowrap;
	height: 100%;
	margin: 0;
}

@keyframes dp-posts-ticker-scroll {
	from {
		left: 100%;
		transform: translateX(0);
	}
	to {
		left: 0;
		transform: translateX(-100%);
	}
}

@media screen and (max-width: 768px) {
	.dp-posts-ticker-wrap{
		flex-direction: column;
	}
	.dp-ticker-effect-scroll .dp-posts-ticker-bar{
		position: relative;
	}
}