/* ─── LVL Gallery ─── */

/* Hide empty Oxygen wrapper when no images */
.oxy-lvl-gallery:empty {
	display: none;
}

.lvl-gallery {
	position: relative;
	width: 100%;
}

/* Swiper overrides */
.lvl-gallery .swiper {
	overflow: hidden;
}

/* Slide link */
.lvl-gallery__slide a {
	display: block;
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
	text-decoration: none;
	line-height: 0;
}

/* Swiper slides equal height */
.lvl-gallery .swiper-wrapper {
	align-items: stretch;
}

.lvl-gallery__slide {
	height: auto;
}

.lvl-gallery__slide a {
	height: 100%;
}

/* Image defaults */
.lvl-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lvl-gallery__slide a:hover img,
.lvl-gallery__slide a:focus-visible img {
	transform: scale(1.03);
}

/* Zoom icon overlay */
.lvl-gallery__zoom-icon {
	position: absolute;
	bottom: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.lvl-gallery__slide a:hover .lvl-gallery__zoom-icon,
.lvl-gallery__slide a:focus-visible .lvl-gallery__zoom-icon {
	opacity: 1;
}

/* ─── Navigation arrows ─── */
/* Matches existing .lvl-swiper-button / .swiper-nav pattern */

.lvl-gallery__nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 13px;
	position: absolute;
	z-index: 5;
	width: 100%;
	padding-left: 23px;
	padding-right: 23px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.lvl-gallery__nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: none;
	border-radius: 50%;
	background-color: #b0dde8;
	color: #1d3465;
	cursor: pointer;
	padding: 24px 16px;
	pointer-events: auto;
	transition: background-color 0.2s ease;
}

.lvl-gallery__nav button svg {
	width: 32px;
	height: 36px;
	fill: currentColor;
	flex-shrink: 0;
}

/* Prev arrow: rotate 180deg (same arrow icon, flipped) */
.lvl-gallery__prev {
	transform: rotate(180deg);
}

/* Disabled state */
.lvl-gallery__nav button:disabled,
.lvl-gallery__nav button.swiper-button-disabled {
	background-color: #f6f6f5;
	color: #b1dde8;
	cursor: not-allowed;
	pointer-events: all !important;
}

.lvl-gallery__nav button:focus-visible {
	outline: 2px solid #1d3465;
	outline-offset: 2px;
}

/* ─── Pagination bullets ─── */
/* Matches existing .image-swiper bullet pattern */

.lvl-gallery__pagination {
	display: none; /* hidden on desktop, shown on mobile */
	text-align: center;
	width: 100%;
	margin-top: 12px;
}

.lvl-gallery__pagination .swiper-pagination-bullet {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background-color: #b0dde8;
	opacity: 1;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	padding: 0;
	display: inline-block;
	margin: 0 4px;
	vertical-align: middle;
}

.lvl-gallery__pagination .swiper-pagination-bullet-active {
	width: 32px;
	border-radius: 1000px;
	background-color: #1e3464;
}

/* ─── Responsive: arrows on desktop, dots on mobile ─── */

@media (max-width: 767px) {
	.lvl-gallery__nav {
		display: none;
	}

	.lvl-gallery__pagination {
		display: block;
	}
}

/* ─── Focus / a11y ─── */

.lvl-gallery__slide a:focus-visible {
	outline: 2px solid #005fcc;
	outline-offset: 2px;
}

/* ─── PhotoSwipe caption ─── */

.pswp__custom-caption {
	font-size: 14px;
	color: #fff;
	text-align: center;
	padding: 8px 16px;
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	max-width: 80%;
	border-radius: 4px 4px 0 0;
}
