/* ==========================================================================
   Masonry restyle for the native WordPress [gallery] shortcode.
   WP's default inline gallery styles are disabled via the
   'use_default_gallery_style' filter (see inc/gallery.php) so these rules
   have a clean slate to work with.
   ========================================================================== */

.gallery {
	column-count: 3;
	column-gap: 20px;
	margin: 0 0 40px;
}

.gallery .gallery-item {
	display: inline-block;
	width: 100%;
	break-inside: avoid;
	margin: 0 0 20px;
}

.gallery .gallery-icon {
	margin: 0;
}

.gallery .gallery-icon a {
	display: block;
	cursor: zoom-in;
}

.gallery .gallery-icon img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	transition: transform .35s ease;
}

.gallery .gallery-item:hover .gallery-icon img {
	transform: scale(1.02);
}

/* Captions hidden — category/product pages are image-only per design */
.gallery .gallery-caption {
	display: none;
}

@media (max-width: 900px) {
	.gallery { column-count: 2; }
}
@media (max-width: 520px) {
	.gallery { column-count: 1; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
#bng-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(46, 42, 38, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 6vh 6vw;
}
#bng-lightbox.is-open { display: flex; }

#bng-lightbox img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

#bng-lightbox .bng-lightbox-close,
#bng-lightbox .bng-lightbox-prev,
#bng-lightbox .bng-lightbox-next {
	position: fixed;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease;
}
#bng-lightbox .bng-lightbox-close:hover,
#bng-lightbox .bng-lightbox-prev:hover,
#bng-lightbox .bng-lightbox-next:hover {
	background: rgba(255,255,255,0.25);
}

#bng-lightbox .bng-lightbox-close { top: 24px; right: 24px; }
#bng-lightbox .bng-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
#bng-lightbox .bng-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
	#bng-lightbox .bng-lightbox-prev,
	#bng-lightbox .bng-lightbox-next { width: 40px; height: 40px; }
}
