/* Orezero Gallery — Frontend CSS */

/* ── Base ───────────────────────────────────────────────────────────────── */
.ozgal { width:100%; box-sizing:border-box; }
.ozgal *, .ozgal *::before, .ozgal *::after { box-sizing:border-box; }
.ozgal-item { display:block; overflow:hidden; position:relative; }
.ozgal-item img { display:block; max-width:100%; }

/* ── Grid ───────────────────────────────────────────────────────────────── */
.ozgal-grid {
	display:grid;
	grid-template-columns: repeat(var(--ozgal-cols,3), 1fr);
	gap: var(--ozgal-gap-v,10px) var(--ozgal-gap-h,10px);
}
.ozgal-grid .ozgal-item img {
	width:100%;
	height:auto;
}

/* ── Masonry ────────────────────────────────────────────────────────────── */
.ozgal-masonry {
	columns: var(--ozgal-cols,3);
	column-gap: var(--ozgal-gap-h,10px);
}
.ozgal-masonry .ozgal-item {
	break-inside: avoid;
	margin-bottom: var(--ozgal-gap-v,10px);
}
.ozgal-masonry .ozgal-item img {
	width:100%;
	height:auto;
}

/* ── Carousel ───────────────────────────────────────────────────────────── */
.ozgal-carousel {
	position:relative;
	overflow:hidden;
	width:100%;
	user-select:none;
}
.ozgal-track {
	display:flex;
	align-items:center;
	transition:transform 0.4s cubic-bezier(.25,.46,.45,.94);
	will-change:transform;
}
.ozgal-carousel .ozgal-item {
	flex:0 0 auto;
	transition:transform 0.4s ease, opacity 0.4s ease;
	cursor:pointer;
	margin:0 4px;
}
.ozgal-prev, .ozgal-next {
	position:absolute;
	top:50%;
	transform:translateY(-50%);
	z-index:10;
	background:rgba(0,0,0,0.5);
	color:white;
	border:none;
	border-radius:50%;
	width:40px;
	height:40px;
	font-size:24px;
	line-height:1;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	transition:background 0.2s;
}
.ozgal-prev:hover, .ozgal-next:hover { background:rgba(0,0,0,0.75); }
.ozgal-prev { left:10px; }
.ozgal-next { right:10px; }
.ozgal-dots {
	display:flex;
	justify-content:center;
	gap:6px;
	margin-top:12px;
}
.ozgal-dot {
	width:8px; height:8px;
	border-radius:50%;
	background:#ccc;
	border:none;
	cursor:pointer;
	padding:0;
	transition:background 0.2s, transform 0.2s;
}
.ozgal-dot.active {
	background:#002868;
	transform:scale(1.3);
}

/* ── Hover effects ──────────────────────────────────────────────────────── */
.ozgal-item[data-hover="zoom"] { overflow:hidden; }
.ozgal-item[data-hover="zoom"] img { transition:transform 0.3s ease; }
.ozgal-item[data-hover="zoom"]:hover img { transform:scale(1.08); }

.ozgal-item[data-hover="darken"]::after {
	content:'';
	position:absolute;
	inset:0;
	background:rgba(0,0,0,0);
	transition:background 0.3s ease;
}
.ozgal-item[data-hover="darken"]:hover::after { background:rgba(0,0,0,0.35); }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.ozgal-lb {
	position:fixed;
	inset:0;
	z-index:99999;
	display:flex;
	align-items:center;
	justify-content:center;
}
.ozgal-lb-overlay {
	position:absolute;
	inset:0;
	background:rgba(0,0,0,0.88);
	cursor:pointer;
}
.ozgal-lb-inner {
	position:relative;
	z-index:1;
	max-width:90vw;
	max-height:90vh;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:10px;
}
.ozgal-lb-img {
	max-width:90vw;
	max-height:80vh;
	object-fit:contain;
	border-radius:4px;
	box-shadow:0 8px 40px rgba(0,0,0,0.6);
	animation:ozgalLbIn 0.2s ease both;
}
@keyframes ozgalLbIn {
	from { opacity:0; transform:scale(0.96); }
	to   { opacity:1; transform:scale(1); }
}
.ozgal-lb-caption {
	color:rgba(255,255,255,0.8);
	font-size:14px;
	font-family:sans-serif;
	text-align:center;
	max-width:600px;
}
.ozgal-lb-close {
	position:absolute;
	top:16px; right:16px;
	z-index:2;
	background:rgba(255,255,255,0.15);
	border:none;
	border-radius:50%;
	width:38px; height:38px;
	color:white;
	font-size:18px;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	transition:background 0.2s;
}
.ozgal-lb-close:hover { background:rgba(255,255,255,0.3); }
.ozgal-lb-prev, .ozgal-lb-next {
	position:absolute;
	top:50%; transform:translateY(-50%);
	z-index:2;
	background:rgba(255,255,255,0.12);
	border:none;
	border-radius:50%;
	width:46px; height:46px;
	color:white;
	font-size:28px;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	transition:background 0.2s;
}
.ozgal-lb-prev:hover, .ozgal-lb-next:hover { background:rgba(255,255,255,0.25); }
.ozgal-lb-prev { left:16px; }
.ozgal-lb-next { right:16px; }
