/* Custom Gallery Widget — base structural styles.
   Colours / spacing / radius are handled by Elementor controls. */

.ngw-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ngw-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;
}

.ngw-gallery__link {
	display: block;
	line-height: 0;
}

.ngw-gallery__media {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
}

.ngw-gallery__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

/* Natural mode: don't force equal heights */
.ngw-gallery--natural .ngw-gallery__media img {
	height: auto;
}

/* Zoom on hover */
.ngw-gallery--zoom .ngw-gallery__item:hover .ngw-gallery__media img {
	transform: scale(1.08);
}

/* Hover overlay */
.ngw-gallery__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	transition: opacity 0.35s ease;
}

.ngw-gallery__item:hover .ngw-gallery__overlay {
	opacity: 1;
}

.ngw-gallery__overlay svg {
	width: 26px;
	height: 26px;
	fill: #fff;
}

/* Caption */
.ngw-gallery__caption {
	margin-top: 8px;
	line-height: 1.4;
}

/* Lightbox-only links: kept in the DOM and technically rendered (so
   Elementor's lightbox counts them in the slideshow), but pushed far
   off-screen so visitors never see them. Do NOT use display:none or
   overflow-clip them to 0 height — Elementor's slideshow builder skips
   links that fail jQuery's :visible test (display:none / zero-box). */
.ngw-gallery__lightbox-extra {
	position: absolute !important;
	left: -99999px;
	top: 0;
	width: 10px;
	pointer-events: none;
}

.ngw-gallery__lightbox-extra .ngw-gallery__hidden-link {
	display: block;
	width: 10px;
	height: 10px;
}

/* --- Lightbox navigation arrows ---
   On pages where Elementor's icon font (eicons) isn't loaded, the prev/next
   buttons render as invisible (but still clickable) zones — no visible arrow.
   We hide the native glyph and draw our own font-independent CSS chevrons,
   so the arrows are always visible regardless of the icon font. */
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next {
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
	/* Force correct placement: the buttons were rendering with position:static,
	   which dropped them out of the slideshow and far down/left, off-screen. */
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	height: auto !important;
	width: 15% !important;
	min-width: 60px;
	margin: 0 !important;
	z-index: 10 !important;
	align-items: center !important;
}

.elementor-lightbox .elementor-swiper-button-prev {
	left: 0 !important;
	right: auto !important;
	justify-content: flex-start !important;
	padding-left: 30px !important;
}

.elementor-lightbox .elementor-swiper-button-next {
	right: 0 !important;
	left: auto !important;
	justify-content: flex-end !important;
	padding-right: 30px !important;
}

.elementor-lightbox .elementor-swiper-button-prev i,
.elementor-lightbox .elementor-swiper-button-prev svg,
.elementor-lightbox .elementor-swiper-button-next i,
.elementor-lightbox .elementor-swiper-button-next svg {
	display: none !important;
}

.elementor-lightbox .elementor-swiper-button-prev::after,
.elementor-lightbox .elementor-swiper-button-next::after {
	content: "";
	display: inline-block;
	padding: 9px;
	border: solid #ffffff;
	border-width: 0 3px 3px 0;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.elementor-lightbox .elementor-swiper-button-next::after {
	transform: rotate(-45deg); /* points right */
}

.elementor-lightbox .elementor-swiper-button-prev::after {
	transform: rotate(135deg); /* points left */
}
