/* ═══════════════════════════════════════════════════════════
   PHOTO GALLERY PAGE — Redesigned
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Banner ── */
.pg-hero {
	position: relative;
	padding: 130px 0 70px;
	color: #fff;
	overflow: hidden;
}

.pg-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		var(--color-primary-bg) 0%,
		#3d1210 60%,
		#1a0908 100%
	);
	z-index: 0;
}

.pg-hero-bg::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 520px;
	height: 520px;
	background: radial-gradient(
		circle,
		rgba(244, 197, 66, 0.15) 0%,
		transparent 70%
	);
	border-radius: 50%;
}

.pg-hero-bg::after {
	content: "";
	position: absolute;
	bottom: -25%;
	left: -4%;
	width: 380px;
	height: 380px;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.06) 0%,
		transparent 70%
	);
	border-radius: 50%;
}

.pg-hero-content {
	position: relative;
	z-index: 2;
}

.pg-hero-content h1 {
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 800;
	margin: 14px 0 18px;
	line-height: 1.12;
	letter-spacing: -0.5px;
}

.pg-hero-tagline {
	font-size: clamp(16px, 2.2vw, 21px);
	font-weight: 300;
	opacity: 0.88;
	max-width: 660px;
	line-height: 1.55;
}

/* ── Breadcrumb ── */
.breadcrumb-list {
	gap: 8px;
	flex-wrap: wrap;
	font-size: 14px;
}

.breadcrumb-list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.breadcrumb-list li + li::before {
	content: "/";
	opacity: 0.45;
}

.breadcrumb-list li a {
	color: rgba(255, 255, 255, 0.72);
	transition: color 0.2s;
}

.breadcrumb-list li a:hover {
	color: var(--color-cta-bg);
}

.breadcrumb-list li.active span {
	color: #fff;
	font-weight: 500;
}

/* ── Stats Ribbon ── */
.pg-stats {
	position: relative;
	margin-top: -36px;
	z-index: 3;
	padding-bottom: 10px;
}

.pg-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.pg-stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
	gap: 4px;
	border-right: 1px solid #f0eded;
}

.pg-stat-item:last-child {
	border-right: none;
}

.pg-stat-num {
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	color: var(--color-primary-bg);
	line-height: 1.1;
}

.pg-stat-label {
	font-size: 13px;
	font-weight: 500;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

/* ── Filter Bar ── */
.pg-filter-section {
	padding-bottom: 0;
}

.pg-filter-bar {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: #f8f6f5;
	border-radius: 50px;
	padding: 6px;
	gap: 0;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
	max-width: 100%;
	margin: 0 auto;
	overflow: visible;
}

/* Hide scrollbar but keep scroll functionality if needed */
.pg-filter-bar::-webkit-scrollbar {
	display: none;
}

.pg-filter-bar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.pg-filter-bar::before {
	content: "";
	position: absolute;
	top: 6px;
	left: var(--slider-left, 6px);
	width: var(--slider-width, 100px);
	height: calc(100% - 12px);
	background: linear-gradient(135deg, var(--color-primary-bg) 0%, #a83836 100%);
	border-radius: 50px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(139, 46, 43, 0.3);
	z-index: 1;
	pointer-events: none;
}

.pg-filter-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 24px;
	border: none;
	border-radius: 50px;
	background: transparent;
	color: #666;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.3s ease;
	white-space: nowrap;
	z-index: 2;
	flex-shrink: 0;
}

.pg-filter-btn svg {
	opacity: 0.5;
	transition: opacity 0.3s;
}

.pg-filter-btn:hover:not(.active) {
	color: var(--color-primary-bg);
}

.pg-filter-btn:hover:not(.active) svg {
	opacity: 0.8;
}

.pg-filter-btn.active {
	color: #fff;
}

.pg-filter-btn.active svg {
	opacity: 1;
	fill: #fff;
}

/* ── Masonry Grid ── */
.pg-gallery {
	padding: 40px 0 60px;
}

.pg-masonry {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	grid-auto-flow: dense;
}

/* Wide items span 2 columns */
.pg-item--wide {
	grid-column: span 2;
}

/* ── Gallery Item ── */
.pg-item {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #eae7e5;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	transition:
		box-shadow 0.35s ease,
		transform 0.35s ease;
}

.pg-item:hover {
	box-shadow: 0 12px 40px rgba(139, 46, 43, 0.18);
	transform: translateY(-4px) scale(1.01);
}

.pg-item img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.pg-item--wide img {
	height: 280px;
}

.pg-item:hover img {
	transform: scale(1.08);
}

/* ── Item Overlay ── */
.pg-item-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 35%,
		rgba(20, 5, 4, 0.75) 100%
	);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 18px;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.pg-item:hover .pg-item-overlay {
	opacity: 1;
}

.pg-item-cat {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--color-cta-bg);
	margin-bottom: 4px;
}

.pg-item-caption {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

/* ── Hidden item (filtered out) ── */
.pg-item--hidden {
	display: none !important;
}

/* ── No Results ── */
.pg-no-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	color: #999;
	gap: 16px;
}

.pg-no-results svg {
	opacity: 0.3;
}

.pg-no-results p {
	font-size: 17px;
	font-weight: 500;
}

/* ═══ LIGHTBOX ═══ */
.pg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.pg-lightbox.active {
	opacity: 1;
	visibility: visible;
}

.pg-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.94);
	backdrop-filter: blur(12px);
}

.pg-lightbox-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-lightbox-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 28px;
	z-index: 5;
}

.pg-lightbox-counter {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.1);
	padding: 7px 20px;
	border-radius: 30px;
}

.pg-lightbox-close {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.3s,
		transform 0.3s;
}

.pg-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: rotate(90deg);
}

.pg-lightbox-stage {
	max-width: 84vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
	object-fit: contain;
	animation: pgZoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes pgZoomIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.pg-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.3s,
		transform 0.3s;
	z-index: 5;
}

.pg-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%) scale(1.1);
}

.pg-lightbox-prev {
	left: 22px;
}
.pg-lightbox-next {
	right: 22px;
}

.pg-lightbox-caption {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	background: rgba(0, 0, 0, 0.5);
	padding: 10px 30px;
	border-radius: 30px;
	backdrop-filter: blur(8px);
	z-index: 5;
	white-space: nowrap;
	max-width: 90vw;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ═══ CTA SECTION ═══ */
.pg-cta {
	background: linear-gradient(135deg, var(--color-primary-bg) 0%, #3d1210 100%);
	padding: 75px 0;
	color: #fff;
}

.pg-cta .cta-block {
	max-width: 620px;
	margin: 0 auto;
}

.pg-cta .cta-block h2 {
	font-size: clamp(24px, 3.5vw, 38px);
	font-weight: 800;
	margin-bottom: 14px;
}

.pg-cta .cta-block p {
	font-size: 17px;
	opacity: 0.9;
	margin-bottom: 30px;
	line-height: 1.6;
}

.pg-cta .cta-btn.apply {
	display: inline-block;
	background: var(--color-cta-bg);
	color: #333;
	padding: 15px 46px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 16px;
	transition:
		background 0.3s,
		transform 0.3s;
}

.pg-cta .cta-btn.apply:hover {
	background: var(--color-cta-hover);
	transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.pg-masonry {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.pg-item img {
		height: 210px;
	}

	.pg-item--wide img {
		height: 240px;
	}

	.pg-stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 768px) {
	.pg-hero {
		padding: 105px 0 50px;
	}

	.pg-masonry {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.pg-item--wide {
		grid-column: span 2;
	}

	.pg-item img {
		height: 180px;
	}

	.pg-item--wide img {
		height: 200px;
	}

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

	.pg-stat-item {
		padding: 20px 12px;
	}

	.pg-stat-item:nth-child(2) {
		border-right: none;
	}

	.pg-filter-bar {
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
		gap: 8px;
	}

	.pg-filter-btn {
		padding: 8px 16px;
		font-size: 13px;
	}

	.pg-lightbox-nav {
		width: 44px;
		height: 44px;
	}

	.pg-lightbox-prev {
		left: 10px;
	}
	.pg-lightbox-next {
		right: 10px;
	}

	.pg-lightbox-stage {
		max-width: 93vw;
	}

	.pg-lightbox-caption {
		font-size: 14px;
		padding: 7px 20px;
	}
}

@media (max-width: 480px) {
	.pg-hero {
		padding: 95px 0 40px;
	}

	.pg-masonry {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.pg-item--wide {
		grid-column: span 2;
	}

	.pg-item img {
		height: 150px;
	}

	.pg-item--wide img {
		height: 170px;
	}

	.pg-item {
		border-radius: 10px;
	}

	.pg-item-overlay {
		padding: 12px;
	}

	.pg-item-caption {
		font-size: 13px;
	}

	.pg-item-cat {
		font-size: 10px;
	}

	.pg-stats {
		margin-top: -24px;
	}

	.pg-stats-grid {
		border-radius: 12px;
	}

	.pg-stat-num {
		font-size: 20px;
	}

	.pg-stat-label {
		font-size: 11px;
	}

	.pg-filter-btn {
		padding: 7px 14px;
		font-size: 12px;
		gap: 5px;
	}

	.pg-filter-btn svg {
		width: 14px;
		height: 14px;
	}

	.pg-lightbox-img {
		max-width: 96vw;
		border-radius: 8px;
	}

	.pg-lightbox-topbar {
		padding: 12px 14px;
	}

	.pg-lightbox-close {
		width: 40px;
		height: 40px;
	}
}
