/* IPH Product Gallery — grid + lightbox */

.iph-gallery {
	display: grid;
	gap: 20px;
	margin: 0;
}

.iph-gallery__item {
	padding: 0;
	margin: 0;
	border: none;
	background: #ededed;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.iph-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;   /* product centered with padding, like the reference */
/* 	padding: 8%; */
	box-sizing: border-box;
	transition: transform 0.3s ease;
}

.iph-gallery__item:hover img {
	transform: scale( 1.04 );
}

/* Inline video cell — plays in place, no lightbox */
.iph-gallery__video {
	background: #000;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.iph-gallery__video video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	display: block;
}

/* ---------- Lightbox ---------- */
.iph-lightbox {
	position: fixed;
	inset: 0;
	background: rgba( 14, 24, 14, 0.92 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease;
}
.iph-lightbox.open {
	opacity: 1;
	visibility: visible;
}
.iph-lightbox__img {
	max-width: 90vw;
	max-height: 86vh;
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.5 );
}
.iph-lightbox__btn {
	position: absolute;
	background: rgba( 255, 255, 255, 0.92 );
	color: #14251a;
	border: none;
	cursor: pointer;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.iph-lightbox__btn:hover { background: #fff; }
.iph-lightbox__close { top: 20px; right: 20px; }
.iph-lightbox__prev { left: 20px; top: 50%; transform: translateY( -50% ); }
.iph-lightbox__next { right: 20px; top: 50%; transform: translateY( -50% ); }

@media ( max-width: 600px ) {
	.iph-lightbox__prev { left: 10px; }
	.iph-lightbox__next { right: 10px; }
}
