/*
Theme Name: IHS Block Theme
Theme URI: 
Author: Yoko Co
Author URI: 
Description: A modern, custom theme from the team at Yoko Co.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoko-ihs-main
Tags: 

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

/*************************************************************/
/*************** Gutenberg and FSE quirk fixes ***************/
/*************************************************************/

/* Fixes default gaps between blocks when stacking groups or rows at the highest level */

:where(.wp-site-blocks) > * {margin-block-start: 0; margin-block-end: 0;}


/*************************************************************/
/************ Utility classes for responsive fixes ***********/
/*************************************************************/

/* Handles responsive left-right padding by default by target top level groups. Can be undone by using .esc-pad class on a top level group */

@media screen and (max-width: 1240px) {
.wp-site-blocks > .wp-block-group:not(.esc-pad), 
.wp-site-blocks > .wp-block-template-part > .wp-block-group:not(.esc-pad), 
.wp-block-template-part > .wp-block-template-part > .wp-block-group:not(.esc-pad), 
.wp-block-template-part > .wp-block-template-part > .wp-block-template-part > .wp-block-group:not(.esc-pad), .wp-site-blocks > .entry-content > .wp-block-group:not(.esc-pad) 
{
    padding-left: 20px; 
    padding-right: 20px;
}
}
 
/* utility classes for responsive layouts on medium devices */

@media screen and (max-width: 1024px) {
    body .is-layout-flex.md-reverse {flex-direction: row-reverse; justify-content: flex-end;} 
    body .is-layout-flex.md-stack {flex-direction: column;}  
    body .is-layout-flex.md-stack.md-reverse {flex-direction: column-reverse; justify-content: flex-end;} 
    body .is-layout-flex.md-stack  > :is(*, div) {display: block; width: 100%; margin-left: 0; margin-right: 0;} 
    body .wp-block-columns.is-layout-flex.md-reverse {flex-direction: column-reverse; justify-content: flex-end;}
}

/* utility classes for responsive layouts on small devices */
@media screen and (max-width: 781px) {
    body .is-layout-flex.mobile-reverse, body .is-layout-flex.sm-reverse {flex-direction: row-reverse; justify-content: flex-end;} 
    body .is-layout-flex.mobile-stack, body .is-layout-flex.sm-stack {flex-direction: column;} 
    body .is-layout-flex.mobile-stack.mobile-reverse, body .is-layout-flex.sm-stack.sm-reverse {flex-direction: column-reverse; justify-content: flex-end;} 
    body .is-layout-flex.mobile-stack  > :is(*, div), body .is-layout-flex.sm-stack  > :is(*, div) {display: block; width: 100%; margin-left: 0; margin-right: 0;} 
    body .wp-block-columns.is-layout-flex.mobile-reverse, body .wp-block-columns.is-layout-flex.sm-reverse {flex-direction: column-reverse; justify-content: flex-end;}
}

/****************************************************/
/************* hover default effects ***************/
/****************************************************/

/* BUTTON BLOCK */
.wp-block-button:not(.is-style-simple) .wp-block-button__link {
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.wp-block-button:not(.is-style-simple) .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--contrast-tint);
	background-color: var(--wp--preset--color--contrast-tint);
	color: var(--wp--preset--color--contrast-heading);
}
.wp-block-button.is-style-alt-fill .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
}
.wp-block-button.is-style-reverse-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--core-tint);
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast-tint);
}
/****/

/* LOGINOUT BLOCK / ALT STYLE */
.wp-block-loginout.is-style-alt,
.wp-block-loginout.is-style-alt > a {
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.wp-block-loginout.is-style-alt:hover {
	border-color: var(--wp--preset--color--contrast-tint);
	background-color: var(--wp--preset--color--contrast-tint);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M13.125 5C13.125 6.72589 11.7259 8.125 10 8.125C8.27414 8.125 6.87503 6.72589 6.87503 5C6.87503 3.27411 8.27414 1.875 10 1.875C11.7259 1.875 13.125 3.27411 13.125 5Z' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3.75098 16.7652C3.80956 13.3641 6.58492 10.625 10 10.625C13.4152 10.625 16.1906 13.3642 16.2491 16.7654C14.3468 17.6383 12.2304 18.125 10.0003 18.125C7.77003 18.125 5.65344 17.6383 3.75098 16.7652Z' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.wp-block-loginout.is-style-alt:hover > a {
	color: var(--wp--preset--color--contrast-heading);
}
/****/

/* GROUP BLOCK / CARD STYLES */
.is-style-card,
.is-style-card img,
.is-style-alt-card,
.is-style-outline-card {
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.is-style-card.is-linked:hover .is-style-card-title a {
	text-decoration: underline;
}
.is-style-card.is-linked :is(.wp-block-image, .wp-block-cover, .wp-block-post-featured-image):has(> img) {
	overflow: hidden;
}
.is-style-card.is-linked:hover img {
	transform: scale(1.04);
}

@media screen and (min-width: 769px) {
	.is-style-alt-card:has(.wp-block-buttons),
	.is-style-outline-card:has(.wp-block-buttons) {
		overflow: hidden;
	}
	.is-style-alt-card:has(.wp-block-buttons) > .wp-block-group,
	.is-style-outline-card:has(.wp-block-buttons) > .wp-block-group {
		-webkit-transition: top 0.3s;
		transition: top 0.3s;
	}
	.is-style-alt-card:has(.wp-block-buttons) .wp-block-buttons,
	.is-style-outline-card:has(.wp-block-buttons) .wp-block-buttons {
		-webkit-transition: bottom 0.3s;
		transition: bottom 0.3s;
	}
	.is-style-alt-card:has(.wp-block-buttons) > .wp-block-group,
	.is-style-outline-card:has(.wp-block-buttons) > .wp-block-group {
		position: relative;
		top: 0px;
	}
	.is-style-alt-card:has(.wp-block-buttons):hover > .wp-block-group,
	.is-style-outline-card:has(.wp-block-buttons):hover > .wp-block-group {
		top: -55px;
	}
	.is-style-alt-card .wp-block-buttons,
	.is-style-outline-card .wp-block-buttons {
		position: absolute;
		bottom: calc(-1 * (var(--wp--preset--spacing--50) + 55px));
	}
}
@media screen and (max-width: 768px) {
	.is-style-alt-card .wp-block-buttons,
	.is-style-outline-card .wp-block-buttons {
		position: relative;
		left: calc(-1 * var(--wp--preset--spacing--50));
		bottom: calc(-1 * var(--wp--preset--spacing--50));
	}
}
/****/

/* LIST BLOCK / ALT STYLES */
.wp-block-list.is-style-alt > li a {
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}
.wp-block-list.is-style-alt > li:hover a {
	padding-left: var(--wp--preset--spacing--20);
	background-position: right 0px center;
	color: inherit;
	text-decoration: underline;
}
/****/

/****************************************************/
/**************** Misc adjustments ******************/
/****************************************************/
 
/* Fixes default gaps when using prefixes on MFBPro */

.wp-block-mfb-meta-field-block.is-display-inline-block .prefix {
    margin-inline-end: var(--mfb--gap, 0);
}

.wp-block-post-terms p {
	display: inline-block;
	margin: 0px;
}

.swiper-slide {
	height: unset;
}

body .seopress-user-consent {
	padding: 10px 20px;
}
body .seopress-user-consent p {
	font-size: var(--wp--preset--font-size--small);
}
body .seopress-user-consent button {
	border-radius: var(--wp--preset--border-radius--minimal);
	padding: 5px 10px;
	min-width: auto;
}
body .seopress-user-consent button:hover {
	box-shadow: none;
	transform: none;
}
body #seopress-user-consent-close {
	border-color: #052f48 !important;
}

@media screen and (min-width: 769px) {
	:target {
    		scroll-margin-top: 175px;
	}
}

@media screen and (max-width: 768px) {
	.wp-block-table {
		width: 100%;
		overflow-x: auto;
	}
	.wp-block-table table {
		width: 100%;
		min-width: 1000px;
		border-collapse: collapse;
	}
}

/****************************************************/
/********************* SSO STUFF ********************/
/****************************************************/

body:not(.logged-in).restricted-content.page-template-default .wp-block-post-content,
body.current-user-is-restricted.restricted-content.page-template-default .wp-block-post-content {
	max-width: 1200px;
	margin: 0 auto;
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

/* HIDE BLOCK / CURRENT USER RESTRICTED */
body.current-user-is-restricted .hide-restricted,
.type-faq.wp-block-post.current-user-is-restricted {
	display: none !important;
}
/****/
