/**
 * bn-gallery.css — layout-ul galeriilor ca în legacy:
 * foto = speasyimagegallery (grid 4 coloane, overlay titlu la hover,
 *        lightbox la click), video = 2 coloane de iframe YouTube 300px.
 */

/* --- Galerie foto --- */
.bn-foto-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.bn-foto-item {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;
}

.bn-foto-thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.bn-foto-item:hover .bn-foto-thumb {
	transform: scale(1.04);
}

.bn-foto-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.bn-foto-item:hover .bn-foto-cap {
	opacity: 1;
}

/* Lightbox (bn-gallery.js) */
.bn-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.bn-lightbox img {
	max-width: 92vw;
	max-height: 82vh;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.bn-lightbox .bn-lightbox-cap {
	color: #fff;
	margin-top: 12px;
	font-size: 15px;
}

.bn-lightbox .bn-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 34px;
	color: #fff;
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 1;
}

.bn-lightbox .bn-lightbox-prev,
.bn-lightbox .bn-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 40px;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 4px;
	padding: 4px 14px;
	cursor: pointer;
}

.bn-lightbox .bn-lightbox-prev { left: 12px; }
.bn-lightbox .bn-lightbox-next { right: 12px; }

/* --- Galerie video --- */
.bn-video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.bn-video iframe {
	width: 100%;
	height: 300px;
	display: block;
}

@media (max-width: 800px) {
	.bn-foto-grid { grid-template-columns: repeat(2, 1fr); }
	.bn-video-grid { grid-template-columns: 1fr; }
}
