/*!
 * It's Time For Revival - responsive.css
 * Version: 1.0.1  (2026-11-10)
 * Replaces css/style.css for the static pages (style.css is left untouched for rollback).
 * Breakpoints: <= 820px tablet (single column), <= 600px phone (mobile menu), <= 420px small phone.
 * See CHANGELOG.md for history.
 */

:root {
	--red: #a62427;
	--red-dark: #8a1c1f;
	--text: #3c3c3c;
	--line: #dfdcdc;
	--panel: #fff6f6;
	--panel-line: #f9d4d4;
	--dark: #303030;
	--gutter: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 0;
	background: #000 url(../images/bg.jpg) no-repeat top center;
	color: var(--text);
	font: 16px/1.55 Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--red); }
p { margin: 0 0 1em; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: #fff; color: #000; padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; }

#Main { max-width: 950px; margin: 0 auto; }

/* ---------- Menu ---------- */
#MainMenu { padding: 5px 0 0; }
#MainMenu ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: flex-end;
}
#MainMenu li { margin: 0; }
#MainMenu a {
	display: block; color: #fff; text-decoration: none;
	padding: 2px 10px; margin-right: 2px; line-height: 20px;
}
#MainMenu a:hover, #MainMenu a:focus-visible, #MainMenu a.Active { background: var(--dark); }
#MainMenu a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.menu-toggle {
	display: none;
	width: 100%; margin: 0; padding: 12px 16px;
	background: var(--dark); color: #fff; border: 0; text-align: left;
	font: inherit; font-size: 17px; cursor: pointer;
	align-items: center; justify-content: space-between;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
	display: block; width: 22px; height: 2px; background: #fff; content: "";
	position: relative; transition: transform .2s, background .2s;
}
.menu-toggle .bars::before { position: absolute; top: -7px; }
.menu-toggle .bars::after  { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Header banner (three images scale proportionally) ---------- */
.site-header { display: flex; align-items: stretch; background: #000; }
.site-header a, .site-header > img { display: block; min-width: 0; }
.site-header img { display: block; width: 100%; height: auto; }
.hd-logo  { flex: 264 1 0; }
.hd-title { flex: 431 1 0; }
.hd-photo { flex: 250 1 0; }

.edge { display: block; width: 100%; height: auto; }

/* ---------- Page body ---------- */
#Content { background: #fff; padding: 0 var(--gutter) 1px; }
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 283px;
	gap: 0 11px;
	align-items: start;
}
.main-col { min-width: 0; }

/* Slideshow: keeps 623x259 ratio, fades between images (js/site.js) */
.Banner { margin: 0 0 8px; }
#slideshow {
	position: relative; overflow: hidden;
	aspect-ratio: 623 / 259;
	border: 5px solid #dadada; background: #fff;
}
#slideshow img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; opacity: 0; transition: opacity 1s ease;
}
#slideshow img.active { opacity: 1; z-index: 2; }

/* Section headings use the original dark strip artwork, stretched */
.Heading {
	margin: 0; padding: 9px 12px 10px; min-height: 39px;
	background: #3d3d3d url(../images/index_23.jpg) no-repeat center top;
	background-size: 100% 100%;
	color: #fff; font: normal 18px/1.3 "Trebuchet MS", Georgia, "Times New Roman", serif;
	text-transform: uppercase; overflow-wrap: anywhere;
}
.Heading1, .Head {
	margin: 0; padding: 8px 12px 9px; min-height: 40px;
	color: #fff; font: normal 18px/1.3 "Trebuchet MS", Georgia, "Times New Roman", serif;
}
.Heading1 { background: #7d2326 url(../images/index_36.jpg) no-repeat center top; background-size: 100% 100%; }
.Head     { background: var(--red-dark) url(../images/index_11.jpg) no-repeat center top; background-size: 100% 100%; }

.Content {
	padding: 14px 14px 4px;
	border: 1px solid var(--line); border-top: 0;
	margin-bottom: 8px;
	overflow-wrap: break-word;
}
.Content p.indent { text-indent: 1.5em; }
.Content p.center, .center { text-align: center; }
.Content h2 {
	margin: 1.2em 0 .5em; font: bold 18px/1.3 "Trebuchet MS", Georgia, serif; color: var(--red);
}
.Content h2:first-child { margin-top: 0; }
.Content ul, .Content ol { margin: 0 0 1em; padding-left: 1.6em; }
.Content li { margin-bottom: .35em; }
.Content img { max-width: 100%; height: auto; }
.Content iframe, .Content table { max-width: 100%; }
.Content input[type="image"] { max-width: 100%; height: auto; }

/* Gallery page */
.photo-grid { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.photo-grid a:hover img, .photo-grid a:focus img { border-color: #900; }
@media (max-width: 600px) { .photo-grid { grid-template-columns: minmax(0, 1fr); } }

/* Home / donate extras: prayer box + featured article */
.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.MediaCenter {
	min-width: 0;
	background: #666 url(../images/index_34.jpg) repeat-x top;
	border: 1px solid #666; padding: 14px 14px; color: #fff; line-height: 1.7;
}
.MediaCenter a { color: #fff; font-weight: bold; overflow-wrap: anywhere; }
.MediaCenter a:hover { text-decoration: none; }
.ArticleDiv { min-width: 0; }
.Article {
	padding: 8px 14px 4px; border: 1px solid var(--line); border-top: 0;
}
.Article a { color: var(--red); font-weight: bold; text-decoration: none; }
.Article a:hover { text-decoration: underline; }

/* Links page */
.linkgroup { margin: 0 0 1.1em; overflow-wrap: anywhere; }

/* Donate */
.donate-box {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	max-width: 420px; padding: 12px 16px; border: 1px solid var(--line); background: #fafafa;
}
.donate-box form { margin: 0; }
.donate-box p { margin: 0; }

/* Media sales: product cards */
.product {
	display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 6px 18px;
	padding: 14px 0; border-bottom: 1px solid var(--line);
}
.product:last-of-type { border-bottom: 0; }
.product img { grid-column: 1; grid-row: 1; width: 100%; height: auto; align-self: start; }
.product-body { grid-column: 2; grid-row: 1; min-width: 0; }
.product.no-img { grid-template-columns: 1fr; }
.product.no-img .product-body { grid-column: 1; }
.Content .product h2 { margin: 0 0 .4em; font-size: 19px; }
.product .buy { margin: 0; }
.product .buy a {
	display: inline-block; margin-top: .35em; padding: 9px 16px;
	background: var(--red); color: #fff; font-weight: bold; text-decoration: none; border-radius: 4px;
}
.product .buy a:hover, .product .buy a:focus-visible { background: var(--red-dark); }

/* ---------- Sidebar ---------- */
.RightBar { min-width: 0; }
.RightContent {
	padding: 12px; margin-bottom: 8px;
	background: var(--panel);
	border: 1px solid var(--panel-line); border-top: 0;
}
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.SideLinks { list-style: none; margin: 0; padding: 0; }
.SideLinks li { margin: 0; padding: 0; }
.SideLinks a {
	display: block; color: var(--text); text-decoration: none;
	padding: 9px 0 9px 15px; line-height: 1.4;
	border-bottom: 1px dotted #f7afaf;
	background: url(../images/icon.gif) no-repeat left center;
}
.SideLinks a:hover, .SideLinks a:focus-visible { background-color: #fbe2e2; }
.Image { text-align: center; margin: 0; padding: 0; }
.Image img { padding: 2px; background: #fff; border: 1px solid #cb6d6f; }
.Seprate { background: url(../images/dot.gif) repeat-x center; height: 10px; }
.RightContent .gallery-box { margin-bottom: 0; }

/* ---------- Footer ---------- */
#Footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
	padding: 14px 12px 24px; color: #b9b8b8; font-size: 13px; line-height: 1.6;
}
#Footer a { color: #b9b8b8; text-decoration: none; }
#Footer a:hover, #Footer a:focus-visible { text-decoration: underline; }
.FooterLinks a { display: inline-block; padding: 6px 5px; }

/* Desktop: copyright left, links right, one line */
@media (min-width: 900px) {
	#Footer { flex-wrap: nowrap; align-items: center; gap: 0 16px; font-size: 12px; }
	#Footer .Copyright { white-space: nowrap; }
	#Footer .FooterLinks { white-space: nowrap; }
	.FooterLinks a { padding: 6px 3px; }
}

/* ---------- Tablet: one column, sidebar widgets flow in a row ---------- */
@media (max-width: 820px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.RightBar {
		display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 0 12px; align-items: start; margin-top: 8px;
	}
	#Footer { justify-content: center; text-align: center; }
}

/* ---------- Phone: collapsible menu ---------- */
@media (max-width: 600px) {
	.extras { grid-template-columns: minmax(0, 1fr); }
	body { font-size: 16px; }
	#MainMenu { padding-top: 0; }
	.menu-toggle { display: flex; }
	#MainMenu ul { display: block; }
	/* Menu is only collapsed when JS is available (html.js); otherwise it stays open */
	.js #MainMenu ul { display: none; }
	.js #MainMenu.open ul { display: block; }
	#MainMenu { background: #1b1b1b; }
	#MainMenu li { border-top: 1px solid #333; }
	#MainMenu a { padding: 13px 16px; margin: 0; line-height: 1.3; font-size: 17px; }
	.Heading { font-size: 16px; padding: 8px 10px 9px; }
	.Content { padding: 12px 12px 2px; }
	.product { grid-template-columns: 1fr; }
	.product img { grid-column: 1; grid-row: 1; max-width: 341px; }
	.product-body { grid-column: 1; grid-row: 2; }
	.RightBar { grid-template-columns: 1fr; }
	#Content { padding-left: 8px; padding-right: 8px; }
}

/* ---------- Small phone ---------- */
@media (max-width: 420px) {
	.Heading { font-size: 15px; }
	.donate-box { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	#slideshow img { transition: none; }
	.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { transition: none; }
}

@media print {
	body { background: #fff; }
	#MainMenu, .RightBar, #slideshow, .site-header, .edge, #Footer .FooterLinks, .skip-link { display: none; }
	.layout { display: block; }
	#Content { padding: 0; }
}
