/*
 * Compatibility and modernisation layer (loaded after style.css).
 * Replaces the old FontAwesome icons, jQuery/Superfish menus and
 * JS-only checkbox styling with plain CSS.
 */

/* ----- Icons: no icon font needed any more ----- */
.icon { font-family: inherit; }

/* ----- Form controls: main.css removes the native look of everything ----- */
input[type="checkbox"],
input[type="radio"] {
	-webkit-appearance: auto;
	appearance: auto;
	width: auto;
	margin-right: 0.5em;
}
select {
	-webkit-appearance: auto;
	appearance: auto;
}
.smt-field input[type="checkbox"] { width: auto; }
.comment-form-cookies-consent { clear: both; }
.comment-form .form-submit { margin-bottom: 0; }

/* The search submit button is a background image, hide the (empty) label */
form .search-box input[type="submit"] { font-size: 0; color: transparent; text-shadow: none; box-shadow: none; }
.headersearch .search-box.is-open { display: block; }
#search-trigger:focus-visible { outline: 2px solid #fff; border-radius: 50%; }

/* ----- Accessibility helpers ----- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #163450;
	display: block;
	height: auto;
	left: 6px;
	padding: 12px 20px;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* ----- Navigation ----- */
@media only screen and (min-width: 1024px) {
	ul.nav-menu li:hover > ul,
	ul.nav-menu li:focus-within > ul { display: block; }
	header ul.nav-menu > li ul { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
}
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { text-decoration: underline; }

@media only screen and (max-width: 1023px) {
	.mobile-menu.is-open { display: block; overflow-y: auto; }
	.mobile-menu ul.nav-menu > li ul,
	.mobile-menu ul.nav-menu > li ul.sub-menu { display: block; position: static; }
	.mobile-menu .menu-container,
	.mobile-menu > div { padding-top: 70px; }
	#mobile-menu-trigger.active svg { display: none; }
	body.menu-open { overflow: hidden; }
}

/* ----- Slider ----- */
.slider .fp-slides-item:first-child { display: none; }
.slider .fp-slides-item.is-active { display: block; }
.fp-thumbnail img { width: 100%; height: auto; display: block; }
.fp-nav { text-align: right; padding: 0 20px 12px; box-sizing: border-box; pointer-events: none; }
.fp-pager { pointer-events: auto; }
.fp-pager a {
	background: #fff;
	border-radius: 50%;
	opacity: 0.55;
	margin: 0 0 0 8px;
}
.fp-pager a:hover,
.fp-pager a.activeSlide { opacity: 1; background: #ff993e; }
.fp-prev-next-wrap a { display: block; }

/* ----- Content ----- */
.more-link {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 60px;
	text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.4);
	box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.2);
	background: #90d9ec;
	color: #fff;
	font-size: 12px;
	text-decoration: none;
}
.more-link:hover { background: #5c919f; color: #fff; }
.page-header { margin-bottom: 30px; }
.page-header .page-title { margin-top: 0; padding-bottom: 5px; font-family: "oleo_scriptbold"; color: #ff993e; font-size: 26px; text-transform: none; }
.entry-tags { clear: both; }
.sticky { display: block; }
.bypostauthor > .comment-body .comment-author-name { font-weight: bold; }
.reply a { font-size: 12px; text-transform: uppercase; }
.post-navigation .nav-links,
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 30px; clear: both; }
.smt_errors { color: #c0392b; }
.wp-caption, .wp-block-image figure { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: 12px; text-align: center; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image img { height: auto; }
.smt-social-profiles img { margin: 0 4px 4px 0; vertical-align: middle; }
.widget_smt_posts .post-date .month { font-size: 11px; }

/* ----- Footer columns: width depends on the number of widgets ----- */
@media only screen and (min-width: 801px) {
	footer .footer-columns .widget {
		width: calc((102% - 2% * var(--smt-cols, 3)) / var(--smt-cols, 3));
	}
	footer .footer-columns .widget:last-of-type { margin-right: 0; }
}

/* ----- Share box ----- */
#smthemes_share .inner[hidden] { display: none; }
#smthemes_share img { max-width: 32px; height: auto; }
#smthemes_share a { text-decoration: none; color: #4c4c4c; }
#smthemes_share .inner { display: block; }
#smthemes_share.is-closed { display: none; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
