/*
 * Leather for the inner pages (results, definition, 404), the footer and the About window.
 *
 * assets/img/leather-tile.jpg (2150x1040) is main-page.jpg with the embossed title removed,
 * the large-scale lighting evened out, and the top and bottom edges blended so it repeats
 * down a long page without a visible join. It is drawn at 160% of the window height wide
 * (or the full width if wider), a finer grain than the home page image (215%). It only
 * repeats vertically, so it can't be drawn narrower than the page without a gap at the sides.
 *
 * The old red-leather.jpg backgrounds are still set inline in the templates; these rules
 * override them. To go back, remove the leather.css <link> from header.tpl.
 */

#Blog,
footer#Contact {
	background: #3a0d0f url('../img/leather-tile.jpg') center top repeat-y !important;
	background-size: max(100%, 160vh) auto !important;
}

/* ------------------------------------------------ popups (About window, lexicon entry) */

/* Open below the header and the results heading, over the cream content, so the leather
   popup header stands out against paper rather than leather. */
#aboutmodal .modal-dialog,
#lexmodal .modal-dialog {
	margin-top: 90px;
}
@media (min-width: 576px) {
	#aboutmodal .modal-dialog,
	#lexmodal .modal-dialog {
		margin-top: 170px;
	}
}

/* Blur and darken the page behind an open popup. Opacity stays 1 so the blur is not faded out;
   the darkening comes from the background colour instead. */
.modal-backdrop.show {
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* Headers of the About window and the lexicon popup, at the same scale as the page leather */
#aboutmodal .modal-header,
#lexmodal .modal-header {
	background: #3a0d0f url('../img/leather-tile.jpg') center center no-repeat !important;
	background-size: max(100%, 160vh) auto !important;
}
