/*
 * Mary H. Weir Public Library — New Arrivals cover rows ([mhw_new_arrivals])
 */
.mhw-shelf { margin: 0 0 32px; }
.mhw-shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--wp--preset--color--slag-gray); }
.wp-block-post-content .mhw-shelf-head h2 { margin: 0; padding: 0; border: 0; }
.mhw-shelf-arrows { display: flex; gap: 6px; flex: none; }
.mhw-shelf-arrows[hidden] { display: none; }
.mhw-shelf-arrow {
	width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--wp--preset--color--slag-gray); background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--river-navy); font-size: 26px; line-height: 1; padding: 0 0 3px;
}
.mhw-shelf-arrow:hover { border-color: var(--wp--preset--color--river-navy); }
.mhw-shelf-arrow:disabled { opacity: .35; cursor: default; }
.mhw-shelf-arrow:focus-visible { outline: 3px solid rgba(24, 48, 89, 0.3); outline-offset: 2px; }

.wp-block-post-content ul.mhw-shelf-row, ul.mhw-shelf-row {
	list-style: none; margin: 0; padding: 4px 2px 14px;
	display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 18px;
	overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
	scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { ul.mhw-shelf-row { scroll-behavior: auto; } }
.wp-block-post-content .mhw-shelf-item, .mhw-shelf-item { position: relative; margin: 0; scroll-snap-align: start; } /* keeps hidden screen-reader text inside the scrolling row */
.wp-block-post-content .mhw-shelf-item a, .mhw-shelf-item a { display: block; text-decoration: none; color: var(--wp--preset--color--text-dark); }
.mhw-shelf-item a:focus-visible { outline: 3px solid rgba(24, 48, 89, 0.35); outline-offset: 3px; border-radius: 3px; }
.mhw-shelf-cover {
	position: relative; display: block; width: 132px; height: 198px; overflow: hidden;
	background: var(--wp--preset--color--vellum-cream); border-radius: 3px;
	box-shadow: 0 2px 8px rgba(24, 48, 89, 0.15);
}
.mhw-shelf-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mhw-shelf-fallback {
	display: none; position: absolute; inset: 0; padding: 14px 10px;
	align-items: center; justify-content: center; text-align: center;
	background: var(--wp--preset--color--river-navy); color: #fff;
	font-family: var(--wp--preset--font-family--heading); font-size: 15px; font-weight: 700; line-height: 1.3;
	border-top: 6px solid var(--wp--preset--color--burnished-amber);
}
.mhw-shelf-item.no-cover .mhw-shelf-fallback { display: flex; }
.mhw-shelf-item.no-cover img { visibility: hidden; }
.mhw-shelf-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	margin-top: 8px; font-size: 14px; line-height: 1.35; font-weight: 600;
}
.wp-block-post-content .mhw-shelf-item a:hover .mhw-shelf-title { color: var(--wp--preset--color--burnished-dark); text-decoration: underline; }
.mhw-shelf-item a:hover .mhw-shelf-cover { box-shadow: 0 6px 16px rgba(24, 48, 89, 0.25); }
@media (max-width: 600px) {
	ul.mhw-shelf-row { grid-auto-columns: 112px; gap: 14px; }
	.mhw-shelf-cover { width: 112px; height: 168px; }
}
