/*
 * Additions for the static rebuild. ui.css is the original stylesheet (see REBUILD-NOTES.md);
 * everything here replaces inline style="" attributes and jQuery-driven inline styles so the
 * site can run under a strict Content-Security-Policy (style-src 'self').
 */

/* ------ Replaces inline style="" attributes ------ */

.author-photo {
	padding: 35px 0 0 0;
	width: 190px;
}

.author-bio {
	width: 675px;
}

.news-date-col {
	width: 100px;
}

#gallery.photos-gallery {
	height: auto;
	padding: 30px 0 0 0;
}

.page p.story-note {
	border-bottom: 1px solid #fff;
	font-weight: bold;
	padding: 30px 0;
}

/* Home video: was width="100%" height="100%" attributes */
#video video {
	height: 100%;
	width: 100%;
}

/* Width/height attributes were added to gallery thumbnails; ui.css sets only the width. */
#gallery a img {
	height: auto;
}

/* ------ State classes toggled by js/site.js (were jQuery .show()/.hide()/.css()) ------ */

#nav .subnav.is-open {
	display: block;
}

.media.is-open {
	display: block;
}

#wrapper_newsroom .press_dl.is-open {
	display: block;
}

#wrapper_news table.is-open {
	display: table;
}

/* ------ Praise: quote rotator (was jquery.cycle) ------ */

#quotes.cycle {
	position: relative;
}

#quotes.cycle .cycle-slide {
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transition: opacity 0.6s ease;
	visibility: hidden;
}

#quotes.cycle .cycle-slide.is-current {
	opacity: 1;
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	#quotes.cycle .cycle-slide {
		transition: none;
	}
}

/* ------ Photos: lightbox (was fancybox 1.3.4) ------ */

body.lb-open {
	overflow: hidden;
}

.lb-overlay {
	align-items: center;
	background: rgba(102, 102, 102, 0.3);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 1100;
}

.lb-overlay[hidden] {
	display: none;
}

.lb-frame {
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	line-height: 0;
	position: relative;
}

.lb-img {
	display: block;
	max-height: 88vh;
	max-width: 92vw;
}

.lb-title {
	background: rgba(0, 0, 0, 0.75);
	border-radius: 10px;
	bottom: 12px;
	color: #fff;
	font-size: 14px;
	left: 50%;
	line-height: 18px;
	max-width: 80%;
	padding: 8px 14px;
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
	width: max-content;
}

.lb-title[hidden] {
	display: none;
}

.lb-close {
	background: #000;
	border: 2px solid #fff;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	font: 22px/24px Arial, Helvetica, sans-serif;
	height: 30px;
	padding: 0;
	position: absolute;
	right: -15px;
	top: -15px;
	width: 30px;
}

.lb-nav {
	background: rgba(0, 0, 0, 0.55);
	border: none;
	color: #fff;
	cursor: pointer;
	font: 40px/40px Arial, Helvetica, sans-serif;
	height: 56px;
	margin-top: -28px;
	opacity: 0;
	padding: 0 8px 4px;
	position: absolute;
	top: 50%;
	transition: opacity 0.2s;
}

.lb-nav[hidden] {
	display: none;
}

.lb-frame:hover .lb-nav,
.lb-nav:focus {
	opacity: 1;
}

.lb-prev {
	left: 0;
}

.lb-next {
	right: 0;
}
