/* ==========================================================================
   LYVV Element — shared stylesheet
   ========================================================================== */

/* ── Placeholder (editor only) ──────────────────────────────────────────── */

.lyvv-el-placeholder {
	padding: 16px;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	color: #888;
	font-size: 13px;
	text-align: center;
}

/* ==========================================================================
   NAV MENU
   ========================================================================== */

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

.lyvv-el-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Top-level menu */
.lyvv-el-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
}

/* Menu items */
.lyvv-el-item {
	position: relative;
}

/* Links */
.lyvv-el-menu-link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.lyvv-el-menu-link:hover,
.lyvv-el-menu-link:focus {
	color: inherit;
	opacity: 0.75;
}

/* Arrow */
.lyvv-el-arrow {
	font-size: 0.6em;
	display: inline-block;
	transition: transform 0.2s;
}

/* Dropdown / Sub Menu */
.lyvv-sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	padding: 6px 0;
}

.lyvv-sub-menu li a {
	display: block;
	padding: 10px 15px;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.lyvv-sub-menu li a:hover {
	background: #f2f2f2;
}

/* Legacy alias — keeps existing rules working */
.lyvv-el-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	padding: 6px 0;
}

.lyvv-el-dropdown .lyvv-el-menu-link {
	padding: 8px 16px;
	font-size: 0.9em;
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
	.lyvv-el-has-dropdown:hover > .lyvv-el-dropdown,
	.lyvv-el-has-dropdown:focus-within > .lyvv-el-dropdown {
		display: block;
	}

	.lyvv-el-has-dropdown:hover > .lyvv-el-menu-link .lyvv-el-arrow {
		transform: rotate(180deg);
	}
}

/* Current item */
.lyvv-el-current > .lyvv-el-menu-link {
	font-weight: 600;
}

/* Mobile toggle button */
.lyvv-el-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	cursor: pointer;
	background: transparent;
	border: none;
	margin-left: auto;
}

.lyvv-el-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}

/* Mobile — hamburger visible, menu stacked */
@media (max-width: 768px) {
	.lyvv-el-toggle {
		display: flex;
	}

	.lyvv-el-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.lyvv-el-menu.lyvv-el-open {
		display: flex;
	}

	.lyvv-el-item {
		width: 100%;
	}

	.lyvv-el-dropdown {
		position: static;
		border: none;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.03);
		border-radius: 0;
		padding-left: 16px;
		display: none;
	}

	.lyvv-el-has-dropdown.lyvv-el-open > .lyvv-el-dropdown {
		display: block;
	}
}

/* ── Nav menu base layout ───────────────────────────────────────────────── */

.lyvv-nav-menu {
	display: flex;
	gap: 20px;
	align-items: center;
}

/* ── Theme modes ────────────────────────────────────────────────────────── */

/* auto — no class added, inherits whatever the theme provides */

/* Light */
.lyvv-theme-light {
	background: #ffffff;
}

.lyvv-theme-light .lyvv-el-menu-link {
	color: #333;
}

.lyvv-theme-light .lyvv-el-menu-link:hover,
.lyvv-theme-light .lyvv-el-menu-link:focus {
	color: #0073aa;
	opacity: 1;
}

.lyvv-theme-light .lyvv-el-dropdown {
	background: #fff;
	border-color: #e0e0e0;
}

/* Dark */
.lyvv-theme-dark {
	background: #111;
}

.lyvv-theme-dark .lyvv-el-menu-link {
	color: #fff;
	opacity: 1;
}

.lyvv-theme-dark .lyvv-el-menu-link:hover,
.lyvv-theme-dark .lyvv-el-menu-link:focus {
	color: #ffd700;
	opacity: 1;
}

.lyvv-theme-dark .lyvv-el-dropdown {
	background: #222;
	border-color: #444;
}

.lyvv-theme-dark .lyvv-el-dropdown .lyvv-el-menu-link {
	color: #ddd;
}

.lyvv-theme-dark .lyvv-el-dropdown .lyvv-el-menu-link:hover {
	color: #ffd700;
}

.lyvv-theme-dark .lyvv-el-toggle span {
	background: #fff;
}

@media (max-width: 768px) {
	.lyvv-theme-dark .lyvv-el-dropdown {
		background: rgba(255, 255, 255, 0.05);
	}
}

/* ==========================================================================
   POST SLIDER
   ========================================================================== */

.lyvv-el-slider {
	width: 100%;
	overflow: hidden;
}

/* Card */
.lyvv-el-slide {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	height: auto;
}

/* Thumbnail */
.lyvv-el-slide-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.lyvv-el-slide-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.lyvv-el-slide-thumb:hover img {
	transform: scale(1.04);
}

/* Body */
.lyvv-el-slide-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Title */
.lyvv-el-slide-title {
	margin: 0;
	font-size: 1em;
	line-height: 1.4;
}

.lyvv-el-slide-title a {
	color: inherit;
	text-decoration: none;
}

.lyvv-el-slide-title a:hover {
	text-decoration: underline;
}

/* Excerpt */
.lyvv-el-slide-excerpt {
	margin: 0;
	font-size: 0.875em;
	color: #666;
	line-height: 1.5;
}

/* Navigation arrows — inherit Swiper defaults, just tweak colour */
.lyvv-el-slider .swiper-button-prev,
.lyvv-el-slider .swiper-button-next {
	color: #333;
}

/* ==========================================================================
   SHARED WIDGET BOX  (used by all sidebar widgets)
   ========================================================================== */

.lyvv-widget-box,
.lyvv-wg-box {
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.10);
	margin-bottom: 20px;
}

/* Header strip */
.lyvv-widget-header,
.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-widget-header .lyvv-gallery-count,
.lyvv-wg-header .lyvv-wg-count {
	font-weight: 400;
	opacity: 0.75;
	margin-left: 4px;
}

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

/* ==========================================================================
   VISITOR COUNTER  (mirrors lyvv-widgets CSS)
   ========================================================================== */

.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;
}

.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-gallery-grid {
	display: grid;
	gap: 4px;
}

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

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

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

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

.lyvv-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-gallery-item:hover .lyvv-gallery-overlay {
	background: rgba(0, 0, 0, 0.35);
	opacity: 1;
}

/* Gallery slider */
.lyvv-gallery-slider {
	width: 100%;
}

.lyvv-gallery-slider .swiper-slide {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.lyvv-gallery-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

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

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

.lyvv-lightbox.lyvv-lb-open {
	display: flex;
}

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

.lyvv-lb-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90vw;
	max-height: 90vh;
}

.lyvv-lb-img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lyvv-lb-close,
.lyvv-lb-prev,
.lyvv-lb-next {
	position: fixed;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transition: background 0.2s;
	z-index: 2;
}

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

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

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

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

.lyvv-lb-counter {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 0.85em;
	background: rgba(0, 0, 0, 0.5);
	padding: 4px 12px;
	border-radius: 20px;
}

/* ==========================================================================
   POST LIST CATEGORY
   ========================================================================== */

/* Featured post date */
.bytf__content .lyvv-post-date {
	display: block;
	font-size: 0.85em;
	color: #999;
	margin-top: 6px;
}

/* Border between list items */
.lyvv-post-item {
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e8e8;
}

.lyvv-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* Remove theme border from featured post */
.lyvv-post-list-category .bytf__post-list-item-two {
	border: none;
	padding: 0;
}

/* Border between featured and list */
.lyvv-post-list {
	border-top: 1px solid #e8e8e8;
	padding-top: 12px;
}

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

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

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

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

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

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

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

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

.lyvv-map-wrap {
	position: relative;
	overflow: hidden;
}

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

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

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

.lyvv-map-btn:hover {
	background: #1a73e8;
	color: #fff;
	text-decoration: none;
}

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

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