/**
 * Theme Name: Praesum Site
 * Description: Praesum Site Theme
 * Tested up to: 6.9
 * Requires PHP: 5.7
 * Version: 1.0.0
 * Text Domain: praesum-site
 */

//-----------------------------------------
// Global
//-----------------------------------------
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b,
strong {
	font-weight: var(--wp--custom--font-weight--bold);
}

img,
figure {
	max-width: 100%;
	height: auto;
}

/* Sticky header */
body:not(.wp-admin) header:has(>.is-position-sticky) {
	position: sticky;
	top: calc( 0px + var( --wp-admin--admin-bar--height, 0px ) );
	z-index: 100;
}

/* Account for admin bar on mobile */
@media (max-width: 600px) {

	header:has(>.is-position-sticky) {
		top: 0;
	}
}

/* Site header shadow */
header.wp-block-template-part {
	box-shadow: var(--wp--custom--shadow--header) rgba(var(--wp--custom--color--primary-rgb), 0.15);
}

/* Gallery slider */
.wp-theme-praesum-site :where(.gallery-slider-slide img) {
	border-radius: 16px;
}

.wp-theme-praesum-site :where(.gallery-slider-nav) {
	border-radius: 0.15em;
	box-shadow: none;
	opacity: 0.75;
	transition: opacity 600ms cubic-bezier(.4,0,.2,1);
}

.wp-theme-praesum-site :where(.gallery-slider-block) .gallery-slider-nav:focus-visible,
.wp-theme-praesum-site :where(.gallery-slider-block) .gallery-slider-nav:hover {
	box-shadow: none;
	opacity: 1;
}

.wp-theme-praesum-site :where(.gallery-slider-block) .gallery-slider-prev {
	left: 1rem;
}

.wp-theme-praesum-site :where(.gallery-slider-block) .gallery-slider-next {
	right: 1rem;
}

/* Praesum Gravity Forms font-size override */
.wp-site-blocks [id^="gform_wrapper_"].gform-theme--rmg-network input[type="submit"],
.wp-site-blocks [id^="gform_wrapper_"].gform-theme--rmg-network .gform_button {
	font-size: var(--wp--preset--font-size--small) !important;
}
