.zmv-view {
	--zmv-card-bg: #d9d9d9;
	--zmv-title-color: #ffffff;
	--zmv-edition-color: #33485c;
	--zmv-button-bg: #12aeb8;
	--zmv-button-bg-hover: #0f9aa3;
	--zmv-button-text-color: #ffffff;
	--zmv-card-radius: 30px;
	--zmv-button-radius: 14px;
	--zmv-card-border-width: 0px;
	--zmv-card-border-color: #d7e4ef;
	--zmv-card-border-style: solid;
	--zmv-card-shadow: 0 18px 34px 0 rgba(15, 23, 42, 0.18);
	--zmv-title-shadow: 0 2px 6px rgba(15, 23, 42, 0.28);
	--zmv-card-padding: clamp(0.85rem, 1.2vw, 1.15rem);
	--zmv-card-gap: clamp(0.45rem, 0.8vw, 0.7rem);
	--zmv-cover-width: clamp(7rem, 66%, 10rem);
	--zmv-card-width: clamp(10.5rem, 18vw, 13rem);
	--zmv-font-family: inherit;
	color: var(--zmv-edition-color);
	font-family: var(--zmv-font-family);
	max-width: 100%;
}

.zmv-grid {
	display: grid;
	gap: clamp(1rem, 1.8vw, 1.35rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), var(--zmv-card-width)));
	justify-content: start;
	justify-items: start;
	max-width: 86rem;
}

@media (min-width: 1500px) {
	.zmv-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 13rem));
	}
}

.zmv-card {
	align-items: center;
	background: var(--zmv-card-bg);
	border: var(--zmv-card-border-width) var(--zmv-card-border-style) var(--zmv-card-border-color);
	border-radius: var(--zmv-card-radius);
	box-shadow: var(--zmv-card-shadow);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: var(--zmv-card-padding);
	text-align: center;
	width: 100%;
}

.zmv-cover {
	aspect-ratio: 17 / 22;
	background: rgba(255, 255, 255, 0.22);
	border-radius: calc(var(--zmv-card-radius) * 0.45);
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
	flex: 0 0 auto;
	overflow: hidden;
	width: var(--zmv-cover-width);
}

.zmv-cover-image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.zmv-card-body {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--zmv-card-gap);
	padding-top: clamp(0.65rem, 1vw, 0.9rem);
	width: 100%;
}

.zmv-title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--zmv-title-color);
	display: -webkit-box;
	font-size: clamp(0.95rem, 1.05vw, 1.1rem);
	font-weight: 800;
	line-height: 1.18;
	margin: 0;
	max-width: 100%;
	min-height: 2.36em;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-align: center;
	text-shadow: var(--zmv-title-shadow);
}

.zmv-edition,
.zmv-empty {
	color: var(--zmv-edition-color);
	font-size: clamp(0.84rem, 0.9vw, 0.95rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-align: center;
}

.zmv-actions {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: center;
	padding-top: 0.15rem;
	width: 100%;
}

.zmv-button {
	align-items: center;
	background: var(--zmv-button-bg);
	border: 0;
	border-radius: var(--zmv-button-radius);
	color: var(--zmv-button-text-color);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: clamp(0.76rem, 0.82vw, 0.88rem);
	font-weight: 800;
	justify-content: center;
	line-height: 1.15;
	min-height: 2.25rem;
	min-width: 0;
	padding: 0.62rem 0.42rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
	white-space: nowrap;
}

.zmv-button:hover,
.zmv-button:focus-visible {
	background: var(--zmv-button-bg-hover);
	color: var(--zmv-button-text-color);
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 2px;
	transform: translateY(-1px);
}

.zmv-modal[hidden] {
	display: none;
}

.zmv-modal {
	inset: 0;
	position: fixed;
	z-index: 999999;
}

.zmv-modal-backdrop {
	background: rgba(15, 23, 42, 0.72);
	inset: 0;
	position: absolute;
}

.zmv-modal-dialog {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	height: min(92vh, 900px);
	left: 50%;
	max-width: 1100px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(94vw, 1100px);
}

.zmv-modal-header {
	align-items: center;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-between;
	padding: 0.85rem 1rem;
}

.zmv-modal-title {
	font-size: 1.1rem;
	margin: 0;
}

.zmv-modal-close {
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 1.8rem;
	height: 2.4rem;
	line-height: 1;
	width: 2.4rem;
}

.zmv-modal-body,
.zmv-pdf-object,
.zmv-pdf-frame {
	border: 0;
	flex: 1;
	height: 100%;
	width: 100%;
}

body.zmv-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.zmv-view {
		--zmv-card-width: clamp(9.5rem, 44vw, 11.5rem);
		--zmv-cover-width: clamp(6.5rem, 64%, 8.75rem);
	}

	.zmv-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), var(--zmv-card-width)));
	}
}

@media (max-width: 360px) {
	.zmv-actions {
		grid-template-columns: 1fr;
	}
}
