/*
 * These styles are outputted both of the frontend and backend of the site
 * Please note any changes you do make may also make changes to the WP backend default styles.
 * Edit with caution
 */

/* Root Variables */
:root { --border-radius: 1rem; --grid-gap: 4rem; }


/* Default Margins */
.default-p { padding-top: clamp(2.5rem, 3vw, 5rem); padding-bottom: clamp(2.5rem, 3vw, 5rem); }
.default-m { margin-top: clamp(2.5rem, 3vw, 5rem); margin-bottom: clamp(2.5rem, 3vw, 5rem); }

* { box-sizing: border-box; }
img { max-width: 100%; vertical-align: middle; height: auto; }
.block-overlay-color { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
/* Grid */
.grid { display: grid; grid-gap: 4rem; }
@media screen and (max-width: 576px) {
	.grid { grid-template-columns: 1fr !important; }
}
/* Sections */
section { background-size: cover; background-position: center; position: relative; }
section.full-width .container,
.container.full-width { max-width: 100%; width: 100%; padding-left: 0rem; padding-right: 0rem; }
.container .container { padding: 0; }

/* Container */
section.narrow .container .grid { width: 80%; max-width: 80%; }
.container { width: 85%; max-width: 117rem; margin: 0 auto; padding: 0rem; position: relative; }
.wp-admin .container { width: 97%; }
.container .container { padding: 0; margin: 0; }
@media screen and (max-width: 1024px) {
	.container { max-width: 85%; }
}

/* Container widths (when using the override in Section settings on a block)*/
.width-20 { width: 20%; max-width: 20%; }
.width-25 { width: 25%; max-width: 25%; }
.width-30 { width: 30%; max-width: 30%; }
.width-33 { width: 33%; max-width: 33%; }
.width-40 { width: 40%; max-width: 40%; }
.width-50 { width: 50%; max-width: 50%; }
.width-60 { width: 60%; max-width: 60%; }
.width-66 { width: 66%; max-width: 66%; }
.width-70 { width: 70%; max-width: 70%; }
.width-75 { width: 75%; max-width: 75%; }
.width-80 { width: 80%; max-width: 80%; }
.width-85 { width: 85%; max-width: 85%; }
.width-90 { width: 90%; max-width: 90%; }
.width-100 { width: 100%; max-width: 100%; }
.auto { margin-left: auto !important; margin-right: auto !important; }

@media screen and (max-width: 576px) {
	.width-20,
    .width-25,
    .width-30,
    .width-33,
    .width-40,
    .width-50,
    .width-60,
    .width-66,
    .width-70,
    .width-75,
    .width-80,
    .width-85,
    .width-90,
    .width-100 { width: 90%; max-width: 90%; }
}

/* Block shapes */
.block-shape { position: relative; width: 100%; box-sizing: border-box; overflow: hidden; height: 10rem; }
.block-shape .triangle-shape { background-color: transparent !important; width: 0; height: 0; border-left: 50vw solid transparent; border-right: 50vw solid transparent; border-bottom: 10rem solid;  }
.block-shape .triangle-shape-bottom { background-color: transparent !important; width: 0; height: 0; border-left: 50vw solid transparent; border-right: 50vw solid transparent; border-top: 10rem solid;  }
.block-shape .curve-shape { height: 5rem; border: 0; width: 100%;  border-radius: 50% 50% 0 0; margin-top: 5rem;  }	 
.block-shape .curve-shape-bottom { height: 5rem; border: 0; width: 100%;  border-radius: 0 0 50% 50%; margin-bottom: 5rem;  }	 
.block-shape .tilt-shape { height: 10rem; border: 0; width: 120%; transform: rotate(2deg); margin-top: 5rem; position: relative; left: -5%; }	 
.block-shape .tilt-shape-bottom { height: 10rem; border: 0; width: 120%; transform: rotate(2deg); margin-bottom: 5rem; position: relative; top: -5rem; left: -5%;  }

.block-shape .small-triangle-shape { background-color: transparent !important; width: 0; height: 0; border-left: 10rem solid transparent; border-right: 10rem solid transparent; border-bottom: 5rem solid; position: absolute; bottom: 0; transform: translateX(-50%); left: 50%; }
.block-shape .small-triangle-shape-bottom { background-color: transparent !important; width: 0; height: 0; border-left: 10rem solid transparent; border-right: 10rem solid transparent; border-top: 5rem solid; border-bottom: 0; position: absolute; top: 0; transform: translateX(-50%); left: 50%;   }


/* Section Titles */
.section-title-area { margin-bottom: 5rem; }
.section-title-area .section-title {}

/* Broken Links */
.broken-link { position: relative; }
.broken-link:after { content: "HASH LINK"; float: left; width: 6rem; color: #fff; background: red; border-radius: 100rem; padding: 0rem 1rem; font-size: 1rem; position: absolute; left: 3.5rem; text-align: left; line-height: 3rem; }

/* Post Listings */
.post-listings { grid-template-columns: repeat(3, 1fr); }
.post-listing { position: relative; border: 1px solid var(--brand-7); border-radius: 5px; overflow: hidden; }
.post-listing .post-listing-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.post-listing .post-listing-content { padding: 3rem; }
.post-listings .post-listing-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.post-listings .post-listing-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-listings .post-listing-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Single Default Posts */

/* Hero */
.single-post-hero { position: relative; background-position: center; background-repeat: no-repeat; background-size: cover; overflow: hidden; }
.single-post-hero-overlay { position: absolute; inset: 0; background: var(--brand-1); opacity: 0.45; z-index: 0; }
.single-post-hero .container { position: relative; z-index: 1; }
.single-post-hero .column-content { max-width: 90rem; }
.single-post-hero h1 { margin-top: 0; color: #fff; }
.single-post-category { margin-bottom: 1rem; font-family: 'Montserrat', Helvetica, Arial, sans-serif; font-weight: 600; color: #fff; }
.single-post-category a { color: #fff; text-decoration: underline; }
.single-post-category a:hover { color: #fff; opacity: 0.6; }
.single-post-hero .button { margin-top: 2rem; }
.single-post-hero a.button { background: var(--brand-1) !important; color: #fff !important; border: 2px solid #fff !important; }
.single-post-hero a.button:hover { background: #fff !important; color: var(--brand-2) !important; border-color: #fff !important; }

/* Post layout */
.single-post-content, .single-post-meta { max-width: 100%; }
.single-post-meta { margin-bottom: 3rem; font-size: 90%; }
.single-post-meta a { color: var(--brand-1); text-decoration: underline; }
.single-post-meta a:hover { color: var(--brand-2); }
.single-post .breadcrumbs { padding-top: 0; }
.blog-grid { grid-template-columns: minmax(0, 2fr) minmax(28rem, 1fr); gap: 5rem; align-items: start; }

/* Sidebar */
.single-post-sidebar { min-width: 0; }
.single-post-sidebar .sticky { position: sticky; top: 3rem; }
.single-post-sidebar-section { margin-bottom: 3rem; padding: 3rem; }
.single-post-sidebar-section:last-child { margin-bottom: 0; }
.single-post-sidebar-section h3 { margin-top: 0; margin-bottom: 2rem; }

/* Key Takeaways */
.key-takeaways { background: var(--brand-1); color: #fff; border-radius: 5px; }
.key-takeaways h3, .key-takeaways p, .key-takeaways li, .key-takeaways strong, .key-takeaways em { color: #fff; }
.key-takeaways-content ul li { font-size: 80% !important; }
.single-post-sidebar .key-takeaways-content ul { list-style-type: disc !important; list-style-position: outside !important; padding-left: 2.5rem !important; margin: 0 !important; }
.single-post-sidebar .key-takeaways-content li { display: list-item !important; list-style-type: disc !important; padding-left: 0.5rem !important; margin: 0 0 1.5rem !important; }
.single-post-sidebar .key-takeaways-content li:last-child { margin-bottom: 0 !important; }
.single-post-sidebar .key-takeaways-content li::marker { color: #fff !important; }
.single-post-sidebar .key-takeaways .key-takeaways-content li a { display: inline; color: #fff !important; text-decoration: underline; border-bottom: 0 !important; }
.single-post-sidebar .key-takeaways .key-takeaways-content li a:hover { color: #fff !important; opacity: 0.6; }

/* Contents */
.post-contents { background: var(--brand-3); color: var(--brand-2); border-radius: 5px; }
.post-contents h3 { color: var(--brand-2); }
.post-contents ul { margin: 0; padding: 0; list-style: none; }
.post-contents ul li { font-size: 80% !important; }
.single-post-sidebar .post-contents li { margin: 0 0 2rem; padding: 0; border-bottom: 0; }
.single-post-sidebar .post-contents li:last-child { margin-bottom: 0; }
.single-post-sidebar .post-contents li a { display: inline; padding: 0; border-bottom: 0; color: var(--brand-2); line-height: 1.35; text-decoration: underline; }
.single-post-sidebar .post-contents li a:hover { color: var(--brand-2); opacity: 0.6; }

/* Share */
.share-post { background: transparent; border: 1px solid var(--brand-2); border-radius: 5px; }
.share-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.share-links a { display: inline-flex; align-items: center; justify-content: center; width: 4.5rem; height: 4.5rem; padding: 0; border-radius: 50%; background: var(--brand-1); color: #fff; text-decoration: none; }
.share-links a:hover { background: var(--brand-2); color: #fff; }
.share-links a i { font-size: 2rem; line-height: 1; }

/* Anchored headings */
.single-post-content h2 { scroll-margin-top: 4rem; }

/* Responsive */
@media (max-width: 900px) {
	.blog-grid { grid-template-columns: 1fr; gap: 4rem; }
	.single-post-sidebar .sticky { position: static; }
}

@media (max-width: 600px) {
	.single-post-sidebar-section { padding: 2rem; }
	.single-post-meta-separator { display: none; }
	.single-post-author, .single-post-date { display: block; }
	.single-post-date { margin-top: 0.5rem; }
}

/* Pagination */
.page-navigation { margin-top: 2rem; text-align: center; }

/* Captions */
p.wp-caption-text { background: var(--brand-2); padding: 1rem 2rem; box-sizing: border-box; display: inline-block; color: #fff; width: 100%; border-radius: var(--border-radius); }
div[id^="attachment_"] { max-width: 100% !important; width: 100% !important; }
div[id^="attachment_"] img { width: 100%; }
.alignleft .wp-caption-text,
.alignright .wp-caption-text { margin-bottom: 0 !important; }

/* Never Remove */
.wp-block { font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif; }

/* Block text colour override: when a block sets a Text Colour, headings and text follow it */
section.has-bg[style*=" color:"] :is(h1, h2, h3, h4, h5, h6, p, li, .h1, .h2, .h3, .h4) {
	color: inherit;
}
