/* ============================================================
   Servize Hyundai Plovdiv — "Галерия" page
   (self-contained: re-declares the shared hero / empty-note /
   CTA-strip blocks so the page works with only this file loaded,
   same convention as the other page stylesheets.)
   ============================================================ */

.shp-service-hero {
	padding: var(--shp-space-8) 0 var(--shp-space-7);
	background:
		radial-gradient(ellipse 700px 380px at 80% -20%, rgba(0, 170, 210, 0.14), transparent 60%),
		var(--shp-bg);
	border-bottom: 1px solid var(--shp-line-soft);
}
.shp-service-hero h1 {
	font-size: var(--shp-text-4xl);
	margin: 0 0 var(--shp-space-4);
	max-width: 820px;
}
.shp-service-hero-sub {
	font-size: var(--shp-text-lg);
	color: var(--shp-ink-soft);
	max-width: 680px;
	margin: 0;
}
@media (max-width: 640px) {
	.shp-service-hero h1 { font-size: var(--shp-text-3xl); }
}

/* ===== Grid ===== */

.shp-gallery-body { padding: var(--shp-space-8) 0 0; }

.shp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--shp-space-5);
}
@media (max-width: 1000px) { .shp-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .shp-gallery-grid { grid-template-columns: 1fr; } }

.shp-gallery-item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--shp-radius-lg);
	border: 1px solid var(--shp-line-soft);
	background: var(--shp-surface);
	transition: border-color var(--shp-duration) var(--shp-ease),
				transform var(--shp-duration) var(--shp-ease),
				box-shadow var(--shp-duration) var(--shp-ease);
}
.shp-gallery-item:hover,
.shp-gallery-item:focus-visible {
	border-color: rgba(0, 170, 210, 0.45);
	transform: translateY(-4px);
	box-shadow: var(--shp-shadow);
}
.shp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms var(--shp-ease);
}
.shp-gallery-item:hover img { transform: scale(1.04); }

.shp-gallery-caption {
	position: absolute;
	inset: auto 0 0;
	padding: 28px var(--shp-space-4) var(--shp-space-3);
	background: linear-gradient(180deg, transparent, rgba(4, 10, 17, 0.85));
	color: var(--shp-ink);
	font-size: var(--shp-text-sm);
	font-weight: 600;
	pointer-events: none;
}

.shp-empty-note {
	text-align: center;
	color: var(--shp-ink-muted);
	background: var(--shp-surface);
	border: 1px dashed var(--shp-line);
	border-radius: var(--shp-radius);
	padding: var(--shp-space-6);
}

/* ===== Lightbox (markup built by gallery.js) ===== */

.shp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--shp-space-6);
	background: rgba(3, 7, 12, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.shp-lightbox[hidden] { display: none; }

.shp-lightbox-figure {
	margin: 0;
	max-width: min(1100px, 92vw);
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--shp-space-3);
}
.shp-lightbox-figure img {
	max-width: 100%;
	max-height: 78vh;
	border-radius: var(--shp-radius);
	border: 1px solid var(--shp-line);
	box-shadow: var(--shp-shadow-lg);
}
.shp-lightbox-caption {
	color: var(--shp-ink-soft);
	font-size: var(--shp-text-sm);
	text-align: center;
	min-height: 1.4em;
}

.shp-lightbox-close,
.shp-lightbox-prev,
.shp-lightbox-next {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--shp-line);
	background: var(--shp-surface);
	color: var(--shp-ink);
	cursor: pointer;
	transition: background var(--shp-duration) var(--shp-ease), border-color var(--shp-duration) var(--shp-ease);
}
.shp-lightbox-close:hover,
.shp-lightbox-prev:hover,
.shp-lightbox-next:hover {
	background: var(--shp-surface-2);
	border-color: var(--shp-ink-muted);
}
.shp-lightbox-close { top: 20px; right: 20px; }
.shp-lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.shp-lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
	.shp-lightbox { padding: var(--shp-space-4); }
	.shp-lightbox-prev { left: 8px; }
	.shp-lightbox-next { right: 8px; }
}

/* ===== CTA strip (shared look with homepage) ===== */

.shp-cta-strip { padding: var(--shp-space-9) 0 0; }
.shp-cta-strip-inner {
	background:
		radial-gradient(ellipse 480px 260px at 85% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
		linear-gradient(120deg, #036182, #0090bf);
	border-radius: var(--shp-radius-lg);
	padding: var(--shp-space-8);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--shp-space-6);
	flex-wrap: wrap;
}
.shp-cta-strip h2 { color: #fff; font-size: var(--shp-text-2xl); margin: 0 0 var(--shp-space-2); }
.shp-cta-strip p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.shp-cta-strip-actions { display: flex; gap: var(--shp-space-4); flex-wrap: wrap; }
.shp-cta-strip .shp-btn--accent {
	background: #fff;
	color: #036182;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.shp-cta-strip .shp-btn--accent:hover { background: #fff; color: #024a63; }
