/* Vimukti Gallery — Frontend */

.vg-gallery {
	--vg-title: #3a3a3a;
	--vg-accent: #e8941a;
	--vg-text: #ffffff;
	--vg-meta: rgba(255, 255, 255, 0.95);
	--vg-gap: 22px;
	--vg-radius: 10px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 24px 16px 48px;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--vg-title);
}

.vg-gallery *,
.vg-gallery *::before,
.vg-gallery *::after {
	box-sizing: border-box;
}

.vg-gallery-title {
	margin: 0 0 28px;
	text-align: center;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--vg-title);
}

.vg-empty {
	text-align: center;
	color: #666;
}

/* Album listing grid — 3 columns like screenshot */
.vg-album-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--vg-gap);
}

.vg-album-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--vg-radius);
	overflow: hidden;
	cursor: pointer;
	background: #1a1a1a;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vg-album-card:hover,
.vg-album-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	outline: none;
}

.vg-album-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
}

.vg-album-media img,
.vg-album-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.vg-album-placeholder {
	background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
}

.vg-album-card:hover .vg-album-media img {
	transform: scale(1.04);
}

.vg-album-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.45) 38%,
		rgba(0, 0, 0, 0.08) 70%,
		transparent 100%
	);
	pointer-events: none;
}

.vg-album-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 16px 16px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vg-album-name {
	display: block;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.25;
	text-transform: uppercase;
	color: #F67708;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	font-family: 'gt america new';
	white-space: break-spaces;
}

.vg-album-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--vg-meta);
	line-height: 1.2;
}

.vg-meta-date,
.vg-meta-location {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #f67708;
	font-size: 14px;
	font-weight: 500;
	font-family: 'gt america new';
}

.vg-meta-sep {
	opacity: 0.7;
	font-weight: 300;
}

.vg-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color:#fff;
}

/* Detail view */
.vg-detail[hidden],
.vg-listing[hidden] {
	display: none !important;
}

.vg-detail-toolbar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 24px;
}

.vg-back-btn {
	font-family: "gt america new", sans-serif;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	color: #fff;
	background: #F67708 !important;
	font-size: 18px;
	line-height: 1.5em;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

/* .vg-back-btn:hover,
.vg-back-btn:focus-visible {
background: #f5f5f5;
border-color: #bbb;
outline: none;
} */

.vg-back-btn .vg-icon {
	width: 18px;
	height: 18px;
}

.vg-detail-title {
	margin: 0;
	flex: 1;
	font-size: clamp(1.2rem, 2.2vw, 1.6rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--vg-title);
}

/* Photo grid — 4 columns */
.vg-photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.vg-photo-item {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background-color: #eee !important;
	aspect-ratio: 1 / 1;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	transform: none !important;
}
.vg-photo-item img {
		transform: scale(1);
	transition: all 0.5s ease;
}
.vg-photo-item:hover img {
	transform: scale(1.1);
}

.vg-photo-item:hover,
.vg-photo-item:focus-visible {
	transform: scale(1.02);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	outline: none;
}

.vg-photo-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vg-photo-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
	padding: 40px 16px;
}

/* Lightbox */
.vg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 48px 56px;
}

.vg-lightbox[hidden] {
	display: none !important;
}

.vg-lightbox-figure {
	margin: 0;
	max-width: min(92vw, 1100px);
	max-height: 88vh;
}

.vg-lightbox-figure img {
	display: block;
	max-width: 100%;
	max-height: 88vh;
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.vg-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border: 0;
	background: #f67700;
	color: #fff;
	cursor: pointer;
	opacity: 0.9;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius:30px;
}

.vg-lightbox-close:hover {
	opacity: 1;
	background-color: #f67700;
}

.vg-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.4rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vg-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.22);
}

.vg-lightbox-prev {
	left: 12px;
}

.vg-lightbox-next {
	right: 12px;
}

body.vg-lightbox-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
	.vg-album-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.vg-photo-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

@media (max-width: 560px) {
	.vg-gallery {
		padding: 16px 12px 32px;
	}

	.vg-album-grid {
		grid-template-columns: 1fr;
	}

	.vg-photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vg-lightbox {
		padding: 56px 12px 24px;
	}

	.vg-lightbox-nav {
		width: 40px;
		height: 40px;
	}
}
