/* ─── 04 Galerija — sk. 04-galerija.php ────────────────────────────────────── */

.galerija {
	width: 100vw;
	max-width: none;
	height: 100svh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--c-fons);
	color: var(--c-zils);
	overflow: hidden;
}

.galerija::backdrop { background: var(--c-fons); }

/* Fokuss ir uz dialoga (showModal), ne uz kādu tā daļu — gredzens ap visu ekrānu
   neko nepasaka */
.galerija:focus,
.galerija-lente:focus:not(:focus-visible) { outline: none; }
.galerija-lente:focus-visible { outline: 2px solid var(--c-zils); outline-offset: -2px; }

.galerija-lente {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.galerija-lente::-webkit-scrollbar { display: none; }

.galerija-lente img {
	flex: 0 0 100vw;
	width: 100vw;
	height: 100%;
	max-width: none;
	object-fit: contain;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	/* Divu pirkstu tuvināšana — pārlūka pašas, bez bibliotēkas */
	touch-action: pan-x pinch-zoom;
}

.galerija-josla {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 var(--gr-pad) calc(0.75rem + env(safe-area-inset-bottom));
	font: 400 1.0625rem/1 "TT Ramillas", serif;
}

.galerija-aizv {
	padding: 0.875rem 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

/* Lentē kadrs ir poga — to pasaka kursors un skāriena izgaismojuma trūkums */
@media only screen and (max-width: 64em) {
	.prl-foto { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
}
