/**
 * Books page — tabbed cover grid.
 * Template: page-templates/page-books.php
 */

.apoh-books {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 8px;
	font-family: inherit;
}

.apoh-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 0 0 1.8em;
}

.apoh-tab {
	cursor: pointer;
	border: 1px solid #cbd5d6;
	background: #fff;
	color: #164e56;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	transition: all .15s;
}

.apoh-tab:hover {
	border-color: #1f6f78;
}

.apoh-tab.active {
	background: #1f6f78;
	border-color: #1f6f78;
	color: #fff;
}

.apoh-panel {
	margin: 0 0 3.6em;
}

.apoh-panel h2 {
	margin: 1.4em 0 .9em;
	font-size: 1.55rem;
	border-bottom: 2px solid #1f6f78;
	padding-bottom: .3em;
	color: #164e56;
}

.apoh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 26px;
}

.apoh-book {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #222;
	transition: transform .15s ease;
}

.apoh-book:hover {
	transform: translateY(-4px);
}

.apoh-book img {
	height: 210px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.apoh-book .t {
	margin-top: .7em;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.3;
}

.apoh-book:hover .t {
	color: #1f6f78;
	text-decoration: underline;
}
