/*!
Theme Name: Ostgard
Theme URI: https://ostgard.no
Author: Gnist Design
Author URI: https://ostgard.no
Description: A  FSE theme for Ostgard.
Tags: full-site-editing, block-patterns, accessibility-ready, block-styles, custom-colors, custom-logo, custom-menu, editor-style one-column, template-editing, translation-ready, wide-blocks
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.2
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ostgard
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Global Normalizer */
@-ms-viewport {
	width: device-width;
}

@viewport {
	width: device-width;
}

html {
	box-sizing: border-box;
	-ms-overflow-style: scrollbar;
	scroll-behavior: smooth;

}

body {
	overflow-x: hidden;
}

@media (max-width: 900px) {

	html,
	body {
		overflow-x: hidden;
	}

}

a {
	text-underline-offset: 3px;
	text-decoration-thickness: 0.8px;
	transition: all 250ms ease-in-out;

}

*,
*::before,
*::after {
	box-sizing: inherit;
	min-width: 0;
	font-synthesis: none !important;
}

strong {
	font-weight: 600;
}

/* FSE Fix for images. */
figure img {
	width: 100%;
	object-fit: contain;
}

/* Single employee */

.single-ansatte {
	.gost-employee-details__item--title span {
		color: #272725;
	}

	.gost-employee-details__item--mobile a,
	.gost-employee-details__item--email a {
		font-size: 18px;
		text-decoration: underline;

		&:hover,
		&:focus {
			text-decoration: none;
			color: var(--wp--preset--color--custom-r-d);
		}
	}
}

/* Truncate breadcrumbs */

@media all and (max-width: 767px) {
	.breadcrumbs span.current-item[property="name"] {
		display: inline-block;
		max-width: 280px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		vertical-align: bottom;
	}

	.smaller-on-mobile {
		max-width: 150px;
	}
}
