/**
 * "Galeri" (Ürün Çeşitlerimiz) front-end photo wall — rewritten from scratch
 * (2026-09-08) as a plain CSS Grid with a forced, uniform card aspect ratio.
 *
 * Two earlier versions of this file relied on layout engines whose per-photo
 * height varies with the source image (CSS Grid/Flex sized by the image's own
 * intrinsic height, then the theme's real jQuery Masonry) — both produced
 * ragged, inconsistent row heights once tested against the real 99-photo
 * gallery (a mix of portrait product pouches, landscape bar shots, square jar
 * shots; WooCommerce's own `woocommerce_thumbnail` size is registered
 * "uncropped", so it never normalizes this). User explicitly rejected that
 * and asked for standard/uniform card height. Fix: every `.mbc-gallery-card`
 * is forced to the same `aspect-ratio`, and its `<img>` is absolutely
 * positioned inside with `object-fit: cover` — the photo is center-cropped to
 * fill the card, so height is identical across every card regardless of the
 * source photo's own dimensions. Column count is a deliberate, fixed value
 * per breakpoint (not an auto-fit reflow) so both desktop and mobile always
 * show a clean, evenly-filled grid rather than however many happen to fit.
 */
.mbc-gallery-wall {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 24px;
	padding: 0 0 10px;
}

.mbc-gallery-card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f5f0e6;
}

.mbc-gallery-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease;
}

.mbc-gallery-card:hover img {
	transform: scale(1.06);
}

.mbc-gallery-zoom {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 14, 15, 0);
	transition: background 0.25s ease;
}

.mbc-gallery-card:hover .mbc-gallery-zoom {
	background: rgba(15, 14, 15, 0.35);
}

.mbc-gallery-zoom i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 20px;
	transform: scale(0);
	transition: transform 0.25s ease;
}

.mbc-gallery-card:hover .mbc-gallery-zoom i {
	transform: scale(1);
}

/* Default (wide desktop): 4 cards per row. Narrower desktop/large tablet: 3. */
@media (max-width: 1300px) {
	.mbc-gallery-wall {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Tablet/large mobile: 2 cards per row. */
@media (max-width: 900px) {
	.mbc-gallery-wall {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px 14px;
	}
}

/* Mobile: 2 cards per row — a bare photo wall reads better as a compact grid
   than as one full-width image per row, and this still comfortably clears a
   phone's tap-target size. */
@media (max-width: 420px) {
	.mbc-gallery-wall {
		gap: 12px 10px;
	}
	.mbc-gallery-zoom i {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
}
