/**
 * Inhaltsverzeichnis
 * 	1. Query
 *	2. Pagination
 *  3. Loadmore
 * 
 */


/* ================================================== */
/* 1. Query */
/* -------------------------------------------------- */
/* #=#=#=#=#=# 1.1 Container #=#=#=#=#=# */
.cvh--post_query > *:where(:not(:last-child)) {
	margin-bottom: var(--cvh-space-s);
}


/* #=#=#=#=#=# 1.2 Option Attribute #=#=#=#=#=# */
	/* +---- Object Fit ----+ */
.cvh--post_query[data-query-options~="obj-contain"] {
	--obj-fit: contain;
}

.cvh--post_query[data-query-options~="obj-cover"] {
	--obj-fit: cover;
}

.cvh--post_query[data-query-options~="obj-fill"] {
	--obj-fit: fill;
}

.cvh--post_query[data-query-options~="obj-scale-down"] {
	--obj-fit: scale-down;
}

.cvh--post_query[data-query-options~="obj-none"] {
	--obj-fit: none;
}


/* ================================================== */
/* 2. Pagination */
/* -------------------------------------------------- */
/* #=#=#=#=#=# 2.1 Container #=#=#=#=#=# */
.cvh--post_pagination-ctn {
	display: flex;
	flex-direction: row;
	justify-content: center;
}


/* #=#=#=#=#=# 2.2 Link Wrap #=#=#=#=#=# */
.cvh--post_pagination-link-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: center;
	gap: 5px;

	/* Prevent Selection */
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}


/* #=#=#=#=#=# 2.3 Buttons #=#=#=#=#=# */
.cvh--post_pagination-link-wrap > [data-dynamic-links] {
	display: contents;
}

.cvh--pagination-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2em;
	padding: 5px;
}

	/* ~~~ Current ~~~ */
.cvh--pagination-link[data-current="page"] {
	background-color: var(--accent);
	--cvh-color-text-dynamic: var(--cvh-color-text-light);
}


/* ================================================== */
/* 3. Loadmore */
/* -------------------------------------------------- */
/* #=#=#=#=#=# 2.1 Wrap #=#=#=#=#=# */
.cvh--post_loadmore-ctn {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	column-gap: var(--cvh-space-s);
}


/* #=#=#=#=#=# 2.2 Button #=#=#=#=#=# */
.cvh--loadmore-link {
	display: flex !important;
	justify-content: center;
	align-items: center;
	min-width: var(--cvh-col-width-25);
	width: max-content;
	padding: var(--cvh-space-xs) var(--cvh-space-s);
	/* min-height: calc(var(--text-m) * var(--cvh-line-height-s) + (2 * var(--cvh-space-xs))); */
}

	/* ~~~ Loading ~~~ */
[data-js-hook="loadmore"][data-state="loading"] {
	cursor: progress !important;
}