/* =========================================================
   Gallery Premium — list + album detail
   Aligned with single-premium / sdm-premium language
   ========================================================= */
.gp-page {
	--gp-ink: #1a2a20;
	--gp-muted: #667a6c;
	--gp-line: rgba(20, 60, 35, 0.08);
	--gp-soft: #eef5f0;
	--gp-mist: #f5faf6;
	--gp-card: rgba(255, 255, 255, 0.82);
	--gp-accent: #0e9e10;
	--gp-accent-deep: #0a6f0c;
	--gp-radius: 22px;
	--gp-radius-sm: 14px;
	--gp-shadow: 0 18px 50px rgba(18, 48, 28, 0.07);
	--gp-font: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
	--gp-display: var(--font-display, 'Source Serif 4', Georgia, serif);
	--gp-header-offset: 142px;
	position: relative;
	isolation: isolate;
	font-family: var(--gp-font);
	color: var(--gp-ink);
	background: var(--gp-mist);
	padding-top: 0;
	padding-bottom: 4rem;
	min-height: 60vh;
	overflow: hidden;
}

.gp-page *,
.gp-page *::before,
.gp-page *::after {
	box-sizing: border-box;
}

.gp-atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(14, 158, 16, 0.09), transparent 55%),
		radial-gradient(ellipse 60% 40% at 95% 15%, rgba(18, 186, 40, 0.06), transparent 50%),
		linear-gradient(180deg, #eaf4ec 0%, var(--gp-mist) 28%, #f8fbf9 100%);
}

.gp-atmosphere::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e9e10' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gp-page > *:not(.gp-atmosphere) {
	position: relative;
	z-index: 1;
}

/* ---------- Soft top / lede (match single-premium) ---------- */
.gp-top {
	padding: 1.15rem 0 0.35rem;
}

.gp-bc {
	margin-bottom: 1.25rem;
	width: 100%;
}

.gp-bc-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0.7rem 1.15rem;
	background: rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	box-shadow: 0 6px 24px rgba(18, 48, 28, 0.045);
}

.gp-bc-item {
	display: inline-flex;
	align-items: center;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--gp-muted);
	min-width: 0;
}

.gp-bc-item:not(:last-child)::after {
	content: '';
	width: 3px;
	height: 3px;
	margin: 0 0.6rem;
	border-radius: 50%;
	background: rgba(14, 158, 16, 0.35);
	flex-shrink: 0;
}

.gp-bc-item a {
	color: var(--gp-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.gp-bc-item a:hover {
	color: var(--gp-accent);
}

.gp-bc-item.is-current {
	flex: 1 1 auto;
	min-width: 0;
}

.gp-bc-item.is-current span {
	display: block;
	width: 100%;
	max-width: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--gp-ink);
	font-weight: 600;
}

.gp-lede {
	width: 100%;
	max-width: none;
	padding-bottom: 1.65rem;
	margin-bottom: 0;
	animation: gpRise 0.55s ease both;
}

.gp-eyebrow {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gp-accent-deep);
	margin-bottom: 0.85rem;
}

.gp-title {
	font-family: var(--gp-display);
	font-size: clamp(1.85rem, 3.4vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.18;
	color: var(--gp-ink);
	margin: 0 0 0.85rem;
	width: 100%;
	max-width: none;
}

.gp-deck {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--gp-muted);
	margin: 0 0 1.25rem;
	width: 100%;
	max-width: none;
}

.gp-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.gp-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.2;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.9);
	color: var(--gp-muted);
	box-shadow: 0 2px 10px rgba(18, 48, 28, 0.03);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gp-meta-chip i {
	color: var(--gp-accent);
	opacity: 1;
	font-size: 0.82rem;
}

.gp-meta-chip--link:hover {
	color: var(--gp-accent-deep);
	background: #fff;
	border-color: rgba(14, 158, 16, 0.22);
}

.gp-shell {
	padding-top: 0;
}

.gp-layout {
	align-items: flex-start;
}

.gp-main {
	background: var(--gp-card);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--gp-radius);
	box-shadow: var(--gp-shadow);
	padding: 1.4rem 1.35rem 1.35rem;
	overflow: hidden;
	animation: gpRise 0.6s ease 0.06s both;
}

.gp-main-head {
	margin-bottom: 1.15rem;
	padding-bottom: 0.95rem;
	border-bottom: 1px solid var(--gp-line);
}

.gp-section-title {
	font-family: var(--gp-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.3rem;
	color: var(--gp-ink);
}

.gp-section-lead {
	margin: 0;
	font-size: 0.9rem;
	color: var(--gp-muted);
}

/* ---------- Album grid (list) ---------- */
.gp-album-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.05rem;
}

.gp-album {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: var(--gp-radius-sm);
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(18, 48, 28, 0.07);
	box-shadow: 0 8px 22px rgba(18, 48, 28, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
	animation: gpRise 0.5s ease both;
	animation-delay: calc(var(--gp-i, 1) * 40ms);
}

.gp-album:hover {
	transform: translateY(-4px);
	border-color: rgba(14, 158, 16, 0.28);
	box-shadow: 0 16px 36px rgba(18, 48, 28, 0.1);
	color: inherit;
}

.gp-album-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #dce9df, #eef5f0);
}

.gp-album-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.55s ease;
}

.gp-album:hover .gp-album-media img {
	transform: scale(1.06);
}

.gp-album-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(8, 22, 14, 0.45) 100%);
	pointer-events: none;
}

.gp-album-badge {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	background: rgba(10, 40, 20, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.gp-album-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.95rem 1rem 1.05rem;
	flex: 1;
}

.gp-album-title {
	font-family: var(--gp-display);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--gp-ink);
}

.gp-album-desc {
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--gp-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-album-foot {
	margin-top: auto;
	padding-top: 0.55rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.gp-album-date {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--gp-muted);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.gp-album-cta {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--gp-accent-deep);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.gp-album:hover .gp-album-cta i {
	transform: translateX(3px);
	transition: transform 0.25s ease;
}

/* ---------- Photo grid (detail) ---------- */
.gp-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
}

.gp-photo {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: left;
	border-radius: var(--gp-radius-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(18, 48, 28, 0.07);
	background: #fff;
	box-shadow: 0 6px 18px rgba(18, 48, 28, 0.04);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.25s ease;
	animation: gpRise 0.45s ease both;
	animation-delay: calc(var(--gp-i, 1) * 35ms);
}

.gp-photo:hover,
.gp-photo:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(14, 158, 16, 0.3);
	box-shadow: 0 14px 30px rgba(18, 48, 28, 0.1);
	outline: none;
}

.gp-photo-media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(135deg, #dce9df, #eef5f0);
}

.gp-photo-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease, filter 0.35s ease;
}

.gp-photo:hover .gp-photo-media img,
.gp-photo:focus-visible .gp-photo-media img {
	transform: scale(1.05);
	filter: brightness(0.92);
}

.gp-photo-zoom {
	position: absolute;
	right: 0.65rem;
	bottom: 0.65rem;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	color: var(--gp-accent-deep);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.gp-photo:hover .gp-photo-zoom,
.gp-photo:focus-visible .gp-photo-zoom {
	opacity: 1;
	transform: none;
}

.gp-photo-caption {
	padding: 0.65rem 0.75rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-empty {
	text-align: center;
	padding: 2.75rem 1rem;
	color: var(--gp-muted);
}

.gp-empty p {
	margin: 0 0 0.75rem;
	font-size: 0.98rem;
}

.gp-back-link {
	color: var(--gp-accent-deep);
	font-weight: 700;
	text-decoration: none;
}

.gp-back-link:hover {
	color: var(--gp-accent);
}

/* ---------- Soft sidebar ---------- */
.gp-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	position: sticky;
	top: calc(var(--gp-header-offset) + 12px);
}

.gp-side-panel {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--gp-radius);
	padding: 1.25rem 1.2rem 1.15rem;
	box-shadow: var(--gp-shadow);
}

.gp-side-panel--soft {
	background: linear-gradient(160deg, rgba(238, 245, 240, 0.95), rgba(255, 255, 255, 0.8));
}

.gp-side-title {
	font-family: var(--gp-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--gp-ink);
	line-height: 1.25;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.gp-side-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.gp-side-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	text-decoration: none;
	color: var(--gp-ink);
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gp-side-cats a:hover {
	background: rgba(14, 158, 16, 0.08);
	transform: translateX(2px);
	color: var(--gp-accent-deep);
}

.gp-side-cat-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--gp-accent-deep);
	background: rgba(14, 158, 16, 0.12);
	min-width: 1.6rem;
	height: 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.gp-side-feed {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.gp-side-feed-item {
	display: flex;
	gap: 0.8rem;
	text-decoration: none;
	padding: 0.35rem;
	border-radius: 14px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gp-side-feed-item:hover {
	background: rgba(14, 158, 16, 0.06);
	transform: translateY(-1px);
}

.gp-side-feed-thumb {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--gp-soft);
}

.gp-side-feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.gp-side-feed-item:hover .gp-side-feed-thumb img {
	transform: scale(1.06);
}

.gp-side-feed-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
}

.gp-side-feed-title {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--gp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gp-side-feed-item:hover .gp-side-feed-title {
	color: var(--gp-accent-deep);
}

.gp-side-feed-date {
	font-size: 0.72rem;
	color: var(--gp-muted);
}

/* ---------- Lightbox ---------- */
.gp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.gp-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

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

.gp-lightbox.is-open[hidden] {
	display: flex !important;
}

.gp-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 40%, rgba(14, 40, 22, 0.35), transparent 70%),
		rgba(8, 18, 12, 0.78);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	cursor: zoom-out;
}

.gp-lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
	max-height: min(92vh, 940px);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transform: translateY(12px) scale(0.985);
	transition: transform 0.3s ease;
}

.gp-lightbox.is-open .gp-lightbox-dialog {
	transform: none;
}

.gp-lightbox-stage {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.25);
}

.gp-lightbox-img {
	max-width: 100%;
	max-height: min(78vh, 820px);
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.gp-lightbox-bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0 0.25rem;
}

.gp-lightbox-caption {
	margin: 0;
	color: #f3f7f4;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
}

.gp-lightbox-counter {
	flex-shrink: 0;
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(243, 247, 244, 0.75);
}

.gp-lightbox-close {
	position: absolute;
	top: -0.35rem;
	right: -0.15rem;
	z-index: 2;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gp-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.28);
}

.gp-lightbox-nav {
	position: absolute;
	top: 42%;
	z-index: 2;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.45rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gp-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: scale(1.04);
}

.gp-lightbox-prev {
	left: -0.35rem;
}

.gp-lightbox-next {
	right: -0.35rem;
}

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

@keyframes gpRise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 991px) {
	.gp-page {
		--gp-header-offset: 136px;
	}

	.gp-sidebar {
		position: static;
	}

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

	.gp-lightbox-prev {
		left: 0.35rem;
	}

	.gp-lightbox-next {
		right: 0.35rem;
	}

	.gp-lightbox-close {
		top: 0.15rem;
		right: 0.15rem;
	}
}

@media (max-width: 767px) {
	.gp-page {
		--gp-header-offset: 102px;
	}

	.gp-bc-list {
		border-radius: 14px;
		padding: 0.65rem 0.9rem;
	}

	.gp-title {
		font-size: clamp(1.55rem, 7vw, 2rem);
	}

	.gp-lede {
		padding-bottom: 1.25rem;
	}

	.gp-deck {
		font-size: 0.98rem;
		margin-bottom: 1rem;
	}
}

@media (max-width: 575px) {
	.gp-page {
		--gp-header-offset: 98px;
	}

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

	.gp-main {
		padding: 1.15rem 1rem 1.05rem;
	}

	.gp-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}

	.gp-top {
		padding-top: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-lede,
	.gp-main,
	.gp-album,
	.gp-photo,
	.gp-album-media img,
	.gp-photo-media img,
	.gp-side-feed-item,
	.gp-lightbox,
	.gp-lightbox-dialog {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}
