/* ==========================================================================
   LYVV Widgets — Frontend Stylesheet
   ========================================================================== */

/* ── Reset box-sizing ──────────────────────────────────────────────────────── */
.lyvv-wg-box *,
.lyvv-wg-box *::before,
.lyvv-wg-box *::after {
	box-sizing: border-box;
}

/* ── Shared widget wrapper ─────────────────────────────────────────────────── */
.lyvv-wg-box {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.10);
	margin-bottom: 24px;
	font-family: inherit;
}

/* ── Widget header strip ───────────────────────────────────────────────────── */
.lyvv-wg-header {
	background: #2d4a8a;
	color: #fff;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 11px 16px;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 6px;
}

.lyvv-wg-count {
	font-weight: 400;
	opacity: 0.75;
	font-size: 0.92em;
}

/* ── Body padding ─────────────────────────────────────────────────────────── */
.lyvv-wg-body {
	padding: 12px;
}

.lyvv-wg-empty {
	color: #999;
	font-size: 0.85em;
	text-align: center;
	padding: 16px 0;
	margin: 0;
}

/* ==========================================================================
   VISITOR COUNTER
   ========================================================================== */

.lyvv-wg-stat-body {
	padding: 4px 0 8px;
}

.lyvv-wg-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 16px;
	border-bottom: 1px solid #f2f2f2;
}

/* Remove border on last visible row before total */
.lyvv-wg-stat-total-row {
	border-bottom: none;
	padding-bottom: 2px;
}

.lyvv-wg-stat-label {
	font-weight: 600;
	font-size: 0.87em;
	color: #333;
}

.lyvv-wg-stat-value {
	font-weight: 700;
	font-size: 0.92em;
	color: #111;
}

.lyvv-wg-stat-total-val {
	padding: 0 16px 16px;
	font-size: 1.65em;
	font-weight: 800;
	color: #111;
	letter-spacing: 0.03em;
	line-height: 1.2;
}

/* ==========================================================================
   IMAGE GALLERY
   ========================================================================== */

.lyvv-wg-grid {
	display: grid;
	gap: 4px;
	padding: 0;
}

.lyvv-wg-cols-1 { grid-template-columns: 1fr; }
.lyvv-wg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lyvv-wg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lyvv-wg-cols-4 { grid-template-columns: repeat(4, 1fr); }

.lyvv-wg-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f0f0f0;
	text-decoration: none;
}

.lyvv-wg-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.lyvv-wg-gallery-item:hover img {
	transform: scale(1.07);
}

.lyvv-wg-gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: background 0.25s, opacity 0.25s;
}

.lyvv-wg-gallery-item:hover .lyvv-wg-gallery-overlay {
	background: rgba(0, 0, 0, 0.38);
	opacity: 1;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lyvv-wg-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.lyvv-wg-lightbox.is-open {
	display: flex;
}

.lyvv-wg-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: zoom-out;
}

.lyvv-wg-lb-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lyvv-wg-lb-img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
	transition: opacity 0.2s;
}

.lyvv-wg-lb-loading .lyvv-wg-lb-img {
	opacity: 0.3;
}

/* Nav buttons */
.lyvv-wg-lb-close,
.lyvv-wg-lb-prev,
.lyvv-wg-lb-next {
	position: fixed;
	background: rgba(0, 0, 0, 0.52);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	transition: background 0.2s, transform 0.15s;
	z-index: 2;
}

.lyvv-wg-lb-close:hover,
.lyvv-wg-lb-prev:hover,
.lyvv-wg-lb-next:hover {
	background: rgba(0, 0, 0, 0.85);
}

.lyvv-wg-lb-prev:hover { transform: translateX(-3px) translateY(-50%); }
.lyvv-wg-lb-next:hover { transform: translateX(3px)  translateY(-50%); }

.lyvv-wg-lb-close {
	top: 14px;
	right: 14px;
}

.lyvv-wg-lb-prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.lyvv-wg-lb-next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.lyvv-wg-lb-counter {
	position: fixed;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.82em;
	background: rgba(0, 0, 0, 0.52);
	padding: 4px 14px;
	border-radius: 20px;
	pointer-events: none;
}

/* ==========================================================================
   VIDEO
   ========================================================================== */

.lyvv-wg-video-body {
	padding: 0;
}

.lyvv-wg-video-wrap {
	position: relative;
	width: 100%;
	height: 0;
	background: #000;
	overflow: hidden;
}

/* ==========================================================================
   FANPAGE
   ========================================================================== */

.lyvv-wg-fanpage-body {
	padding: 10px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.lyvv-wg-fanpage-body iframe {
	max-width: 100%;
}

/* ==========================================================================
   ADDRESS / MAP
   ========================================================================== */

.lyvv-wg-map-body {
	padding: 0;
}

.lyvv-wg-map-wrap {
	overflow: hidden;
}

.lyvv-wg-map-wrap iframe {
	display: block;
	width: 100%;
}

.lyvv-wg-map-actions {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
}

.lyvv-wg-map-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	color: #1a73e8;
	border: 1.5px solid currentColor;
	border-radius: 4px;
	padding: 6px 11px;
	font-size: 0.8em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	line-height: 1.4;
}

.lyvv-wg-map-btn:hover {
	background: currentColor;
}

.lyvv-wg-map-btn:hover span,
.lyvv-wg-map-btn:hover svg {
	color: #fff;
	stroke: #fff;
}

.lyvv-wg-map-address {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	padding: 10px 14px;
	font-size: 0.84em;
	color: #444;
	line-height: 1.55;
	border-top: 1px solid #f0f0f0;
}

.lyvv-wg-map-address svg {
	flex-shrink: 0;
	margin-top: 2px;
}
