/*
	Theme Name: ap-pixels Theme v3
	Theme URI: https://ap-pixels.com/
	Author: Alfred Paier
	Author URI: https://ap-pixels.com/en/
	Description: Modern custom WordPress theme focused on visual storytelling, performance and immersive design.
	Version: 1.0
	License: GPL v2 or later for PHP code. Proprietary license for design assets, CSS, JS and media.
	License URI: https://www.gnu.org/licenses/gpl-2.0.html
	Text Domain: ap-pixels-theme-v3
	Tags: custom-theme, portfolio, photography, scrollytelling, premium
*/

/* Variables Start */
/* Variables End */

/* Global Start */
/* Global End */

/* Keyframes Start */
@keyframes siteLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}
/* Keyframes End */


body.is-loading {
    overflow: hidden;
}

.site-content {
    opacity: 1;
    transition: opacity 0.6s ease;
}

body.is-loading .site-content {
    opacity: 0;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #302f2e;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__spinner {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(209, 154, 81, 0.12);
    border-top-color: rgba(209, 154, 81, 0.75);
    border-radius: 50%;
    animation: siteLoaderSpin 0.8s linear infinite;
}

/* Orientation Lock Start */
.orientation-lock {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(7, 9, 13, 0.96);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.35s ease,
		visibility 0.35s ease;
}

.orientation-lock.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.orientation-lock__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 320px;
	color: #f3f1eb;
}

.orientation-lock__card h2 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.4rem;
	line-height: 1.2;
}

.orientation-lock__card p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(243, 241, 235, 0.78);
}

.orientation-lock__phone {
	position: relative;
	width: 70px;
	height: 120px;
	border: 3px solid rgba(255, 255, 255, 0.9);
	border-radius: 18px;
	transform-origin: center center;
	animation: rotateDevice 1.8s ease-in-out infinite;
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

.orientation-lock__phone-screen {
	position: absolute;
	inset: 8px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
}

@keyframes rotateDevice {
	0%,
	20% {
		transform: rotate(0deg);
	}
	35%,
	85% {
		transform: rotate(90deg);
	}
	100% {
		transform: rotate(90deg);
	}
}
/* Orientation Lock End */