.elementor-widget-gallery_grid_wpjef {
	margin-top: 30px;
}

.itemGalleryGrid {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 25px;
}

.itemGalleryGrid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.0);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
	will-change: transform; 
}

.itemGalleryGrid:hover img {
	transform: scale(1.08);
}

/* ── Overlay hover ── */
.itemGalleryGrid-overlay {
	position: absolute;
	inset: 0;
	border-radius: 25px;
	background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 45%, transparent 100%);
	opacity: 0;
	transition: opacity 0.35s ease;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	pointer-events: none;
}

.itemGalleryGrid:hover .itemGalleryGrid-overlay {
	opacity: 1;
}

.itemGalleryGrid-title {
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	transform: translateY(6px);
	transition: transform 0.35s ease;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.itemGalleryGrid:hover .itemGalleryGrid-title {
	transform: translateY(0);
}

/* ── Lightbox ── */
.jef-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.jef-lightbox-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.jef-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.jef-lightbox-inner img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    user-select: none;
}

.jef-lightbox-info {
    margin-top: 14px;
    text-align: center;
    max-width: 700px;
}

.jef-lightbox-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.jef-lightbox-caption {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-top: 4px;
}

.jef-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.jef-lightbox-close svg {
    display: block;
}

.jef-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.jef-lightbox-nav:hover {
    background: rgba(255,255,255,0.28);
}

.jef-lightbox-prev { left: 20px; }
.jef-lightbox-next { right: 20px; }

.jef-lightbox-counter {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}