/***	Select Projects (inSTOCK segment) Style Sheet
		Created by EJFIIIWebDesign.com

		Loaded AFTER the site's Style.css on Select Projects pages only.
		Layout pieces use the site's own classes (.text-text, .text-media,
		.text-column, .media-column, .full-width, .polaroids, .button), so
		projects pick up each site's look. Only parts unique to this module
		are styled here, with rp- names, plus a few scoped overrides.		***/


/***	*******************************************************
		                 INDEX / CATEGORY / TAG
		*******************************************************   ***/

		.rp-intro 				{ padding-bottom: 0; }
		.rp-theme 				{ font-style: italic; font-size: 1.7em; color: #666666; margin: -10px 0 20px; text-align: left; }
		.rp-intro .rp-theme,
		.rp-intro-text 			{ padding-left: 8%; padding-right: 8%; }

		.rp-filter 				{ display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin: 10px auto 30px; font-size: 1.4em; text-transform: uppercase; letter-spacing: 0.1em; }
		.rp-filter a 			{ padding: 6px 0; border-bottom: 2px solid transparent; }
		.rp-filter a:hover,
		.rp-filter a[aria-current] 	{ color: #C14F22; border-bottom-color: #C14F22; }
		.rp-back 				{ font-size: 1.4em; margin: 0 8% 20px; text-align: left; }
		.rp-empty 				{ text-align: center; }

	/*	Project cards: 4 across on wide screens, then 3, then 2 */
		.rp-cards .polaroids li,
		.rp-related .polaroids li 	{ width: 21%; margin: 2%; }
		.rp-cards .polaroids img,
		.rp-related .polaroids img 	{ display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
		.rp-cards .polaroids span,
		.rp-related .polaroids span { display: block; padding: 12px 6px; line-height: 1.3; }
		.rp-noimg 				{ display: block; aspect-ratio: 3 / 2; background: #dddddd; }


/***	*******************************************************
		                      PROJECT PAGE
		*******************************************************   ***/

		.rp-project article,
		.rp-related,
		.rp-pager,
		.rp-preview-note 		{ max-width: 1380px; margin-left: auto; margin-right: auto; }
		.rp-project article 	{ display: block; }

		.rp-preview-note 		{ background: #fff4d6; border: 1px solid #e9cf86; color: #5c4400; padding: 10px 16px; font-size: 1.4em; text-align: center; margin-bottom: 20px; }

	/*	Banner: shown whole, never cropped by the browser */
		.rp-hero img 			{ display: block; width: 100%; height: auto; }

	/*	Title block */
		.rp-title 				{ text-align: center; width: 76%; margin: 36px auto 40px; }
		.rp-title h1 			{ font-size: 4.0em; padding-bottom: 10px; }
		.rp-title h2 			{ font-size: 2.3em; font-weight: 300; padding-bottom: 14px; }
		.rp-title .rp-theme 	{ text-align: center; margin: 0 0 16px; }
		.rp-facts 				{ font-size: 1.3em; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; color: #595959; }

	/*	Split hero (banner photo under 1380 px wide) */
		.rp-hero-split 			{ margin: 20px 0 40px; }
		.rp-hero-split .media-column img 	{ display: block; width: 100%; height: auto; }
		.rp-hero-split .rp-title 			{ text-align: left; width: 40%; margin: 0 4%; }
		.rp-hero-split .rp-title .rp-theme,
		.rp-hero-split .rp-facts 			{ text-align: left; }

	/*	Rows: the site's two-column widths (its 1700 px layout) at every width above 980;
		vertical spacing comes from the row, not the columns */
		.rp-row 				{ margin: 0 auto 36px; }
		.rp-row .text-column,
		.rp-row .media-column,
		.rp-hero-split .media-column 	{ width: 40%; margin: 0 4%; }
		.rp-row.text-text 		{ align-items: flex-start; }
		.rp-heading-spacer 		{ visibility: hidden; }
		.rp-row h2 				{ font-size: 2.6em; }
		.rp-row .button 		{ margin-top: 30px; }

		.rp-text .rp-narrow 	{ width: 56%; margin: 0 auto; }

		a.inline-link 			{ font-weight: 600; color: #333333; }
		a.inline-link:hover 	{ text-decoration: underline; color: #000000; }

	/*	Image beside text: framed like the site's thumbnails, whole image, height capped */
		.rp-row .media-column 	{ text-align: center; }
		.rp-framed 				{ display: inline-block; width: auto; max-width: 100%; height: auto; max-height: 640px; border: 5px solid #ffffff; box-shadow: 5px 5px 10px 0 rgba(0,0,0,0.5); }

	/*	Full-width image: white, unframed, very tall images trimmed by the Top / Center / Bottom setting */
		.full-width.rp-plain 	{ background: none; padding: 0; width: 94%; }
		.rp-wide img 			{ display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover; }
		.rp-focus-top 			{ object-position: center top; }
		.rp-focus-center 		{ object-position: center center; }
		.rp-focus-bottom 		{ object-position: center bottom; }

	/*	Gallery: the site's grey band, uniform thumbnails, short last row centered */
		.rp-gallery ul 			{ display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
		.rp-gallery li 			{ margin: 0; font-size: 1em; }
		.rp-gallery img 		{ display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 5px solid #ffffff; box-shadow: 5px 5px 10px 0 rgba(0,0,0,0.5); box-sizing: border-box; }
		.rp-cols-1 li 			{ width: 60%; }
		.rp-cols-2 li 			{ width: calc((100% - 28px) / 2); }
		.rp-cols-3 li 			{ width: calc((100% - 56px) / 3); }
		.rp-cols-4 li 			{ width: calc((100% - 84px) / 4); }

	/*	Video: the dark frame, click to play */
		.full-width.frame-video { width: 86%; padding: 4% 7%; background-color: #444444; }
		.rp-video 				{ position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; background: #1f1f1f; }
		.rp-video-play 			{ position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #1f1f1f; cursor: pointer; }
		.rp-video-play img 		{ width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; transition: opacity 0.3s; }
		.rp-video-play svg 		{ position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); }
		.rp-video-play circle 	{ fill: rgba(240,240,240,0.85); transition: fill 0.3s; }
		.rp-video-play path 	{ fill: #1f1f1f; }
		.rp-video-play:hover img 		{ opacity: 1; }
		.rp-video-play:hover circle,
		.rp-video-play:focus-visible circle 	{ fill: #ffffff; }
		.rp-video-play:focus-visible 	{ outline: 3px solid #C14F22; outline-offset: 3px; }
		.rp-video iframe 		{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

	/*	Pull quote */
		.rp-quote blockquote 	{ width: 56%; margin: 0 auto; text-align: center; }
		.rp-quote p:first-child 	{ font-family: Roboto, 'Century Gothic', sans-serif; font-size: 2.6em; line-height: 1.5; color: #4F4E4D; text-align: center; }
		.rp-quote p:first-child::before 	{ content: "\201C"; color: #C14F22; }
		.rp-quote p:first-child::after 	{ content: "\201D"; color: #C14F22; }
		.rp-quote .rp-quote-by 	{ font-size: 1.3em; text-align: center; margin-top: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #595959; }

	/*	Section heading: extra space above, to start a new part of the project */
		.rp-row.rp-heading,
		.rp-row.rp-has-heading 	{ margin-top: 70px; }	/* Section Heading rows, and Text rows that have a heading */
		.rp-heading h2 			{ font-size: 3.0em; margin: 0 4%; padding-bottom: 0; }
		.rp-align-left h2 		{ text-align: left; }
		.rp-align-center h2 	{ text-align: center; }
		.rp-align-right h2 		{ text-align: right; }

	/*	Call to action (several in a row sit side by side) */
		.rp-cta .button 		{ margin: 0 auto; width: 320px; max-width: 100%; box-sizing: border-box; padding-left: 16px; padding-right: 16px; }	/* every CTA button the same width */
		.rp-cta-group 			{ display: flex; justify-content: center; flex-wrap: wrap; gap: 24px 60px; }
		.rp-cta-group .button 	{ margin: 0; }

	/*	Project footer: credits and tags */
		.rp-project-foot 		{ text-align: center; margin: 0 auto 40px; }
		.rp-credits 			{ font-size: 1.4em; color: #595959; text-align: center; }
		.rp-tags 				{ display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 1.3em; text-transform: uppercase; letter-spacing: 0.08em; }
		.rp-tags a 				{ border: 1px solid #bbbbbb; padding: 6px 14px; color: #444444; transition: all 0.5s; }
		.rp-tags a:hover 		{ border-color: #C14F22; color: #C14F22; }

	/*	Pager (previous | all | next), then Related Projects. The pager's rules above and below
		separate the project's last row (often a gallery) from the Related Projects cards. */
		.rp-pager 				{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: 1.3em; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 50px; margin-bottom: 60px; padding: 24px 3%; border-top: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; }
		.rp-related 			{ margin-bottom: 60px; }
		.rp-related h2 			{ text-align: center; font-size: 3.0em; }
		.rp-related .polaroids li 	{ width: 26%; }
		.rp-pager a:hover 		{ color: #C14F22; }
		.rp-pager .rp-next 		{ text-align: right; }


/***	*******************************************************
		                      BREAKPOINTS
		    (match the site: 1700 / 1380 / 980 / 580)
		*******************************************************   ***/

		@media only screen and (max-width: 1700px) {
			.rp-cards .polaroids li 	{ width: 21%; margin: 2%; }
			}

		@media only screen and (max-width: 1380px) {
			.rp-cards .polaroids li 	{ width: 29%; }
			.rp-cols-4 li 				{ width: calc((100% - 56px) / 3); }
			.rp-text .rp-narrow,
			.rp-quote blockquote 		{ width: 70%; }
			.rp-title 					{ width: 86%; }
			.rp-hero-split .rp-title 	{ width: 40%; text-align: center; }
			.rp-hero-split .rp-title .rp-theme,
			.rp-hero-split .rp-facts 	{ text-align: center; }
			}

		@media only screen and (max-width: 980px) {
			.rp-row 					{ margin-bottom: 22px; }
			.rp-row.rp-heading,
			.rp-row.rp-has-heading 		{ margin-top: 44px; }
			.rp-row .text-column 		{ width: 84%; margin: 0 0 0 8%; padding-bottom: 12px; }
			.rp-row .media-column,
			.rp-hero-split .media-column 	{ width: 84%; margin: 0 0 14px 8%; }
			.rp-title 					{ margin: 24px auto 26px; }
			.rp-hero-split 				{ margin: 10px 0 24px; }
			.rp-heading-spacer 			{ display: none; }
			.rp-cards .polaroids li,
			.rp-related .polaroids li 	{ width: 44%; margin: 3%; max-width: none; float: none; }
			.rp-cols-2 li, .rp-cols-3 li, .rp-cols-4 li 	{ width: calc((100% - 28px) / 2); }
			.rp-cols-1 li 				{ width: 90%; }
			.rp-gallery ul 				{ gap: 20px 28px; }
			.rp-text .rp-narrow,
			.rp-quote blockquote,
			.rp-hero-split .rp-title 	{ width: 88%; margin: 0 auto; }
			.rp-title h1 				{ font-size: 3.2em; }
			.rp-title h2 				{ font-size: 1.8em; font-weight: 100; }	/* lighter than the main heading on smaller screens */
			.rp-quote p:first-child 	{ font-size: 2.1em; }
			.rp-framed 					{ max-height: none; }
			.rp-wide img 				{ max-height: 520px; }
			.rp-pager 					{ display: flex; flex-wrap: wrap; justify-content: center; text-align: center; }
			.rp-pager .rp-all 			{ order: -1; width: 100%; }
			}

		@media only screen and (max-width: 580px) {
			.rp-gallery ul 				{ gap: 12px; }
			.rp-cols-2 li, .rp-cols-3 li, .rp-cols-4 li 	{ width: calc((100% - 12px) / 2); }
			.rp-gallery img 			{ border-width: 3px; }
			.rp-filter 					{ gap: 4px 16px; font-size: 1.3em; }
			.rp-title h1 				{ font-size: 3.2em; }
			.rp-title h2 				{ font-size: 1.9em; }
			.rp-row 					{ margin-bottom: 18px; }
			.full-width.frame-video 	{ width: 92%; padding: 4%; }
			}
