/*
Theme Name: Nova Scotia SPCA Theme
Theme URI: https://novascotiaspca.ca
Author: Shortstop
Author URI: https://shortstop.agency
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.0
Text Domain: nsspca
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/* Focus styles */
/* :where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
} */

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Style excerpt read more links as buttons.
 */
.wp-block-post-excerpt__more-link,
.more-link {
	display: inline-block;
	background: transparent none;
	border-color: currentColor;
	border-width: 1px;
	border-style: solid;
	color: currentColor;
	padding-top: calc(1rem - 1px);
	padding-right: calc(2.25rem - 1px);
	padding-bottom: calc(1rem - 1px);
	padding-left: calc(2.25rem - 1px);
	border-radius: 40px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body);
	font-style: inherit;
	font-weight: 700;
	letter-spacing: inherit;
	line-height: inherit;
	text-decoration: none;
	text-transform: inherit;
}

.wp-block-button a[target="_blank"] { display: inline-block; }
a.wp-block-read-more[target="_blank"]::after { display: inline-block; }
.wp-block-button a[target="_blank"]::after, a.wp-block-read-more[target="_blank"]::after {
	content: ""; display: inline-block;
	background-size: contain; background-repeat: no-repeat; background-position: center;
	width: 18px; height: 20px;
	margin-left: 10px;
	position: relative; top: 3px;
}
.wp-block-button a[target="_blank"]::after {
	color: inherit;
	background-color: currentColor;
	mask: url('/wp-content/themes/nsspca-theme/assets/images/theme-icons/arrow-up-right-from-square.svg') center / contain no-repeat;
	-webkit-mask: url('/wp-content/themes/nsspca-theme/assets/images/theme-icons/arrow-up-right-from-square.svg') center / contain no-repeat;
}
a.wp-block-read-more[target="_blank"]::after {
	background-image: url("/wp-content/themes/nsspca-theme/assets/images/theme-icons/arrow-up-right-from-square.svg");
}

.wp-block-button .wp-block-button__link { transition: all 0.2s ease-in-out; }

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}

body {
	max-width: 100vw; overflow-x: hidden;
}

header { z-index: 10; position: relative; }
header .wp-block-site-logo a { margin-top: 10px; display: block; }

div.wp-site-blocks > main {
	margin-top: 0;
}

footer { margin-top: 0; }
footer a { text-decoration: none; }
footer p a[target="_blank"]::after, a.wp-block-read-more[target="_blank"]::after {
	width: 18px; height: 18px;
	background-color: #fff;
	mask: url('/wp-content/themes/nsspca-theme/assets/images/theme-icons/arrow-up-right-from-square.svg') center / contain no-repeat;
	-webkit-mask: url('/wp-content/themes/nsspca-theme/assets/images/theme-icons/arrow-up-right-from-square.svg') center / contain no-repeat;
}

@media (min-width: 600px) and (max-width: 1100px) {
	footer .wp-block-columns.footer__logo-and-navigation { flex-wrap: wrap !important; gap: 50px; }
	footer .wp-block-columns.footer__logo-and-navigation > .wp-block-column {
		width: 100% !important; flex-basis: 100% !important;
	}
}


/* FORMIDABLE */
@media (max-width: 600px) {
	.frm_style_formidable-style.with_frm_style form.newsletter-signup .frm_form_fields fieldset .frm_fields_container div.form-field input[type=email],
	.frm_style_formidable-style.with_frm_style form.newsletter-signup .frm_form_fields fieldset .frm_fields_container div.form-field button {
		width: 100vw;
	}

}
@media (min-width: 601px) {
	.frm_style_formidable-style.with_frm_style .newsletter-signup .frm_form_fields .frm_fields_container { gap: 0; } 
	.frm_style_formidable-style.with_frm_style .newsletter-signup .frm_form_fields div.form-field { 
		margin-bottom: 0 !important; 
		padding-top: 0;
	}
	.frm_style_formidable-style.with_frm_style form.newsletter-signup .frm_form_fields fieldset .frm_fields_container div.form-field input[type=email] {
		border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important;
	}
	.frm_style_formidable-style.with_frm_style form.newsletter-signup .frm_form_fields fieldset .frm_fields_container div.form-field button {
		border-top-left-radius: 0px !important; border-bottom-left-radius: 0px !important;
	}

}
.frm_style_formidable-style.with_frm_style form.newsletter-signup .frm_form_fields fieldset .frm_fields_container div.form-field button { transition: all 0.2s ease-in-out; }

.frm_style_formidable-style.with_frm_style .frm_form_field,
.frm_forms.with_frm_style .frm_form_field { position: relative; }
.frm_style_formidable-style.with_frm_style .frm_form_field:has(select)::after,
.frm_forms.with_frm_style .frm_form_field:has(select)::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 55%;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	pointer-events: none;
}
.frm_style_formidable-style.with_frm_style .frm_form_field select,
.frm_forms.with_frm_style .frm_form_field select {
	height: 63px;
	-webkit-appearance: none;
	appearance: none;
	
	border-radius: 40px;
	background-color: #fff;
}

.frm_style_formidable-style.with_frm_style .frm_form_field:has(.frm_time_wrap)::after,
.frm_forms.with_frm_style .frm_form_field:has(.frm_time_wrap)::after { border: unset; }
.frm_style_formidable-style.with_frm_style .frm_form_field .frm_time_wrap select,
.frm_forms.with_frm_style .frm_form_field .frm_time_wrap select { min-width: 80px; }

.frm_style_formidable-style.with_frm_style .frm_time_sep,
.frm_forms.with_frm_style .frm_time_sep
 { color: white; }
.frm_style_formidable-style.with_frm_style .frm_form_field.vertical_radio .frm_opt_container,
.frm_forms.with_frm_style .frm_form_field.vertical_radio .frm_opt_container {
	margin-left: 20px;
}
.frm_style_formidable-style.with_frm_style .frm_checkbox label input,
.frm_forms.with_frm_style .frm_checkbox label input {
	border-radius: unset !important;
}




p a[target="_blank"], .wp-block-button a[target="_blank"] { display: inline-block; }
p a[target="_blank"]::after, a.wp-block-read-more[target="_blank"]::after {
	content: ""; display: inline-block;
	background-image: url("/wp-content/themes/nsspca-theme/assets/images/external-link.png");
	background-size: contain; background-repeat: no-repeat; background-position: center;
	width: 18px; height: 20px;
	margin-left: 10px;
	position: relative; top: 3px;
}

/* IMAGES */
.wp-block-image img {
	border-radius: 30px;
}


/* PATTERNS */
@media (min-width: 700px) { .text-and-arch-image .wp-block-columns { gap: 120px; } }
.text-and-arch-image { margin-top: 100px !important; }
.text-and-arch-image .wp-block-image img {
	border-top-left-radius: 300px; border-top-right-radius: 300px;
	border-bottom-left-radius: 0%; border-bottom-right-radius: 0%;
}

.text-and-arch-image .wp-block-image { margin-top: -50px; }


.hero-with-mask-1  .wp-block-image {
	width: 55vw; max-width: 800px;
	position: absolute; top: -60px; right: 0;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-1.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-1.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
}

.hero-with-mask-1 .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
	.hero-with-mask-1 .wp-block-image {
		position: relative; top: -140px; right: 30px;
		margin-bottom: -150px;
		width: 100vw; max-width: 850px;
	}
}

/* HERO MASK 2 */
.hero-with-mask-2 { position: relative; }
.hero-with-mask-2 .wp-block-image {
	width: 60vw; max-width: 650px;
	position: absolute; top: -170px; right: 0;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-2.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-2.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
}

.hero-with-mask-2 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-2::after {
	content: ""; display: block;
	width: 260px; height: 175px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-3.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: 0; right: calc(55vw - 20%);
	z-index: -1;
}

@media (max-width: 1000px) {
	.hero-with-mask-2 .wp-block-image {
		width: 50%;
		top: -125px;
	}
	.hero-with-mask-2::after {
		/* width: 200px; */
		width: 20%; 
	}
}

@media (max-width: 600px) {
	.hero-with-mask-2 .wp-block-image {
		width: 50vw;
		top: -100px;
	}
	.hero-with-mask-2::after {
	}

}

/* HERO WITH MASK 3 */
.hero-with-mask-3 { position: relative; }
.hero-with-mask-3 .wp-block-image {
	width: 70vw; max-width: 650px;
	position: absolute; top: -80px; right: -20px;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-7.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-7.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
}

.hero-with-mask-3 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-3::after {
	content: ""; display: block;
	width: 30vw; height: 30vw;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-4.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: -20px; right: 0;
	z-index: -1;
}

@media (max-width: 1200px) {
	.hero-with-mask-3 .wp-block-image {
		width: 60vw; max-width: 500px;
	}
}

@media (max-width: 870px) {
	.hero-with-mask-3 .wp-block-columns {
		margin-top: 140px;
	}

}



/* HERO WITH MASK 4 */
.hero-with-mask-4 { position: relative; }
.hero-with-mask-4 .wp-block-image {
	width: 80vw; max-width: 650px;
	position: absolute; top: -170px; right: -20px;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-1.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-1.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
	z-index: 0;
}

.hero-with-mask-4 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-4::after {
	content: ""; display: block;
	width: 260px; height: 175px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-6.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: 250px; right: 0;
	z-index: -1;
}

@media (max-width: 1250px) {
	.hero-with-mask-4 .wp-block-image {
		width: 50vw; max-width: 60%;
		/* top: -80px; */
	}
	.hero-with-mask-4::after {
		top: 200px;
	}
}

@media (max-width: 1000px) {
	.hero-with-mask-4 .wp-block-image {
		top: -160px; width: 60vw;
	}
	.hero-with-mask-4::after {
		top: 220px;
	}
}

@media (max-width: 880px) {
	.hero-with-mask-4 .wp-block-image {
		top: -160px; width: 50vw;
	}
	.hero-with-mask-4::after {
		top: 100px;
	}
}

@media (max-width: 850px) {
	.hero-with-mask-4 .wp-block-image {
		max-width: 100vw; max-width: 100%;
		top: -100px;
	}
	
	.hero-with-mask-4::after {
		/* width: 180px; */
		top: 70px;
	}
	.hero-with-mask-4 .wp-block-columns {
		margin-top: 120px;
	}
}

@media (max-width: 600px) {
	.hero-with-mask-4 .wp-block-image {
		width: 65vw;
	}
	
	.hero-with-mask-4::after {
		top: 70px;
	}
	.hero-with-mask-4 .wp-block-columns {
		margin-top: 120px;
	}
}


/* HERO WITH MASK 5 */
.hero-with-mask-5 { position: relative; }
.hero-with-mask-5 .wp-block-image {
	width: 80vw; max-width: 650px;
	position: absolute; top: -120px; right: 20px;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-3.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-3.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
	z-index: 0;
}

.hero-with-mask-5 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-5::after {
	content: ""; display: block;
	width: 260px; height: 175px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-6.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: 270px; right: 0;
	z-index: -1;
}

@media (max-width: 1250px) {
	.hero-with-mask-5 .wp-block-image {
		width: 60vw; max-width: 50%;
		top: -80px;
	}
	.hero-with-mask-5::after {
		top: 200px;
	}
}

@media (max-width: 850px) {
	.hero-with-mask-5 .wp-block-image {
		max-width: 60%;
		top: -50px;
	}
	
	.hero-with-mask-5::after {
		width: 180px;
		top: 150px;
	}
	
	.hero-with-mask-5 .wp-block-columns {
		margin-top: 140px;
	}
}


/* HERO WITH MASK 6 */
.hero-with-mask-6 { position: relative; }
.hero-with-mask-6 .wp-block-image {
	width: 80vw; max-width: 650px;
	position: absolute; top: -170px; right: -20px;
	aspect-ratio: 1.1;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-1.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/accent-1.svg");

	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;

	-webkit-mask-position: center;
	mask-position: center;

	-webkit-mask-size: contain;
	mask-size: contain;
	z-index: 0;
}

.hero-with-mask-6 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-6::after {
	content: ""; display: block;
	width: 500px; height: 300px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-5.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: 150px; right: -50px;
	z-index: -1;
}


/* HERO MASK 7 */
.hero-with-mask-7 { position: relative; }
.hero-with-mask-7 .wp-block-post-featured-image,
.hero-with-mask-7 .wp-block-image {
	width: 60vw; max-width: 650px;
	position: absolute; top: -170px; right: 0;
	-webkit-mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-3.svg");
	mask-image: url("/wp-content/themes/nsspca-theme/assets/images/shape-3.svg");

	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
}

.hero-with-mask-7 .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-with-mask-7::after {
	content: ""; display: block;
	width: 400px; height: 300px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-6.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; top: 270px; right: 0;
	z-index: -1;
}

.hero-with-mask-7 .wp-block-columns .wp-block-column:first-child {
	margin-bottom: 150px;
}

@media (max-width: 1350px) {
	.hero-with-mask-7 .wp-block-post-featured-image,
	.hero-with-mask-7 .wp-block-image  {
		width: 50vw;
	}
}

@media (max-width: 780px) {
	.hero-with-mask-7 { margin-bottom: 0 !important; }
	.hero-with-mask-7 .wp-block-post-featured-image,
	.hero-with-mask-7 .wp-block-image {
		width: 90vw;
	}

	.hero-with-mask-7::after {
		top: 150px;
	}

	.hero-with-mask-7 .wp-block-columns .wp-block-column:first-child {
		margin-top: 350px;
		margin-bottom: 20px;
	}
}




/* ======================= */

.move-block-under-footer {
	margin-bottom: -120px !important;
}

.group-with-accent-1 { position: relative; }
.group-with-accent-1::after {
	content: ""; display: block;
	width: 260px; height: 210px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-1.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; right: -20px; bottom: 0;
	z-index: -1;
}

.group-with-accent-2 { position: relative; }
.group-with-accent-2::after {
	content: ""; display: block;
	width: 225px; height: 400px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-2.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; left: -20px; top: 0;
	z-index: -1;
}

.group-with-accent-3 { position: relative; }
.group-with-accent-3::after {
	content: ""; display: block;
	width: 225px; height: 400px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-2-flip.svg');
	background-repeat: no-repeat; background-size: contain;
	position: absolute; right: -20px; bottom: 50px;
	z-index: -1;
}

.group-with-accent-4 { position: relative; }
.group-with-accent-4::after {
	content: ""; display: block;
	width: 260px; height: 210px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-4.svg');
	transform: scale(-1);
	background-repeat: no-repeat; background-size: contain;
	position: absolute; left: -20px; top: 20px;
	z-index: -1;
}

.group-with-accent-5 { position: relative; }
.group-with-accent-5::after {
	content: ""; display: block;
	width: 400px; height: 400px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-8.svg');
	transform: rotate(45deg);
	background-repeat: no-repeat; background-size: contain;
	position: absolute; right: -100px; top: -30px;
	z-index: -1;
}

.group-with-accent-6 { position: relative; }
.group-with-accent-6::after {
	content: ""; display: block;
	width: 260px; height: 210px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-4.svg');
	transform: scale(-1);
	background-repeat: no-repeat; background-size: contain;
	position: absolute; left: -20px; bottom: 0px;
	z-index: -1;
}

.group-with-accent-7 { position: relative; }
.group-with-accent-7::after {
	content: ""; display: block;
	width: 400px; height: 370px;
	background-image: url('/wp-content/themes/nsspca-theme/assets/images/accent-9.svg');
	transform: rotate(-50deg);
	background-repeat: no-repeat; background-size: contain;
	position: absolute; left: -90px; bottom: 40px;
	z-index: -1;
}


/* BLOCKS */

.wp-block-details {
	background: #f0f0f0;
	border-radius: 6px;
	padding: 10px 20px;
	margin-top: 10px; margin-bottom: 10px;
}
.wp-block-details summary {
	display: flex; align-items: center;
	font-weight: bold;
	list-style: none;
	margin-bottom: 5px;
	padding-right: 10px;
	font-size: 1.25rem; line-height: none;
}
.wp-block-details summary::after {
	content: "+";
	/* display: inline-block; */
	font-size: 2rem; font-weight: 400;
	margin-left: auto; margin-right: 0;
	transition: all 0.2s ease;
}
.wp-block-details p { padding-bottom: 1rem; }
.wp-block-details[open] summary::after { content: "–"; }
