/*
Theme Name: Aveeros
Theme URI:
Author:
Author URI:
Description: Custom theme for Aveeros.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aveeros
*/

/* Keep the fixed nav below the WordPress admin bar when logged in. */
.admin-bar nav[data-nav-menu] {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar nav[data-nav-menu] {
		top: 46px;
	}
}

/* Offset in-page anchor jumps (#features, #video, ...) for the fixed 80px nav. */
html {
	scroll-padding-top: 80px;
}

/* Logged in: the nav sits below the admin bar, so add its height too. */
html:has(body.admin-bar) {
	scroll-padding-top: 112px;
}

@media screen and (max-width: 782px) {
	html:has(body.admin-bar) {
		scroll-padding-top: 126px;
	}
}

/* Smooth-scroll to in-page anchors, unless the visitor prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Contact form: visually hidden honeypot and busy submit button. */
.aveeros-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

form[aria-busy="true"] button[type="submit"] {
	opacity: 0.6;
	cursor: wait;
}

/* Events page lightbox (assets/js/events.js). */
.aveeros-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.85);
	cursor: zoom-out;
}

.aveeros-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
