/*
 * 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: 3rem;
	--button-border-radius: 3rem;
	--grid-gap: 4rem;
}

/* Presets */
* {
	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;
}

.container.full-width-90 { width: 90%; max-width: 90%; }


.container .container {
	padding: 0;
	margin: 0;
}
@media screen and (max-width: 1024px) {
	.container {
		max-width: 85%;
	}
}

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

/* Buttons */
.button-block.bottom { position: absolute; bottom: 6rem; }
p + .button-block, img + .button-block { margin-top: 2rem; }
a.button,
a.toast-primary-button,
a.toast-secondary-button,
a.toast-tertiary-button {
	padding: 1.25rem 2rem;
	display: inline-block;
	text-decoration: none;
	line-height: 1;
	border: 1px solid inherit;
	border-radius: .25rem;
}
a.display-block {
	padding: 0.75rem 2rem;
	color: #ffffff;
	display: block;
}

/* 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;  }


p + a.toast-primary-button, p + a.toast-secondary-button, p + a.toast-tertiary-button { margin-top: 2rem; }

/* Buttons with Backgrounds */
.bg1 a.toast-primary-button { background: var(--brand-2); }
.bg3 a.toast-primary-button,
.bg4 a.toast-primary-button,
.bg5 a.toast-primary-button,
.bg6 a.toast-primary-button,
.bg7 a.toast-primary-button,
.bg8 a.toast-primary-button { background: var(--brand-1); }

/*.has-bg a.toast-primary-button  { background: trans; color: #fff;  }
.has-bg a.toast-primary-button:hover  { background: var(--brand-3); }*/



.bg2 a.toast-primary-button:hover,
.bg3 a.toast-primary-button:hover,
.bg4 a.toast-primary-button:hover,
.bg5 a.toast-primary-button:hover,
.bg6 a.toast-primary-button:hover,
.bg7 a.toast-primary-button:hover,
.bg8 a.toast-primary-button:hover {
	background: rgba(0, 0, 0, 0.4);
}
.bg1 a.toast-primary-button { background: var(--brand-3); color: #fff; border: 1px solid var(--brand-3); }
.bg1 a.toast-primary-button:hover { background: #fff; color: var(--brand-1); border: 1px solid #fff; }


/* Toast Secondary Button */
.bg1 a.toast-secondary-button { background: var(--brand-3); }
.bg2 a.toast-secondary-button,
.bg3 a.toast-secondary-button,
.bg4 a.toast-secondary-button,
.bg5 a.toast-secondary-button,
.bg6 a.toast-secondary-button,
.bg7 a.toast-secondary-button,
.bg8 a.toast-secondary-button { background: var(--brand-4); }

.bg1 a.toast-secondary-button:hover,
.bg2 a.toast-secondary-button:hover,
.bg3 a.toast-secondary-button:hover,
.bg4 a.toast-secondary-button:hover,
.bg5 a.toast-secondary-button:hover,
.bg6 a.toast-secondary-button:hover,
.bg7 a.toast-secondary-button:hover,
.bg8 a.toast-secondary-button:hover {
	background: rgba(0, 0, 0, 0.4);
}

/* Toast Tertiary Button */
.bg1 a.toast-tertiary-button { background: var(--brand-5); }
.bg2 a.toast-tertiary-button,
.bg3 a.toast-tertiary-button,
.bg4 a.toast-tertiary-button,
.bg5 a.toast-tertiary-button,
.bg6 a.toast-tertiary-button,
.bg7 a.toast-tertiary-button,
.bg8 a.toast-tertiary-button { background: var(--brand-6); }

.bg1 a.toast-tertiary-button:hover,
.bg2 a.toast-tertiary-button:hover,
.bg3 a.toast-tertiary-button:hover,
.bg4 a.toast-tertiary-button:hover,
.bg5 a.toast-tertiary-button:hover,
.bg6 a.toast-tertiary-button:hover,
.bg7 a.toast-tertiary-button:hover,
.bg8 a.toast-tertiary-button:hover {
	background: rgba(0, 0, 0, 0.4);
}

/* Button Options */
a.toast-primary-button { background: transparent; color: var(--brand-1); border: 1px solid var(--brand-1); padding: 1.5rem 2rem; position: relative; margin-top: 3rem;  }
/*a.toast-primary-button:after { content:""; position: absolute; top: 50%;  transform: translateY(-50%); right: 2rem; display: block; height: 2.5rem; width: 2.5rem; background: transparent url(https://serprocket.ai/wp-content/uploads/button-icon.png) center center no-repeat; background-size: cover; }*/
a.toast-primary-button:hover { background: var(--brand-1); color: #fff;  }
a.toast-secondary-button { background: var(--brand-2); }
a.toast-secondary-button:hover { background: var(--brand-3); }
a.toast-tertiary-button { background: var(--brand-3); }
a.toast-tertiary-button:hover { background: var(--brand-4); }

/* Formatting */
img.toast-round-image {
	border-radius: 100%;
}
img.toast-image-shadow {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

/* Post Listings */
.post-listings {
	grid-template-columns: repeat(auto-fit, minmax(34rem, 1fr));
}
.post-listing {
	position: relative;
	box-shadow: 0 10px 10px var(--shadow);
	border-radius: 10px;
	overflow: hidden;
}
.post-listing .post-listing-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.post-listing .post-listing-content {
	padding: 2rem;
}

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

/* WYSIWYG Formats */
ul.toast-boxed-list {
	background: var(--brand-8);
	padding: 2rem 2rem 1rem 2rem;
	list-style: inside;
}
p.toast-alert-paragraph {
	background: var(--brand-1);
	color: #fff;
	padding: 2rem 2rem 2rem 14rem;
	margin: 4rem 0;
	position: relative;
	border-radius: 1rem;
	grid-gap: 2rem;
	position: relative;
}
p.toast-alert-paragraph:before {
	content: "";
	display: block;
	background: transparent url('/wp-content/themes/toast/assets/images/warning.svg') center center no-repeat;
	background-size: contain;
	height: 8rem;
	width: 8rem;
	margin-right: 2rem;
	position: absolute; left: 3rem; top: 2rem; 
}

/* 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: 0 0 2rem 2rem;
}
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;
}
