/* for layout of 3 4 books side by side (site-independent) */

.book-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
}

/* sized for 3 figures per row on normal screens */
.book-row figure {
	flex: 1 1 210px;   /* grow, shrink, minimum width before wrapping */
	max-width: 300px;  /* keeps them from getting huge on wide screens */
	margin: 0;         /* removes default figure margins (gap handles spacing) */
	text-align: center;
}

.book-row img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}	


/* sized for 4 figures per row on normal screens */
.book-row4 {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
}

.book-row4 figure {
	flex: 1 1 180px;   /* grow, shrink, minimum width before wrapping */
	max-width: 240px;  /* keeps them from getting huge on wide screens */
	margin: 0;         /* removes default figure margins (gap handles spacing) */
	text-align: center;
}	

.book-row4 img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}	

/* sized for 2 figures per row on normal screens */
.book-row2 {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
}

.book-row2 figure {
	flex: 1 1 600px;   /* grow, shrink, minimum width before wrapping */
	max-width: 800px;  /* keeps them from getting huge on wide screens */
	margin: 0;         /* removes default figure margins (gap handles spacing) */
	text-align: center;
}	

.book-row2 img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}	

