/* Galeria zdjec jachtu (ygallery.js): scroll-snap + miniatury + lightbox. */
.yg { position: relative; width: 100%; margin: 0 auto; }
.yg-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; }
.yg-pill {
	display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid #d6e4f0; box-shadow: 0 1px 4px rgba(0,0,0,.18);
	background: #eef3f8; color: #1f567c; font: 600 12px/1.2 "Open Sans", Arial, sans-serif;
	text-decoration: none !important; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.yg-pill.is-on { background: #1f567c; border-color: #1f567c; color: #fff; }
.yg-pill:focus-visible { outline: 2px solid #0277BD; outline-offset: 2px; }
.yg-stage { position: relative; aspect-ratio: 3 / 2; max-height: 560px; width: 100%; background: #dff0fb; border-radius: 10px; overflow: hidden; }
.yg-track {
	display: flex; height: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.yg-track::-webkit-scrollbar { display: none; }
.yg-track:focus-visible { outline: 2px solid #0277BD; outline-offset: -2px; }
.yg-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.yg-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yg-nav {
	position: absolute; top: calc(50% - 20px); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.yg-nav svg { width: 22px; height: 22px; fill: #0277BD; }
.yg-prev { left: 10px; } .yg-next { right: 10px; }
.yg-count {
	position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
	background: rgba(0,0,0,.55); color: #fff; font: 700 13px/1.3 "Open Sans", Arial, sans-serif; pointer-events: none;
}
.yg-fs {
	position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
	background: rgba(0,0,0,.5); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.yg-fs:hover { background: rgba(0,0,0,.72); }
.yg-fs svg { width: 18px; height: 18px; fill: #fff; }
.yg-thumbs { display: flex; gap: 6px; padding: 8px 0 2px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9fc4de #eaf2f8; }
.yg-th {
	flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
	background: #dff0fb; cursor: pointer; opacity: .75; -webkit-tap-highlight-color: transparent;
}
.yg-th img { display: block; width: 104px; height: 72px; object-fit: cover; }
.yg-th.is-on { border-color: #0277BD; opacity: 1; }
@media (hover: hover) { .yg-th:hover { opacity: 1; } }

/* telefon: bez strzalek i przycisku pelnego ekranu (przesuniecie palcem, stukniecie w zdjecie otwiera podglad) */
@media (max-width: 767px) {
	.yg-stage { max-height: none; border-radius: 8px; }
	.yg-nav, .yg-fs, .yg-count, .yg-lb-count { display: none; }
	.yg-thumbs { scrollbar-width: none; }
	.yg-thumbs::-webkit-scrollbar { display: none; }
	.yg-th img { width: 78px; height: 54px; }
}

html.yg-lb-open, html.yg-lb-open body { overflow: hidden; }
.yg-lb {
	position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; align-items: center;
	background: rgba(0,0,0,.9);
}
.yg-lb.on { display: flex; }
.yg-lb-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 14px 64px 10px; box-sizing: border-box; max-width: 100%; }
.yg-lb .yg-pill { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.yg-lb .yg-pill.is-on { background: #fff; border-color: #fff; color: #0277BD; }
.yg-lb-view { flex: 1 1 auto; width: 100%; min-height: 0; padding: 0 0 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.yg-lb-view img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; }
.yg-lb-thumbs { flex: 0 0 auto; display: flex; gap: 6px; width: 100%; box-sizing: border-box; padding: 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.yg-lb-thumbs::-webkit-scrollbar { display: none; }
.yg-lb-thumbs .yg-th { background: rgba(255,255,255,.1); }
.yg-lb-thumbs .yg-th.is-on { border-color: #fff; }
.yg-lb-view { padding-bottom: 8px !important; }
.yg-lb.is-zoomed .yg-lb-view { cursor: grab; }
.yg-lb-x {
	position: absolute; top: 12px; right: 14px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.14); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.yg-lb-x:hover { background: rgba(255,255,255,.28); }
.yg-lb-x svg { width: 20px; height: 20px; fill: #fff; }
.yg-lb-nav {
	position: absolute; top: calc(50% - 22px); z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.16); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.yg-lb-nav:hover { background: rgba(255,255,255,.3); }
.yg-lb-nav svg { width: 24px; height: 24px; fill: #fff; }
.yg-lb-prev { left: 14px; } .yg-lb-next { right: 14px; }
.yg-lb-count {
	position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px;
	background: rgba(255,255,255,.15); color: #fff; font: 700 13px/1.3 "Open Sans", Arial, sans-serif;
}
@media (max-width: 767px) and (hover: none) { .yg-lb-nav { display: none; } .yg-lb-bar { padding: 14px 56px 10px; } }
