/* =========================================================================
 * GARRY – Foto carousel  (frontend styly)
 * ========================================================================= */

.gfc {
	--gfc-h: 320px;
	--gfc-gap: 8px;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.gfc-viewport {
	overflow: hidden;
	width: 100%;
	height: var(--gfc-h);
}

.gfc-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	height: 100%;
	will-change: transform;
	/* transition nastavuje JS (podle „Rychlost přejezdu") */
}

.gfc-slide {
	flex: 0 0 auto;
	height: var(--gfc-h);
	margin-right: var(--gfc-gap);
	overflow: hidden;
	position: relative;
}

.gfc-slide .gfc-img {
	display: block;
	height: 100%;
	width: auto;
	max-width: none;
	object-fit: cover;
	transition: transform .3s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.gfc.gfc--zoom .gfc-slide:hover .gfc-img {
	transform: scale(1.1);
}

.gfc[data-lightbox="1"] .gfc-slide {
	cursor: zoom-in;
}

/* Editor hint */
.gfc-empty {
	padding: 24px;
	text-align: center;
	color: #777;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 6px;
}

/* =========================================================================
 * Lightbox (vestavěný, bez knihoven)
 * ========================================================================= */
.gfc-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
}
.gfc-lb.is-open {
	opacity: 1;
	visibility: visible;
}
.gfc-lb__img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.gfc-lb__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}
.gfc-lb__btn:hover { background: rgba(255, 255, 255, .28); }
.gfc-lb__prev { left: 18px; }
.gfc-lb__next { right: 18px; }
.gfc-lb__close {
	position: absolute;
	top: 16px;
	right: 18px;
	transform: none;
	width: 44px;
	height: 44px;
	font-size: 30px;
}
@media (max-width: 600px) {
	.gfc-lb__btn { width: 40px; height: 40px; font-size: 22px; }
	.gfc-lb__prev { left: 8px; }
	.gfc-lb__next { right: 8px; }
}
