/**
 * Auto OnPageLoad Popup: core styles (fancyBox 2 fork)
 *
 * @copyright  Copyright (C) 2011 - 2026 JoomlaX. All rights reserved.
 * @license    GNU General Public License version 2 or later
 * @version    13.2
 */

.aolp-wrap,
.aolp-skin,
.aolp-outer,
.aolp-inner,
.aolp-image,
.aolp-wrap iframe,
.aolp-wrap object,
.aolp-nav,
.aolp-nav span,
.aolp-tmp {
	padding: 0;
	margin: 0;
	border: 0;
	outline: none;
	vertical-align: top;
}

.aolp-wrap {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8020;
}

.aolp-wrap:focus {
	outline: none;
}

.aolp-skin {
	position: relative;
	color: #444;
	text-shadow: none;
	border-radius: 4px;
}

.aolp-opened {
	z-index: 99999;
}

.aolp-outer,
.aolp-inner {
	position: relative;
}

.aolp-inner {
	overflow: hidden;
}

.aolp-type-iframe .aolp-inner {
	-webkit-overflow-scrolling: touch;
}

.aolp-error {
	color: #444;
	font: 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 15px;
	white-space: nowrap;
}

.aolp-image,
.aolp-iframe {
	display: block;
	width: 100%;
	height: 100%;
}

.aolp-image {
	max-width: 100%;
	max-height: 100%;
}

/* Loading indicator */

[id^="aolp-loading"] {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	margin-left: -22px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0.9;
	cursor: pointer;
	z-index: 8060;
}

[id^="aolp-loading"] div {
	width: 44px;
	height: 44px;
	background: url("../images/aolp_loading.gif") center center no-repeat;
	background-size: 24px 24px;
}

/* Close button */

.aolp-close {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	z-index: 8040;
}

.aolp-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
}

.aolp-close.aolp-close-sprite {
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

/* Gallery navigation (kept for grouped content) */

.aolp-nav {
	position: absolute;
	top: 0;
	width: 40%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	background: transparent url("../images/blank.gif");
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	z-index: 8040;
}

.aolp-prev {
	left: 0;
}

.aolp-next {
	right: 0;
}

.aolp-nav span {
	position: absolute;
	top: 50%;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font: bold 22px/36px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	z-index: 8040;
	visibility: hidden;
}

.aolp-prev span {
	left: 10px;
}

.aolp-prev span::before {
	content: "\2039";
}

.aolp-next span {
	right: 10px;
}

.aolp-next span::before {
	content: "\203A";
}

.aolp-nav:hover span,
.aolp-nav:focus-visible span {
	visibility: visible;
}

.aolp-tmp {
	position: absolute;
	top: -99999px;
	left: -99999px;
	visibility: hidden;
	max-width: 99999px;
	max-height: 99999px;
	overflow: visible !important;
}

/* Screen reader only text */

.aolp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Overlay helper */

.aolp-lock {
	width: auto;
	overflow: hidden;
}

.aolp-lock body {
	overflow: hidden !important;
}

.aolp-lock-test {
	overflow-y: hidden !important;
}

.aolp-overlay {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	display: none;
	z-index: 99998;
}

.aolp-overlay-fixed {
	position: fixed;
	bottom: 0;
	right: 0;
}

/* Title helper */

.aolp-title {
	visibility: hidden;
	font: normal 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: relative;
	text-shadow: none;
	z-index: 8050;
}

.aolp-opened .aolp-title {
	visibility: visible;
}

.aolp-title-float-wrap {
	position: absolute;
	bottom: 0;
	right: 50%;
	margin-bottom: -35px;
	z-index: 8050;
	text-align: center;
}

.aolp-title-float-wrap .child {
	display: inline-block;
	margin-right: -100%;
	padding: 2px 20px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 15px;
	text-shadow: 0 1px 2px #222;
	color: #fff;
	font-weight: bold;
	line-height: 24px;
	white-space: nowrap;
}

.aolp-title-outside-wrap {
	position: relative;
	margin-top: 10px;
	color: #fff;
}

.aolp-title-inside-wrap {
	padding-top: 10px;
}

.aolp-title-over-wrap {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	padding: 10px;
	background: rgba(0, 0, 0, 0.8);
}

/* Retina loading indicator */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
	only screen and (min-resolution: 144dpi) {
	[id^="aolp-loading"] div {
		background-image: url("../images/aolp_loading_2x.gif");
	}
}

/* Module specific */

.aolp-inner img {
	max-width: 100%;
}

.flat-close-btn {
	font-size: 40px;
	line-height: 36px;
	text-align: center;
	text-decoration: none !important;
	background: none !important;
	color: var(--aolp-close-color, #444);
}

.btn-top-right {
	top: 0;
	right: 0;
}

.btn-top-left {
	top: 0;
	left: 0;
}

.pg-top-right {
	top: 0;
	right: 10px;
	position: fixed;
	z-index: 100000;
}

.pg-top-left {
	top: 0;
	left: 10px;
	position: fixed;
	z-index: 100000;
}

.stickyElement.right_top {
	padding: 15px;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 9999;
}

.stickyElement.right_bottom {
	padding: 15px;
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: 9999;
}

.stickyElement.left_top {
	padding: 15px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
}

.stickyElement.left_bottom {
	padding: 15px;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 9999;
}

.stickyElement.vertical_right_center,
.stickyElement.vertical_left_center {
	position: fixed;
	top: 50%;
	z-index: 9999;
	display: inline-block;
	transform-origin: center center;
	margin: 0;
	padding: 10px;
	white-space: nowrap;
}

.stickyElement.vertical_right_center {
	transform: translateY(-50%) rotate(-90deg);
}

.stickyElement.vertical_left_center {
	transform: translateY(-50%) rotate(90deg);
}

.onclickLink-hide,
.aolp-none {
	display: none;
}

a.stickyElement {
	text-decoration: none;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.aolp-wrap.animate__animated {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
	}
}
