/* OMI Books - front-end styles */
.omi-books {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	margin: 2rem 0;
}
@media (min-width: 640px) {
	.omi-books--cols-2,
	.omi-books--cols-3,
	.omi-books--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 960px) {
	.omi-books--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.omi-books--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.omi-book {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.omi-book:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.omi-book__cover {
	background: #f3f3f3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}
.omi-book__cover img {
	max-height: 320px;
	width: auto;
	height: auto;
	max-width: 100%;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	border-radius: 4px;
}
.omi-book__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.25rem 1.25rem 1.5rem;
}
.omi-book__title {
	margin: 0 0 0.25rem;
	font-size: 1.15rem;
	line-height: 1.3;
}
.omi-book__author {
	margin: 0 0 0.75rem;
	opacity: 0.75;
	font-size: 0.95rem;
}
.omi-book__blurb {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	flex: 1 1 auto;
}
.omi-book__meta {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}
.omi-book__price {
	font-weight: 700;
	font-size: 1.1rem;
}
.omi-book__format {
	font-size: 0.85rem;
	opacity: 0.7;
}
.omi-book__button {
	display: inline-block;
	align-self: flex-start;
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	background: #ff9900;
	color: #111 !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.15s ease;
}
.omi-book__button:hover,
.omi-book__button:focus {
	background: #e68a00;
}
.omi-book__single {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.omi-books-empty {
	opacity: 0.7;
	font-style: italic;
}

/* Minimal mode (show="cover,button"): centered cover and button, no text. */
.omi-books--minimal .omi-book {
	background: transparent;
	border: 0;
	box-shadow: none;
}
.omi-books--minimal .omi-book:hover {
	transform: none;
	box-shadow: none;
}
.omi-books--minimal .omi-book__cover {
	background: transparent;
	padding: 0 0 1rem;
}
.omi-books--minimal .omi-book__cover img {
	max-height: 380px;
	transition: transform 0.15s ease;
}
.omi-books--minimal .omi-book:hover .omi-book__cover img {
	transform: translateY(-4px);
}
.omi-books--minimal .omi-book__body {
	align-items: center;
	padding: 0 0 1rem;
}
.omi-books--minimal .omi-book__button {
	align-self: center;
}
