/* Results */
#entity-results #entity-items {
	display: grid;
	grid-column-gap: 30px;
    grid-row-gap: 30px;
	grid-template-columns: repeat(4, 1fr);
}
#entity-results #entity-items article .item {
	background-color: #fff;
	cursor: pointer;
	border-radius: 10px;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
    flex-direction: column;
}

#entity-results.shortcode-content #entity-items {
	display: block;
	margin: 0 -15px;
	padding-bottom: 30px;
}
#entity-results.shortcode-content #entity-items article {
    width: 25%;
    box-sizing: border-box;
	padding: 0 15px;
	display: flex;
    flex-direction: column;
}
#entity-results.shortcode-content #entity-items .flickity-page-dots {
	left: 0;
	transform: translateX(0);
	margin: 0;
}

#entity-results #entity-items article .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
#entity-results #entity-items article .thumbnail {
	position: relative;
	overflow: hidden;
	display: block;
}
#entity-results #entity-items article .thumbnail img {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}
#entity-results #entity-items article .voertuig-image {
    position: relative;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    cursor: pointer;
    aspect-ratio: 14/9;
	display: block;
}
#entity-results #entity-items article .item-content {
	padding: 20px;
	color: #0a0103;
}
#entity-results #entity-items article .item-content h1{
	font-size: 1.2em;
    font-weight: bold;
    line-height: 1.3;
	height: calc(1.3em * 2);

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
	margin-bottom: 10px;
}
#entity-results #entity-items article .entry-content ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
#entity-results #entity-items article .entry-content ul li {
	display: inline-block;
	padding: 0 6px;
	background-color: #edecec;
	border-radius: 5px;
	font-size: 13px;
	margin: 0;
}
#entity-results #entity-items article .item_footer {
	display: flex;
	align-items: center;
	padding: 0 20px 20px;
	margin-top: auto;
}
#entity-results #entity-items article .item_footer button {
	margin-left: auto;
	background-color: #0a0103;
	color: #fff;
	border: 0;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
}
#entity-results #entity-items article .item_footer button svg {
	width: 20px;
	fill: #EFF0F0;
}
#entity-results #entity-items article .item_footer h4 {
	display: flex;
	flex-direction: column;
	color: #13866b;
	font-size: 1.5em;
	margin-bottom: 0;
}
#entity-results #entity-items article .item_footer span {
	font-size: 14px;
	font-weight: normal;
	color: #0a0103;
}

#entity-results #entity-items article .thumbnail img,
#entity-results #entity-items article .item_footer button,
#entity-results #entity-items article .item-content h1 {
	-webkit-transition: all 0.4s ease;
	transition: all 0.4s ease;
}
#entity-results #entity-items article:hover img{
    -webkit-transform: scale(1.07, 1.07);
    -moz-transform: scale(1.07,1.07);
    -o-transform: scale(1.07,1.07);
    -ms-transform: scale(1.07,1.07);
    transform: scale(1.07, 1.07);
}
#entity-results #entity-items article:hover h1 {
	color: #e11539;
}
#entity-results #entity-items article:hover .item_footer button {
	background-color: #e11539;
}

.infinite-results {
	display: flex;
    justify-content: center;
    margin-top: 20px;
}
.infinite-results a {
	display: block;
    width: auto !important;
    color: #fff;
    background: #e1153b;
    border-radius: 5px !important;
    padding: 0 15px !important;
    font-size: 15px;
}

@media (max-width: 959px) {

    /* Remove ALL counter logic */
    .flickity-page-dots {
        counter-reset: none !important;
        font-size: 0 !important; /* hides generated text */

		position: absolute;
    	bottom: -30px;
		left: 20px !important;
    }

    .flickity-page-dots:after {
        content: none !important;
    }

    .flickity-page-dots .dot {
        counter-increment: none !important;
    }

    .flickity-page-dots .dot::before,
    .flickity-page-dots .dot::after {
        content: none !important;
    }

    /* Rebuild dots visually */
    .flickity-page-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        gap: 8px;
    }

    .flickity-page-dots .dot {
        width: 8px;
        height: 8px;
        background: #BFBDBD;
        border-radius: 50%;
        cursor: pointer;
    }

    .flickity-page-dots .dot.is-selected {
        background: #E11539;
    }
}


@media screen and (max-width:1250px) {
	#entity-results #entity-items {
		grid-column-gap: 15px;
    	grid-row-gap: 15px;
	}
	#entity-results #entity-items article .item-content {
		padding: 10px 15px;
	}
	#entity-results #entity-items article .item_footer {
		padding: 0 15px 10px;
	}
}
@media screen and (max-width:1100px) {
	#entity-results #entity-items {
		grid-template-columns: repeat(3, 1fr);
	}

	#entity-results.shortcode-content #entity-items article {
		width: 33.33%;
	}
}
@media screen and (max-width: 810px) {
	#entity-results #entity-items {
		grid-template-columns: repeat(2, 1fr);
	}

	#entity-results.shortcode-content #entity-items article {
		width: 50%;
	}
}
@media screen and (max-width: 530px) {
	#entity-results #entity-items {
		grid-template-columns: repeat(1, 1fr);
	}

	#entity-results.shortcode-content #entity-items article {
		width: 100%;
	}
}
@media screen and (max-width: 400px) {
	.avia-button.avia-size-medium {
		padding: 15px 10px;
	}
}