/*
Theme Name: Lopalewski
Theme URI: https://new.lopalewski.com
Author: Zygmunt Lopalewski
Description: Custom theme for the Lopalewski photography portfolio and stories site.
Version: 0.1.34
Requires at least: 6.4
Requires PHP: 8.3
Text Domain: lopalewski
*/

html {
	box-sizing: border-box;
}

:root {
	--lop-header-h: 64px;
}

@media ( min-width: 640px ) {
	:root {
		--lop-header-h: 76px;
	}
}

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

body {
	margin: 0;
	background: var( --wp--preset--color--background );
	color: var( --wp--preset--color--foreground );
	font-family: var( --wp--preset--font-family--sans );
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* Footer always at the bottom of the screen: on short pages (Contact,
	   404) it would otherwise float mid-screen on tall phones. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

#content {
	flex: 1 0 auto;
}

img,
picture {
	max-width: 100%;
	display: block;
}

:focus-visible {
	outline: 2px solid var( --wp--preset--color--accent );
	outline-offset: 2px;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var( --wp--preset--color--background );
	color: var( --wp--preset--color--foreground );
	clip: auto;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	left: 0;
	top: 0;
	margin: 0;
	padding: 12px 20px;
	text-decoration: none;
	z-index: 100000;
}

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
