/* ==========================================================================
   Vistage Gallery — Plugin Styles
   Dark green theme (#0e2d1e) + gold accents (#c8a94e)
   ========================================================================== */

.vistage-gallery-wrap {
	--bg-dark-green: #0e2d1e;
	--bg-dark-green-2: #0a2516;
	--gold: #c8a94e;
	--gold-light: #e8c97a;
	--text-light: #e9e3cf;
	--text-mid-light: rgba(233,227,207,0.7);
	--white: #ffffff;
	--border-light: rgba(255,255,255,0.12);
	--border-light-soft: rgba(255,255,255,0.06);
	font-family: 'Source Sans 3', sans-serif;
	color: var(--text-light);
	background: var(--bg-dark-green);
}
.vistage-gallery-wrap *,
.vistage-gallery-wrap *::before,
.vistage-gallery-wrap *::after { box-sizing: border-box; }

/* Container */
.vistage-gallery-wrap .vg-container {
	max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

/* ===== FILTER BAR ===== */
.vistage-gallery-wrap .gallery-controls {
	background: var(--bg-dark-green-2) !important;
	border-bottom: 1px solid var(--border-light-soft);
	padding: 1.6rem 0;
	position: sticky; top: 0; z-index: 100;
}
.vistage-gallery-wrap .filter-row {
	display: flex; justify-content: space-between; align-items: center;
	gap: 1.5rem; flex-wrap: wrap;
}
.vistage-gallery-wrap .filter-pills {
	display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.vistage-gallery-wrap .filter-pill {
	background: transparent !important;
	border: 1px solid var(--border-light) !important;
	color: var(--text-mid-light) !important;
	font-size: 0.82rem; font-weight: 600;
	padding: 0.55rem 1.2rem; border-radius: 100px;
	text-transform: uppercase; letter-spacing: 0.05em;
	cursor: pointer; transition: all 0.22s ease;
	font-family: inherit;
}
.vistage-gallery-wrap .filter-pill:hover {
	border-color: var(--gold) !important;
	color: var(--gold) !important;
}
.vistage-gallery-wrap .filter-pill.active {
	background: var(--gold) !important;
	border-color: var(--gold) !important;
	color: var(--bg-dark-green) !important;
}
.vistage-gallery-wrap .filter-pill .count {
	font-size: 0.7rem; opacity: 0.55; margin-left: 0.4rem; font-weight: 500;
}
.vistage-gallery-wrap .filter-pill.active .count { opacity: 0.85; }

.vistage-gallery-wrap .view-toggle {
	display: flex; align-items: center; gap: 0.6rem;
	font-size: 0.82rem; color: var(--text-mid-light);
}
.vistage-gallery-wrap .view-toggle i { color: var(--gold); }
.vistage-gallery-wrap .year-select {
	border: 1px solid var(--border-light);
	padding: 0.5rem 0.9rem;
	font-family: inherit; font-size: 0.85rem;
	color: var(--text-light);
	background: rgba(255,255,255,0.04);
	border-radius: 2px; font-weight: 600;
	cursor: pointer;
}
.vistage-gallery-wrap .year-select option { background: var(--bg-dark-green); color: var(--text-light); }

/* ===== GALLERY SECTION ===== */
.vistage-gallery-wrap .gallery-section {
	background: var(--bg-dark-green) !important;
	padding: 4rem 0 5rem;
}
.vistage-gallery-wrap .gallery-intro-line {
	display: flex; align-items: center; gap: 1rem;
	margin-bottom: 2.5rem;
}
.vistage-gallery-wrap .gallery-intro-line .line {
	flex: 1; height: 1px; background: var(--border-light);
}
.vistage-gallery-wrap .gallery-intro-line .label {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	color: var(--gold-light);
	font-size: 1rem;
	opacity: 0.85;
}

/* ===== GRID — fixed 350px height, 3 columns ===== */
.vistage-gallery-wrap .masonry-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 30px;
	transition: opacity 0.25s ease;
}
.vistage-gallery-wrap .masonry-grid.vg-loading { opacity: 0.45; pointer-events: none; }

.vistage-gallery-wrap .gallery-card {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: var(--bg-dark-green-2);
	cursor: pointer;
	height: 350px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	animation: vgFadeIn 0.5s ease both;
}

.vistage-gallery-wrap .gallery-card img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
	display: block;
}
.vistage-gallery-wrap .gallery-card:hover {
	box-shadow: 0 16px 44px rgba(0,0,0,0.4);
	transform: translateY(-3px);
}
.vistage-gallery-wrap .gallery-card:hover img {
	transform: scale(1.08); filter: brightness(0.55) saturate(1.05);
}

.vistage-gallery-wrap .gallery-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(8,28,18,0.95) 0%, rgba(8,28,18,0.35) 45%, transparent 75%);
	opacity: 0; transition: opacity 0.35s ease;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 1.4rem 1.5rem;
	color: var(--white);
}
.vistage-gallery-wrap .gallery-card:hover .gallery-overlay { opacity: 1; }
.vistage-gallery-wrap .gallery-overlay .cat {
	display: inline-block;
	font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em;
	color: var(--gold-light); font-weight: 700;
	margin-bottom: 0.5rem;
	transform: translateY(8px); transition: transform 0.3s ease 0.05s;
}
.vistage-gallery-wrap .gallery-overlay h5 {
	font-family: 'Playfair Display', serif;
	font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.4rem;
	transform: translateY(8px); transition: transform 0.3s ease 0.1s;
	color: var(--white);
}
.vistage-gallery-wrap .gallery-overlay .meta {
	font-size: 0.78rem; opacity: 0.8;
	display: flex; align-items: center; gap: 0.6rem;
	transform: translateY(8px); transition: transform 0.3s ease 0.15s;
}
.vistage-gallery-wrap .gallery-card:hover .gallery-overlay .cat,
.vistage-gallery-wrap .gallery-card:hover .gallery-overlay h5,
.vistage-gallery-wrap .gallery-card:hover .gallery-overlay .meta {
	transform: translateY(0);
}
.vistage-gallery-wrap .gallery-overlay .meta .dot {
	width: 3px; height: 3px; background: var(--gold); border-radius: 50%;
}
.vistage-gallery-wrap .gallery-card .corner-tag {
	position: absolute; top: 14px; left: 14px;
	background: var(--gold);
	color: var(--bg-dark-green); font-weight: 700;
	font-size: 0.68rem; padding: 0.3rem 0.65rem;
	text-transform: uppercase; letter-spacing: 0.1em;
	border-radius: 2px;
	z-index: 2;
}
.vistage-gallery-wrap .gallery-card .view-icon {
	position: absolute; top: 50%; left: 50%;
	width: 54px; height: 54px;
	background: var(--gold); color: var(--bg-dark-green);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transform: translate(-50%, -50%) scale(0.6);
	opacity: 0; transition: all 0.35s ease;
	z-index: 3; pointer-events: none;
	font-size: 1.1rem;
}
.vistage-gallery-wrap .gallery-card:hover .view-icon {
	opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.vistage-gallery-wrap .vg-empty {
	grid-column: 1 / -1;
	text-align: center; padding: 4rem 1rem;
	color: var(--text-mid-light); font-size: 1.05rem;
	background: rgba(255,255,255,0.03);
	border: 1px dashed var(--border-light);
	border-radius: 6px;
}

/* ===== LOAD MORE ===== */
.vistage-gallery-wrap .load-more-wrap { text-align: center; margin-top: 3rem; }
.vistage-gallery-wrap .btn-load-more {
	background: var(--gold) !important;
	border: 2px solid var(--gold) !important;
	color: var(--bg-dark-green) !important;
	font-weight: 700; font-size: 0.85rem;
	padding: 0.85rem 2.4rem; border-radius: 2px;
	text-transform: uppercase; letter-spacing: 0.08em;
	cursor: pointer; transition: all 0.22s ease;
	font-family: inherit;
}
.vistage-gallery-wrap .btn-load-more:hover:not(:disabled) {
	background: transparent !important;
	color: var(--gold) !important;
}
.vistage-gallery-wrap .btn-load-more i { margin-right: 6px; }

/* ===== LIGHTBOX ===== */
.vistage-gallery-wrap .lightbox-overlay {
	display: none;
	position: fixed; inset: 0;
	background: rgba(6,20,12,0.97);
	z-index: 9999;
	align-items: center; justify-content: center;
	padding: 40px 60px;
}
.vistage-gallery-wrap .lightbox-overlay.open { display: flex; }
.vistage-gallery-wrap .lightbox-stage {
	position: relative; max-width: 1100px; width: 100%;
	display: flex; align-items: center; justify-content: center;
}
.vistage-gallery-wrap .lightbox-overlay img {
	max-width: 100%; max-height: 80vh;
	border-radius: 4px;
	box-shadow: 0 25px 80px rgba(0,0,0,0.7);
	display: block;
}
.vistage-gallery-wrap .lightbox-close {
	position: absolute; top: 24px; right: 24px;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255,255,255,0.08); color: var(--white);
	border: 1px solid rgba(255,255,255,0.18);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all 0.2s;
	font-size: 1rem;
}
.vistage-gallery-wrap .lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--bg-dark-green); }
.vistage-gallery-wrap .lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 50px; height: 50px; border-radius: 50%;
	background: rgba(255,255,255,0.08); color: var(--white);
	border: 1px solid rgba(255,255,255,0.18);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all 0.2s;
	font-size: 1.1rem;
}
.vistage-gallery-wrap .lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--bg-dark-green); }
.vistage-gallery-wrap .lightbox-prev { left: 24px; }
.vistage-gallery-wrap .lightbox-next { right: 24px; }
.vistage-gallery-wrap .lightbox-caption {
	position: absolute; bottom: -42px; left: 0; right: 0;
	text-align: center; color: rgba(255,255,255,0.85);
	font-family: 'Playfair Display', serif; font-style: italic;
	font-size: 1rem;
}
.vistage-gallery-wrap .lightbox-counter {
	position: absolute; top: 24px; left: 24px;
	color: rgba(255,255,255,0.55); font-size: 0.85rem;
	font-weight: 600; letter-spacing: 0.05em;
}
.vistage-gallery-wrap .lightbox-counter .current { color: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes vgFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
	.vistage-gallery-wrap .gallery-controls { position: relative; top: 0; }
	.vistage-gallery-wrap .masonry-grid { grid-template-columns: repeat(2, 1fr); }
	.vistage-gallery-wrap .gallery-card { height: 280px; }
}
@media (max-width: 576px) {
	.vistage-gallery-wrap .masonry-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.vistage-gallery-wrap .gallery-card { height: 200px; }
	.vistage-gallery-wrap .lightbox-overlay { padding: 20px; }
	.vistage-gallery-wrap .lightbox-nav { width: 40px; height: 40px; }
	.vistage-gallery-wrap .lightbox-prev { left: 8px; }
	.vistage-gallery-wrap .lightbox-next { right: 8px; }
}
