[data-archive="default"] .entry-card {
	text-align: var(--text-horizontal-alignment);

	.entry-title {
		--theme-link-initial-color: initial;
	}

	.entry-divider {
		border-bottom: var(--entry-divider);
	}
}

// elements spacing
[data-archive="default"] .card-content {
	display: flex;
	flex-direction: column;

	> * {
		margin-block: 0 var(--card-element-spacing, 20px);

		&:last-child {
			margin-bottom: 0;
		}
	}
}

// Boxed & Cover card
[data-cards="boxed"],
[data-cards="cover"] {

	.entry-card {
		padding: var(--card-inner-spacing, 30px);
		border: var(--card-border, none);
		box-shadow: var(--theme-box-shadow);
		border-radius: var(--theme-border-radius);
	}
}

// Cover card
[data-archive="default"][data-cards="cover"] .entry-card {
	position: relative;
	min-height: var(--card-min-height, 400px);
	justify-content: var(--vertical-alignment);

	.ct-media-container {
		position: absolute;
		isolation: isolate;
        inset: 0;
		margin: 0;

		img {
			height: 100%;
		}
	}

	> *:not(.ct-media-container) {
		position: relative;
		z-index: 1;
	}
}

// Simple card
[data-archive="default"][data-cards="simple"] {

	> .entry-card {
		padding-bottom: var(--grid-columns-gap, 30px);
		border-bottom: var(--card-border, none);
	}
}


// align to bottom speciffic elements
.entries:not([data-cards="cover"]) {

	:is(.entry-button, .entry-meta, .ct-media-container) {

		&:last-child:not(:only-child) {

			--card-element-margin-start: auto;
			margin-top: var(--card-element-margin-start);
		}
	}
}
