:root {
	--main_blue: #3867d6;
	--swan_white: #f7f1e3;
	--elecromagentic: #2f3640;
	--section_odd_blue: #40739e;
	--section_even_blue: #dcdde1;
	--top_banner_height: 80px;
	--footer_height: 250px;
	--purple_golden: linear-gradient(to right, #3e2a57, #a9815d, #b78152, #3e2a57);
	--catholic_green: linear-gradient(135deg, #2F4F4F, #708090);
	--golden: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
}

* {
	font-family: Nunito;
}

html,
body {
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px;
	background: var(--swan_white);
	overflow-x: hidden;
	overflow-y: auto;
}

button {
	outline: 0;
	border: none;
	background: transparent;
	color: black;
	padding: 5px !important;
	cursor: pointer;
	font-size: 19px;
	display: flex;
    align-items: center;
    justify-content: center;
}

/* Apply only to common fill-text inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
  width: 90%;
  height: 40px;
  border: none;
  border-radius: 3px;
  outline: 0;
  padding-left: 5px;
}


iframe {
	border-radius: 10px;
	border: 2px solid var(--elecromagentic) !important;
	margin-right: 80px;
	width: 500px;
}

#top_banner {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100vw;
	height: var(--top_banner_height);
	color: var(--swan_white);
	background: var(--catholic_green);
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	box-shadow: 2px 2px 10px black;
	z-index: 3;
}

[id^=banner_item_] {
	font-size: 18px;
}

[id^=banner_item_]:hover {
	transform: scale(1.1);
	transition: 0.4s;
	cursor: pointer;
}

#download_printable_pdf_button {
	position: fixed;
	top: 100px;
	left: 30px;
	box-shadow: 2px 2px 10px black;
	border-radius: 6px;
	cursor: pointer;
	font-size: 20px;
    width: 130px;
}


#top_banner .nav-item {
	position: relative;
	cursor: pointer;
	user-select: none;
}

#top_banner .nav-label {
	margin: 0;
}

#top_banner .caret {
	margin-left: 6px;
	font-size: .8em;
	opacity: .7;
}

.wrap h1 {
	max-width: 400px !important;
}

#top_banner .dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 220px;
	padding: 6px 0;
	background: rgba(0, 0, 0, .85);
	backdrop-filter: saturate(120%) blur(6px);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

#top_banner .dropdown a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 10px 14px;
	white-space: nowrap;
}

#top_banner .dropdown a:hover {
	background: rgba(255, 255, 255, .08);
}

#top_banner .nav-item.open .dropdown {
	display: block;
}

/* Hover open on desktop */
@media (hover:hover) {
	#top_banner .nav-item:hover .dropdown {
		display: block;
	}
}

#see_helpful_links_popup {
	width: auto; 
	height: auto;
	background: var(--catholic_green);
	box-shadow: 2px 2px 10px black;
	position: fixed;
	top: 100px;
	right: 50px;
	z-index: 999;
	padding: 10px;
	border: 1px solid var(--swan_white);
	font-size: 20px;
	text-align: center;
	color: var(--swan_white);
	border-radius: 5px;
}

#footer_title {
	text-align: center;
	background: #385051;
	color: #a6e9ff;
	font-size: 20px;
	box-shadow: 2px 2px 10px black;
	height: 40px;
	display: flex;
    align-items: center;
	justify-content: center;
}

#footer {
	width: 100vw;
	height: var(--footer_height);
	background: var(--catholic_green);
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

#footer_wrapper {
	display: grid;
	grid-template-rows: 1fr 1fr;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 0px;
	width: 100%;
	height: 100%;
}

[id^=footer_item_] {
	border: 0px solid black;
	display: flex;
	align-items: center;
	justify-content: center;
  font-size: 17px;
}


[id^=footer_item_]:hover {
  transform: scale(1.1);
  transition: 0.4s;
  color: #fffdc2;
  cursor: pointer;
}

.logo {
	width: 200px;
	cursor: pointer;
}

.side_panel {
	position: absolute;
	top: var(--top_banner_height);
	left: 0;
	bottom: 0;
	width: 200px;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	flex-direction: column;
	color: white;
	border: none;
	z-index: 10;
}

.side_panel_items {
	width: 100%;
	height: 100%;
	background: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid grey;
	font-size: 1em;
}

.side_panel_items:hover {
	background: #008E9C;
	cursor: pointer;
}

#edit_content_modal, #subscribe_now_modal, #bulk_email_modal, #show_all_forms_modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 200px;
	box-shadow: 2px 2px 10px black;
	background: var(--swan_white);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: white;
	border: 1px solid white;
	border-radius: 5px;
	z-index: 10;
}

#close_all_forms {
	position: absolute;
	top: 0;
	left: 0;
	margin: 10px;
	color: var(--swan_white);
	font-size: 20px;
	cursor: pointer;
}

#subscribe_now_modal, #bulk_email_modal {
	background: var(--elecromagentic);
	height: 270px;
	z-index: 99999;
}

#subscribe_now_input_title {
	font-size: 20px;
}

#subscribe_now_input_name, #subscribe_now_input_email, #bulk_email_modal_bulletin_title {
	height: 50px;
    border: none;
    outline: 0;
    border-radius: 5px;
    font-size: 18px;
    padding-left: 5px;
    width: 90%;
	min-height: 40px;
}

#bulk_email_modal_bulletin_textarea {
	width: 90%;
    height: 200px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 18px;
    resize: none;
    padding: 10px;
}

#bulk_email_modal {
	width: 600px;
    height: 400px;
}

#subscribe_now_input_email {
	margin-top: 20px;
}

#subscribe_now_button, #bulk_email_send_email_button, #see_all_forms_button {
	background: var(--swan_white);
    margin-top: 20px;
    border-radius: 3px;
    margin-bottom: 20px;
}

#edit_content_modal_title {
	position: absolute;
	top: 0;
	text-align: center;
	color: black;
	font-size: 19px;
}

#hold_buttons {
	display: flex;
	flex-direction: row;
	border: 0px solid black;
	position: absolute;
	top: 0;
	width: 80%;
	margin-top: 8px;
	align-items: center;
	justify-content: space-evenly;
}

#replace_button,
#add_button {
	height: 40px;
	font-size: 17px;
	cursor: pointer;
	color: black;
	background: #d1ccc0;
}

#replace_button {
	outline: 4px solid #34ace0;
}

#close_edit_content_modal {
	position: absolute;
	top: 0;
	right: 0;
	margin: 10px;
	font-size: 20px;
	cursor: pointer;
	color: black;
}

#save_edit_content_button {
	position: absolute;
	bottom: 0;
	margin-bottom: 20px;
	cursor: pointer;
	background: #218c74;
	color: white;
	font-size: 19px;
}

.slide_in_section {
	display: block;
	opacity: 0;
	transform: translateY(40px);
	transition: all 0.6s ease-out;
	will-change: transform, opacity;
	padding: 30px 20px;
	background: transparent;
	border-radius: 8px;
	max-height: none;
}

#section_3 .slide_in_section {
	    margin-top: -80px;
}

.slide_in_blocks {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 5px;
	padding: 10px;
	position: relative;
}

.slide_in_blocks.livestream_layout {
	align-items: start;
}

.slide_in_blocks .white_blocks {
	background: var(--swan_white);
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	min-height: 150px;
	overflow-wrap: anywhere;
	position: relative;
}

.slide_in_blocks .white_blocks.full_width_block,
.slide_in_blocks .green_blocks.full_width_block {
	grid-column: 1 / -1;
	max-width: 100%;
	width: 100%;
}

.white_blocks .block_icons {
	width: 40px;
	height: 40px;
	object-fit: contain;
}


.white_blocks h1 {
	font-size: 22px;
	margin: 6px 0 2px;
}

.white_blocks p {
	margin: 0;
	line-height: 1.3;
	font-size: 18px;
}

.white_blocks:hover {
	transform: scale(1.06);
	transition: transform 0.25s, box-shadow 0.25s;
	will-change: transform;
	box-shadow: 2px 2px 10px black;
}


.slide_in_blocks .green_blocks {
	background: var(--catholic_green);
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	min-height: 150px;
	overflow-wrap: anywhere;
	position: relative;
	color: var(--swan_white);
}

.green_blocks .block_icons {
	filter: invert(0);
}

.green_blocks .block_icons {
	width: 40px;
	height: 40px;
	object-fit: contain;
}


.green_blocks h1 {
	font-size: 22px;
	margin: 6px 0 2px;
}

.green_blocks p {
	margin: 0;
	line-height: 1.3;
	font-size: 18px;
}

.green_blocks:hover {
	transform: scale(1.06);
	transition: transform 0.25s, box-shadow 0.25s;
	will-change: transform;
	box-shadow: 2px 2px 10px black;
}

.green {
	background: linear-gradient(135deg, rgba(47, 79, 79, 0.9), rgba(112, 128, 144, 0.9)) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--swan_white) !important;
	text-align: center;
	box-shadow: 2px 2px 10px black;
}

.green button {
	color: var(--swan_white) !important;
	width: 100%;
	height: 100%;
}

.white {
	background: var(--swan_white) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--elecromagentic) !important;
	text-align: center;
}

.white button {
	color: var(--elecromagentic) !important;
	width: 100%;
	height: 100%;
}

.margin_top_100 {
	margin-top: 100px;
}

.gradient_white {
/*	background: linear-gradient(135deg, #f7f1e3, #d4b291, #e4cf98) !important;*/
	background: linear-gradient(135deg,rgba(247, 241, 227, 0.9),rgba(212, 178, 145, 0.9),rgba(228, 207, 152, 0.9)) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--swan_white) !important;
	text-align: center;
	box-shadow: 2px 2px 10px black;
}

.gradient_white button {
	color: var(--elecromagentic) !important;
	width: 100%;
	height: 100%;
}

.block_icons {
	position: absolute;
	top: 0;
	right: 0;
	margin: 10px;
	filter: invert(1);
	width: 30px;
}

.gradient_white .block_icons {
	filter: invert(0);
}


.white {
	background: var(--swan_white);
}


.slide_in_section.visible {
	opacity: 1;
	transform: translateX(0);
}

.slide_in_section>* {
	margin: 0;
	padding: 4px 0;
}

.hold_slide_in_title {
	display: none;
}

.content_wrapper {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	/* Optional: prevents overflow on tighter widths */
}

.content_wrapper>div {
	flex: 1;
	min-width: 250px;
	/* Optional: prevents too narrow columns */
}


/********* mobile menu icon ******************/


.menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	margin: 23px;
	position: absolute;
	right: 0;
	top: 0;
	width: 30px;
	height: 30px;
}

.bar {
	width: 30px;
	height: 3px;
	background-color: black;
	margin: 4px 0;
	transition: transform 0.4s ease, opacity 0.4s ease;
	border-radius: 2px;
	background: var(--swan_white);
}

/* Transform to "X" */
.menu-icon.open .bar:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.open .bar:nth-child(2) {
	opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

#mobile_menu_icon {
	display: none;
}

/**********************************/

.section {
	width: 100%;
	height: auto;
	min-height: 450px;
	position: relative;
	margin: 0;
	padding: 0;
	border: none;
}

.section:nth-child(1) {
	margin-top: var(--top_banner_height);
}

.section:nth-child(:last-child) {
	margin-bottom: var(--footer_height);
}


.section_item {
	border: 0px solid deeppink;
	display: flex;
	align-items: center;
	justify-content: start;
}

#item_2_3 {
	margin-top: 80px;
}

[id^=item_2_] {
	justify-content: center;
}


#item_2_5 .slide_in_section {
	margin-top: 45px;
}

#section_2 {
	background: var(--catholic_green);
}

#section_2::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 300px; /* adjust fade height */
  background: linear-gradient(to bottom, rgb(216, 189, 164) 0%, rgba(205, 181, 159, 0.7) 30%, rgba(202, 179, 158, 0) 70%);
  pointer-events: none; /* let clicks pass through */
}


#section_3 {
	background: var(--catholic_green);
}

#section_4 {
	background: var(--catholic_green);
}

#section_5 {
	background: var(--catholic_green);
}

#section_6 {
	background: var(--catholic_green);
}

#section_7 {
	background: var(--swan_white);
}

#section_8 {
	background: var(--catholic_green);
}

#section_9 {
	background: var(--swan_white);
}

#section_10 {
	background: var(--catholic_green);
}

#section_11 {
	background: var(--swan_white);
}


#section_12 {
	background: var(--catholic_green);
}

#section_13 {
	background: var(--swan_white);
}

#section_14 {
	background: var(--catholic_green);
}


.hold_section_titles {
	padding: 10px;
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: space-evenly;
  line-height: 40px;
	z-index: 1;
}

#section_1 .hold_section_titles {
    margin-top: 20px;
}

#section_1 .section_text_title {
   /* text-shadow: 2px 2px 10px black;*/
	text-shadow: 3px 3px 4px black;
}

#section_1 .section_text_subtitle {
   /* text-shadow: 2px 2px 10px black;*/
	text-shadow: 3px 3px 4px black;
}

#section_1 .section_text_sub_sub_title {
   /* text-shadow: 2px 2px 10px black;*/
	text-shadow: 3px 3px 4px black;
}

#item_1_2 .section_text_subtitle {
   text-shadow: 2px 2px 3px black;
}

.section_text_title {
	font-size: calc(2.5vw + 2.5vh);
	color: white;
	white-space: nowrap;
	position: relative;
	margin: 0;
	padding: 2px 0;
}

.section_text_subtitle,
.section_text_sub_sub_title {
	font-size: calc(1.5vw + 1.5vh);
	color: white;
	white-space: nowrap;
	position: relative;
	margin: 0;
	padding: 2px 0;
}

.section_text_sub_sub_title {
	font-size: calc(1.3vw + 1.3vh);
	color: #fffdc2;
}

h2 {
	font-size: 2rem;
	margin-bottom: 20px;
	color: #333;
}

.info_grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team_grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.team_card {
	width: auto;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.team_card img {
	width: 100px;
	border-radius: 100px;
	aspect-ratio: 1/1;
	object-fit: cover;
}

.see_bio {
	color: var(--swan_white);
	cursor: pointer;
	margin-top: -10px;
}

.see_bio:hover {
	transform: scale(1.1);
	transition: 0.4s;
	color: pink;
}

.container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	flex-flow: column;
	position: relative;
}

.carousel {
	max-width: 80%;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	transform-style: preserve-3d;
	transform: perspective(1000px);
}

.carousel .gallery_photo {
	width: 300px;
	max-width: 380px;
	margin: 2px;
	transition: 0.5s;
	object-fit: cover;
	filter: brightness(1);
	border-radius: 5px;
}

.carousel .gallery_photo:hover {
	filter: brightness(1);
	transform: translateZ(170px);
}

.carousel .gallery_photo:hover+* {
	filter: brightness(0.6);
	transform: translateZ(120px) rotateY(25deg);
}

.carousel .gallery_photo:hover+*+* {
	filter: brightness(0.4);
	transform: translateZ(50px) rotateY(15deg);
}

.carousel .gallery_photo:has(+ *:hover) {
	filter: brightness(0.6);
	transform: translateZ(120px) rotateY(-25deg);
}

.carousel .gallery_photo:has(+ * + *:hover) {
	filter: brightness(0.4);
	transform: translateZ(50px) rotateY(-15deg);
}

#live_stream_frame {
	display: block !important;
	margin: 0 auto !important;
}

#video_embed_container {
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 9;
	margin: 0 auto;
}

#livestream_1 {
	width: min(500px, 100%);
	max-width: 500px;
}

#hold_all_videos {
	width: min(520px, 100%);
	max-width: 520px;
}

@media (min-width: 980px) {
	.slide_in_blocks.livestream_layout {
		grid-template-columns: 500px minmax(380px, 520px);
		justify-content: center;
	}
}

#livestream_iframe {
	width: 100%;
	height: 100%;
	display: block;
}

/* Livestream loading spinner — sits in the upper-right of livestream_1 */
.livestream-spinner {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: livestream-spin 0.8s linear infinite;
	z-index: 10;
	pointer-events: none;
}

@keyframes livestream-spin {
	to { transform: rotate(360deg); }
}

/* ===== Featured Homilies Carousel ===== */

#featured_homilies_section {
	width: 100%;
	background: var(--catholic_green);
	padding: 30px 0 40px;
	box-sizing: border-box;
	overflow: hidden;
}

#featured_homilies_title {
	text-align: center;
	color: var(--swan_white);
	font-size: 24px;
	margin: 0 0 6px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

#featured_homilies_subtitle {
	text-align: center;
	color: rgba(255,255,255,0.65);
	font-size: 14px;
	margin: 0 0 20px;
}

#homilies_carousel_wrapper {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 50px;
	box-sizing: border-box;
}

#homilies_track {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 10px 0 16px;
	scrollbar-width: none;
}

#homilies_track::-webkit-scrollbar {
	display: none;
}

.homily_card {
	flex: 0 0 220px;
	scroll-snap-align: start;
	background: rgba(255,255,255,0.1);
	border-radius: 10px;
	overflow: hidden;
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.15);
	transition: transform 0.25s, box-shadow 0.25s;
	cursor: default;
}

.homily_card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.homily_card_thumb {
	width: 100%;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: rgba(255,255,255,0.7);
	position: relative;
	overflow: hidden;
}

.homily_card_thumb_bg {
	position: absolute;
	inset: 0;
	opacity: 0.35;
}

.homily_card_thumb_img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
}

.homily_card_body {
	padding: 12px 14px 14px;
	color: var(--swan_white);
	position: relative;
	z-index: 1;
}

.homily_card_title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.homily_card_meta {
	font-size: 12px;
	color: rgba(255,255,255,0.55);
	margin: 0 0 2px;
}

.homily_card_series {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	margin: 0 0 10px;
	font-style: italic;
}

.homily_card_actions {
	display: flex;
	gap: 8px;
}

.homily_card_actions a {
	flex: 1;
	display: block;
	text-align: center;
	padding: 6px 0;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.homily_btn_view {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

.homily_btn_view:hover {
	background: rgba(255,255,255,0.25);
}

.homily_btn_download {
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.8);
}

.homily_btn_download:hover {
	background: rgba(255,255,255,0.18);
}

.homilies_arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
	z-index: 2;
	padding: 0;
}

.homilies_arrow:hover {
	background: rgba(255,255,255,0.3);
}

#homilies_arrow_left {
	left: 8px;
}

#homilies_arrow_right {
	right: 8px;
}

/* Mobile: smaller cards, hide arrows */
@media only screen and (max-width: 700px) {
	#homilies_carousel_wrapper {
		padding: 0 16px;
	}
	.homily_card {
		flex: 0 0 180px;
	}
	.homilies_arrow {
		display: none;
	}
	#featured_homilies_title {
		font-size: 20px;
	}
}

/* ===== End Featured Homilies ===== */

/* ── Homily admin upload button ─────────────────────────────────────────── */

.homily_upload_btn {
	display: block;
	margin: 18px auto 0;
	padding: 10px 28px;
	background: transparent;
	border: 2px dashed deeppink;
	color: deeppink;
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
	letter-spacing: 0.4px;
	transition: background 0.2s, color 0.2s;
}

.homily_upload_btn:hover {
	background: rgba(255, 20, 147, 0.12);
}

/* ── Homily upload modal ────────────────────────────────────────────────── */

.homily_upload_modal_overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.homily_upload_modal_box {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
}

.homily_upload_modal_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #eee;
}

.homily_upload_modal_header p {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
}

.homily_upload_modal_close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 0 4px;
}

.homily_upload_modal_close:hover {
	color: #333;
}

.homily_upload_modal_form {
	padding: 18px 20px 8px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.homily_field_wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.homily_field_wrap label {
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.homily_field_wrap input[type="text"],
.homily_field_wrap input[type="date"] {
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
	color: #1a1a1a;
	outline: none;
	transition: border-color 0.2s;
}

.homily_field_wrap input[type="text"]:focus,
.homily_field_wrap input[type="date"]:focus {
	border-color: #2d6a4f;
}

.homily_field_wrap input[type="file"] {
	font-size: 13px;
	color: #444;
}

.homily_file_status {
	font-size: 12px;
	color: #2d6a4f;
	font-weight: 600;
	min-height: 16px;
}

.homily_upload_modal_save {
	margin: 16px 20px 20px;
	padding: 12px;
	background: #2d6a4f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.homily_upload_modal_save:hover {
	background: #1e4d38;
}

.homily_upload_modal_save:disabled {
	background: #aaa;
	cursor: not-allowed;
}

.bulletin_list {
	list-style-type: none;
	padding-left: 0;
}

.bulletin_list li {
	margin: 10px 0;
}

.bulletin_list a {
	color: #004080;
	text-decoration: none;
}

.bulletin_list a:hover {
	text-decoration: underline;
}


#scrollToTop {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: none;
	font-size: 22px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	padding: 12px 12px !important;
	font-size: 30px !important;
	z-index: 1000;
}

.gallery_list {
	display: block;
}

.gallery_icons {
	width: 30px;
	vertical-align: middle;
}

#modal_image {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 380px;
	box-shadow: 2px 2px 10px black;
	z-index: 0;
}

#modal_image>img {
	width: 100%;
}

/* protruding */


.protruding-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	padding: 0px;
}

.protruding-shape {
	width: 60%;
	height: 80%;
	background: var(--golden);


	border-top-right-radius: 50% 50%;
	border-bottom-right-radius: 50% 50%;
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
}

.content {
	padding-left: 4rem;
	max-width: 500px;
}

.content h1 {
	font-size: 3rem;
	font-weight: 900;
	line-height: 1.2;
}

.content .highlight {
	color: #2263ff;
}

.content p {
	margin-top: 1rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
}

#upload_trigger_button {
	background: #cd6133;
	color: white;
	font-size: 19px;
}

.coming_soon_pic {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
}

/* Container */
form {
	width: 100%;
	box-sizing: border-box;
	margin: 0px !important;
	padding: 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Labels */
form label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 6px;
	color: #444;
}

/* Inputs + Textarea */
form input,
form textarea {
	width: 100%;
	padding: 12px;
	margin-bottom: 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	background: #fafafa;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	resize: none;
}

form input:focus,
form textarea:focus {
	border-color: #4a90e2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
	outline: none;
	background: #fff;
}

/* Button */
form button {
	display: inline-block;
	width: 100%;
	height: 40px;
	margin-top: 10px;
	padding: 14px;
	background: #4a90e2;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

form button:hover {
	background: #357ABD;
}

form button:active {
	transform: scale(0.98);
}

/**** contact form ****/

#item_2_14 form {
	background: var(--swan_white);
}

#item_2_14 input {
	border: 1px solid black;
}

#item_2_14 textarea {
	border: 1px solid black;
}

/**********************/


#search_modal {
	width: auto;
	height: auto;
	background: var(--catholic_green);
	border: 2px solid var(--swan_white);
	box-shadow: 2px 2px 10px black;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 10px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 9999;
}

#search_modal>input {
	width: 300px;
	height: 45px;
	border-radius: 3px;
	padding-left: 5px;
	font-size: 19px;
}

#search_modal>button {
	background: var(--swan_white);
	color: var(--elecromagentic);
	border-radius: 3px;
	border: none;
	height: 40px;
	margin-top: 10px;
}

#hold_all_videos {
	overflow: auto;
	align-items: stretch;
	text-align: left;
}

.video_divs {
	background: var(--elecromagentic);
	color: var(--swan_white);
	font-size: 18px;
	cursor: pointer;
	margin-top: 5px;
	padding: 5px;
	border-radius: 5px;
	width: 98%;
}

.video_divs:hover {
	outline: 3px solid var(--swan_white);
}

.truncate {
  white-space: nowrap;        /* keep text on one line */
  overflow: hidden;           /* hide overflow */
  text-overflow: ellipsis;    /* add "..." */
  width: 380px;               /* must set a width */
}


#hold_map_buttons_and_frame {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	width: 500px;
	margin-bottom: 10px;
}

#hold_map_buttons_and_frame button {
	width: 100%;
	height: 40px;
	border-radius: 3px;
	border: none;
	outline: 0;
	font-size: 18px;
	cursor: pointer;
	margin-left: 10px;
	white-space: nowrap;
}

#hold_map_buttons_and_frame button:nth-child(1) {
	background: var(--swan_white);
	outline: 5px solid deeppink;
}

#hold_map_buttons_and_frame button:nth-child(2) {
	background: var(--swan_white);
}

#hold_map_buttons_and_frame button:nth-child(3) {
	background: var(--swan_white);
}

#item_1_13 .section_text_sub_sub_title {
		color: var(--elecromagentic) !important;
	}


/* Reuse your existing keyframes: bounce-in-right / bounce-in-left */
/* OUT classes: play the same keyframes in reverse and keep final state */
.swoosh-out-right_speed_1 { animation: bounce-in-right 0.4s ease-in 1 reverse both; }
.swoosh-out-right_speed_2 { animation: bounce-in-right 0.6s ease-in 1 reverse both; }
.swoosh-out-right_speed_3 { animation: bounce-in-right 0.8s ease-in 1 reverse both; }

.swoosh-out-left_speed_1  { animation: bounce-in-left  0.4s ease-in 1 reverse both; }
.swoosh-out-left_speed_2  { animation: bounce-in-left  0.6s ease-in 1 reverse both; }
.swoosh-out-left_speed_3  { animation: bounce-in-left  0.8s ease-in 1 reverse both; }

/* Optional: hide after out-animation ends (we'll also set display:none in JS) */
.white_blocks.is-hidden { opacity: 0; pointer-events: none; }

/* Back button (absolute within the slide_in_blocks container) */
.slide_in_blocks { position: relative; } /* ensure a containing block */
.slide-in-back-btn {
  position: absolute;
  top: -12px;           /* tweak for your layout */
  right: 8px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  background: #222;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2;
}
.slide-in-back-btn.show {
  opacity: 1;
  pointer-events: auto;
}


#thermometer_iframe {
	border: none !important; 
	pointer-events: none;
}

#we_did_it_button {
	background: green;
    color: white;
    border-radius: 5px;
    margin-top: 20px;
}

  .confetti {
    position: absolute;
    width: 8px;
    height: 12px;
    opacity: 0.9;
    will-change: transform, top, left;
  }

 #uploadBtn, #subscribe_to_bulletin_button, #see_all_forms_button {
	position: absolute;
	top: 100px;
	right: 50px;
    background: #2F4F4F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 2px 2px 10px black;
}

#uploadBtn:hover {
  background: #3b5f5f;
}

#send_bulk_email_button {
	position: absolute;
	top: 100px;
	left: 50px;
  background: #2F4F4F;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 9999;
  border: 2px solid var(--swan_white);
  box-shadow: 2px 2px 10px black;
}

  @keyframes swooshOff {
  0%   { transform: translateX(0);    opacity: 1; }
  60%  { transform: translateX(-50%); opacity: 0.7; }
  100% { transform: translateX(-120%); opacity: 0; }
}
@keyframes swooshIn {
  0%   { transform: translateX(-20%); opacity: 0; }
  100% { transform: translateX(0);    opacity: 1; }
}
.swoosh-off { animation: swooshOff 0.8s ease-in forwards; }
.swoosh-in  { animation: swooshIn  0.5s ease-out; }

.back-arrow {
	position: absolute;
	top: 0;
	left: 0;
	margin: 10px;
	background: var(--swan_white);
  cursor: pointer;
  margin-bottom: 10px;
  display: inline-block;
  color: #2c3e50;      /* dark grey */
  font-weight: bold;
  transition: transform 0.2s;
  padding: 10px;
    border-radius: 3px;
    box-shadow: 2px 2px 10px black;
    font-size: 19px;
  z-index: 99999;
}
.back-arrow:hover {
  transform: translateX(-4px);
}

#admin_badge {
	position: fixed;
	top: 250px;
	right: 0;
	margin: 20px;
	background: var(--elecromagentic);
	color: var(--swan_white);
	box-shadow: 2px 2px 10px black;
	border: 2px solid var(--swan_white);
	padding: 10px;
	z-index: 999999999;
}

.admin_icon {
	position: absolute;
	top: 0;
	right: 0;
	margin: 10px;
	width: 40px;
	cursor: pointer;
	-webkit-filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
    filter: drop-shadow( 3px 3px 2px rgba(0, 0, 0, .7));
}

#admin_icon_modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 2px 2px 10px black;
	width: 90%;
	height: 90%;
	overflow: hidden;
	border-radius: 5px;
	border: 1px solid white;
	background: var(--catholic_green);
	color: var(--swan_white);
	z-index: 9999999999;
	display: flex;
	flex-direction: column;
}

#admin_icon_modal > img[src*="close.svg"] {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	z-index: 11;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	padding: 5px;
}

.rte-block { 
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.rte-toolbar { 
	position: sticky;
	top: 0;
	z-index: 10;
	border:1px solid #ddd; 
	border-bottom:0; 
	padding:6px; 
	display:flex; 
	gap:6px; 
	flex-wrap:wrap; 
	background:#353b48;
	flex-shrink: 0;
}

.rte-toolbar button { 
	padding: 4px 8px; 
	border: 1px solid #ccc; 
	cursor: pointer; 
	border-radius: 5px; 
	color: white;
	position: relative;
}

.rte-toolbar button.active { 
	outline: 2px solid green; 
}

/* Tooltip styling for toolbar buttons - show below */
.rte-toolbar button[data-tooltip]::after,
.rte-toolbar .color-picker-wrapper[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Tooltip arrow - pointing up */
.rte-toolbar button[data-tooltip]::before,
.rte-toolbar .color-picker-wrapper[data-tooltip]::before {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(2px);
	border: 6px solid transparent;
	border-bottom-color: #667eea;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1000;
}

/* Show tooltip on hover */
.rte-toolbar button[data-tooltip]:hover::after,
.rte-toolbar button[data-tooltip]:hover::before,
.rte-toolbar .color-picker-wrapper[data-tooltip]:hover::after,
.rte-toolbar .color-picker-wrapper[data-tooltip]:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(4px);
}

.rte-toolbar .color-picker-wrapper {
	position: relative;
}

.rte-editor { 
	border: none; 
	padding: 10px 10px 40px 10px; /* Extra bottom padding for clickable area */
	background: #f7f1e3; 
	overflow-y: auto; 
	color: black; 
	font-size: 18px; 
	outline: 0;
	flex: 1;
	min-height: 0;
	caret-color: #ff0000; /* Bright red cursor for visibility */
	line-height: 1.6; /* Better spacing for cursor visibility */
}

/* Make text content use full width for alignment, but not images */
.rte-editor p:not(:has(img)),
.rte-editor h1,
.rte-editor h2,
.rte-editor h3,
.rte-editor h4,
.rte-editor h5,
.rte-editor h6,
.rte-editor div:not(:has(img)),
.rte-editor blockquote,
.rte-editor pre {
	margin: 0 0 10px 0;
	width: 100%;
	max-width: 100%;
}



/* Nuclear option: completely isolate images from parent styling */
.rte-editor img {
	max-width: 600px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
	flex: none !important;
	/* Don't override width/height - preserve original dimensions */
}

/* Prevent flex containers from stretching images */
.rte-editor div[style*="display: flex"] img,
.rte-editor div[style*="display:flex"] img,
.rte-editor .section-image img {
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	flex-basis: auto !important;
	align-self: center !important;
	width: auto !important;
	max-width: 600px !important;
	min-width: 0 !important;
}

/* Override flex column behavior for image containers */
.rte-editor div[style*="flex-direction: column"] img,
.rte-editor div[style*="flex-direction:column"] img {
	width: auto !important;
	max-width: 600px !important;
	align-self: center !important;
}


#admin_icon_modal_buttons_container {
	position: sticky;
	bottom: 0;
	z-index: 10;
	background: var(--catholic_green);
	padding: 10px 20px;
	border-top: 1px solid white;
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

#admin_icon_modal_save_button, #admin_icon_modal_remove_button, #admin_icon_modal_add_button {
	display:inline-block !important;
	background: green;
    color: white;
    border-radius: 5px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--swan_white);
	cursor: pointer;
}

#admin_icon_modal_remove_button {
   background: #50419d;
}

#admin_icon_modal_add_button {
   background: #45a2c2;
}

/* animated borders */

.animated_border {
  position: relative;
  border-radius: 10px;         /* match your element’s rounding */
}

/* Only the ring animates */
.animated_border::before {
  content: "";
  position: absolute;
  inset: -2px;                 /* how far the border sits outside; use 0 for flush */
  padding: 7px;                /* border thickness */
  border-radius: inherit;

  background: linear-gradient(90deg, #3bc9db, #9775fa, #3bc9db);
  background-size: 300% 300%;
  animation: borderMove 4s linear infinite;

  /* carve out the middle so only a ring shows */
  -webkit-mask: 
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor; /* Safari/Chrome */
          mask-composite: exclude; /* Firefox */
  
  pointer-events: none;        /* don’t block clicks */
  z-index: 1;                  /* above background, below content is fine */
}

@keyframes borderMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/*
.slide_in_blocks p,
.slide_in_blocks strong,
.slide_in_blocks span
{
  pointer-events: none;
}
  */



.rubberband {
  animation: rubberband 1s alternate ease-out;
}

.event-details { margin-top: 8px; line-height: 1.45; }


@keyframes rubberband {
  0% {
    transform: scaleX(1);
  }
  40% {
    transform: scaleX(1.12) scaleY(0.75);
  }
  55% {
    transform: scaleX(0.85) scaleY(1);
  }
  65% {
    transform: scaleX(1.09) scaleY(0.85);
  }
  75% {
    transform: scaleX(0.9) scaleY(1);
  }
  90% {
    transform: scaleX(1.05) scaleY(0.95);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}

/***** spinner ***********/

.lds-circle {
	position: fixed;
	transform: translateZ(1px);
	top: 50%;
	left: 50%;
	margin-top: -25px;
	margin-left: -25px;
	z-index: 99999999999;
}

.lds-circle>div {
	width: 50px;
	height: 50px;
	margin: 0px;
	padding: 0px;
	border-radius: 20%;
	background: #fff;
	animation: lds-circle 4.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	background-position: center;
}

@keyframes lds-circle {

	0%,
	100% {
		animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
	}

	0% {
		transform: rotateY(0deg);
	}

	50% {
		transform: rotateY(1800deg);
		animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
	}

	100% {
		transform: rotateY(3600deg);
	}
}

/****************/


@media only screen and (max-width: 1000px) {
	[id^=banner_item_] {
		display: none;
	}

	.hold_section_titles {
		line-height: 24px;
	}

	.section_text_title {
		font-size: 30px;
	}

	.section_text_subtitle {
		font-size: 22px;
    	margin-top: 8px;
	}

	#item_1_1 .section_text_subtitle {
		font-size: 20px;
        margin-top: 5px;
	}

	.section_text_sub_sub_title {
		font-size: 18px;
        line-height: 30px;
	}

	#section_1 .hold_section_titles {
		background: rgba(0, 0, 0, 0.5) !important;
	}

	.team_grid {
		margin-top: 40px;
	}

	#mobile_menu_icon {
		display: block;
	}

	.section {
		flex-direction: column;
	}

	.section:not(#section_1) {
		background-position: center center !important;
	}

	.section_item {
		justify-content: center;
	}

	.hold_section_titles {
		align-items: center;
	}

	.slide_in_section {
		width: 100%;
	}

	.slide_in_blocks {
		grid-template-columns: 1fr;
		padding: 10px 8px;
	}

	#item_1_6 .section_text_subtitle {
		width: 280px;
    text-align: center;
    white-space: pre-wrap;
    font-size: 24px;
    line-height: 28px;
	}

	#footer {
		height: auto !important;
	}

	#footer_wrapper {
		grid-template-rows: auto;
		grid-template-columns: auto;
	}

	iframe {
		width: 100%;
	}

	form {
		width: auto !important;
	}

	#hold_map_buttons_and_frame {
		width: 100%;
	}

	#live_stream_frame {
		max-width: 350px !important;
		height: auto !important;
	}

	#video_embed_container {
		max-width: 100% !important;
	}

	#livestream_1 {
		width: 100% !important;
		max-width: 100% !important;
	}

	#hold_all_videos {
		max-width: 100% !important;
		width: 100% !important;
	}

	.slide_in_blocks.livestream_layout {
		grid-template-columns: 1fr;
	}

	.slide_in_blocks .white_blocks,
	.slide_in_blocks .green_blocks {
		width: 100%;
		max-width: 100%;
	}

	.video_divs {
		width: 100% !important;
		box-sizing: border-box;
	}

	#item_1_8 .section_text_subtitle {
		width: 280px;
    text-align: center;
    white-space: pre-wrap;
    font-size: 22px;
    line-height: 30px;
	}

	#item_1_9 .section_text_title {
		width: 368px;
    white-space: pre-wrap;
    text-align: center;
    font-size: 27px;
    line-height: 31px;
	}

	#item_1_9 .section_text_subtitle {
		width: 280px;
    white-space: pre-wrap;
    text-align: center;
    font-size: 23px;
    line-height: 30px;
	}

		#item_1_11 .section_text_subtitle {
		width: 280px;
    text-align: center;
    white-space: pre-wrap;
    font-size: 24px;
    line-height: 28px;
	}

	#item_1_13 .section_text_subtitle {
		width: 280px;
    text-align: center;
    white-space: pre-wrap;
    font-size: 24px;
    line-height: 28px;
	}

	

	#item_1_14 .section_text_subtitle {
		width: 280px;
    text-align: center;
    white-space: pre-wrap;
    font-size: 24px;
    line-height: 28px;
	}

	#item_2_5 .slide_in_section {
		margin-top: 0px;
	}

	#section_2 {
		background-image: url("../img/three_churches_mobile.webp") !important;
	}

	#see_helpful_links_popup {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 340px;
	}
	

}