
.dpg {
	--dpg-bg: #0f0f0f;
	--dpg-card: #111111;
	--dpg-media: #4a4a4a;
	--dpg-text: #f3f1ed;
	--dpg-muted: #a9a7a2;
	--dpg-line: rgba(255,255,255,.22);
	--dpg-gap: 18px;

	width: 100%;
	padding: 92px 0 110px;
	background: var(--dpg-bg);
	color: var(--dpg-text);
}

.dpg,
.dpg * {
	box-sizing: border-box;
}

.dpg__shell {
	width: min(92vw, 1480px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.dpg__shell[hidden] {
	display: none;
}

.dpg__about[hidden] {
	display: none;
}

.dpg__intro {
	position: sticky;
	top: 110px;
	min-width: 0;
}

.dpg__eyebrow,
.dpg__description,
.dpg__filter,
.dpg__caption {
	font-family: "Montserrat", Arial, sans-serif;
}

.dpg__eyebrow {
	margin: 0 0 22px;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #d6d3cd;
}

.dpg__title {
	margin: 0;
	font-family: "Oswald", Arial, sans-serif;
	font-size: clamp(34px, 3.2vw, 52px);
	font-weight: 300;
	line-height: .98;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dpg-text);
}

.dpg__title span {
	display: block;
}

.dpg__rule {
	width: 42px;
	height: 1px;
	margin: 30px 0 28px;
	background: rgba(255,255,255,.7);
}

.dpg__description {
	max-width: 290px;
	font-size: 17px;
	line-height: 1.72;
	color: var(--dpg-muted);
}

.dpg__description p {
	margin: 0 0 1em;
}

.dpg__content {
	min-width: 0;
}

.dpg__filters {
	width: min(92vw, 1480px);
	margin: 0 auto 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 32px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--dpg-line);
}

.dpg__filter {
	position: relative;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0 0 11px;
	color: #b9b6b0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .22s ease;
}

.dpg__filter::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -17px;
	width: 0;
	height: 1px;
	background: #fff;
	transition: width .25s ease;
}

.dpg__filter:hover,
.dpg__filter.is-active {
	color: #fff;
}

.dpg__filter.is-active::after {
	width: 100%;
}

/* === "About" button: sits at the end of the same filter row, but
     styled as a distinct pill/outline so it doesn't read as another
     category — it swaps the whole gallery for the About text below,
     rather than filtering it. === */
.dpg__about-btn {
	appearance: none;
	margin-left: auto;
	padding: 8px 20px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 999px;
	background: transparent;
	color: #d6d3cd;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.dpg__about-btn:hover,
.dpg__about-btn.is-active {
	background: rgba(255,255,255,.08);
	border-color: rgba(255,255,255,.7);
	color: #fff;
}

.dpg__about-btn[hidden] {
	display: none;
}

/* === "About" content: replaces the gallery entirely when the About
     button is active. === */
     left sidebar and unaffected by the category filters. === */
.dpg__about {
	width: min(92vw, 1480px);
	max-width: 720px;
	margin: 0 auto;
}

.dpg__about-title {
	margin: 0;
	font-family: "Oswald", Arial, sans-serif;
	font-size: clamp(30px, 3.2vw, 48px);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dpg-text);
}

.dpg__about .dpg__rule {
	margin: 26px 0 24px;
}

.dpg__about-desc {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.75;
	color: var(--dpg-muted);
	max-width: 720px;
	margin: 0 auto;
	padding: 30px 34px;
	border: 1px solid var(--dpg-line);
	border-radius: 4px;
	background: rgba(255,255,255,.03);
}

.dpg__about-desc p {
	margin: 0 0 1em;
}

/* === Masonry layout: a real "shortest column first" masonry run by
     JS (assets/js), so images flow in near-linear reading order
     instead of one whole column being a single category. Items are
     positioned with transform (GPU-friendly) once JS measures them;
     until then they simply stack full-width so the gallery is still
     readable with JS disabled or before the first layout pass. === */
.dpg__grid {
	position: relative;
	opacity: 0;
	transition: opacity .25s ease;
}

.dpg__grid.dpg__grid--ready {
	opacity: 1;
}

.dpg__item {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	transition: transform .3s ease, width .3s ease;
	will-change: transform;
}

.dpg__grid:not(.dpg__grid--ready) .dpg__item {
	position: static;
	width: 100% !important;
	transform: none !important;
	margin-bottom: var(--dpg-gap);
}

.dpg__item.is-hidden {
	display: none;
}

.dpg__card {
	background: var(--dpg-card);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0,0,0,.10), 0 8px 20px -6px rgba(0,0,0,.20);
	transition: box-shadow .25s ease, transform .25s ease;
}

.dpg__card:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 14px 30px -8px rgba(0,0,0,.28);
	transform: translateY(-2px);
}

.dpg__media {
	display: block;
	width: 100%;
	overflow: hidden;
	background: var(--dpg-media);
}

.dpg__media img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--dpg-media);
	transition: transform .35s ease, filter .35s ease;
}

.dpg__card:hover .dpg__media img {
	transform: scale(1.015);
}

.dpg[data-image-style="grayscale"] .dpg__media img {
	filter: grayscale(1) contrast(1.03);
}

.dpg[data-image-style="grayscale"] .dpg__card:hover .dpg__media img {
	filter: grayscale(1) contrast(1.07);
}

.dpg__caption {
	min-height: 72px;
	padding: 14px 16px 16px;
	background: #0b0b0b;
	border-top: 1px solid rgba(255,255,255,.05);
}

.dpg__caption h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dpg-text);
}

.dpg__caption p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .02em;
	color: var(--dpg-muted);
}

/* === Zoom trigger (image click target) === */
.dpg__zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	appearance: none;
}

.dpg__zoom:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* === Lightbox === */
.dpg__lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: rgba(6, 6, 6, .92);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
}

.dpg__lightbox[hidden] {
	display: none;
}

.dpg__lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.dpg__lightbox-frame {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dpg__lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	background: var(--dpg-media);
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.dpg__lightbox-caption {
	margin-top: 16px;
	max-width: 90vw;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 13px;
	letter-spacing: .04em;
	text-align: center;
	color: var(--dpg-muted);
}

.dpg__lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 50%;
	background: rgba(255,255,255,.04);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	transition: background .2s ease, border-color .2s ease;
}

.dpg__lightbox-close:hover,
.dpg__lightbox-close:focus-visible {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.6);
	outline: none;
}

.dpg__lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 50%;
	background: rgba(255,255,255,.04);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	appearance: none;
	transition: background .2s ease, border-color .2s ease;
}

.dpg__lightbox-prev { left: 20px; }
.dpg__lightbox-next { right: 20px; }

.dpg__lightbox-nav:hover,
.dpg__lightbox-nav:focus-visible {
	background: rgba(255,255,255,.12);
	border-color: rgba(255,255,255,.6);
	outline: none;
}

.dpg__lightbox-nav[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.dpg__lightbox {
		padding: 18px;
	}

	.dpg__lightbox-close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 22px;
	}

	.dpg__lightbox-nav {
		width: 42px;
		height: 42px;
		font-size: 22px;
	}

	.dpg__lightbox-prev { left: 8px; }
	.dpg__lightbox-next { right: 8px; }

	.dpg__lightbox-img {
		max-height: 76vh;
	}
}

@media (max-width: 1100px) {
	.dpg__shell {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 34px;
	}
}

@media (max-width: 767px) {
	.dpg {
		padding: 58px 0 72px;
		--dpg-gap: 6px;
	}

	.dpg__shell {
		width: min(92vw, 720px);
		display: block;
	}

	.dpg__intro {
		position: static;
		margin-bottom: 36px;
	}

	.dpg__about-btn {
		margin-left: 0;
		padding: 7px 16px;
		font-size: 11px;
	}

	.dpg__title {
		font-size: clamp(34px, 10vw, 46px);
	}

	.dpg__description {
		max-width: 100%;
		font-size: 16px;
		line-height: 1.7;
	}

	.dpg__filters {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 26px;
		padding-bottom: 0;
		border-bottom: 0;
		overflow: visible;
	}

	.dpg__filter {
		flex: 0 1 auto;
		margin: 0;
		padding: 10px 12px;
		border: 1px solid rgba(255,255,255,.28);
		white-space: nowrap;
		font-size: 16px;
		line-height: 1.1;
		letter-spacing: .10em;
	}

	.dpg__filter::after {
		display: none;
	}

	.dpg__filter.is-active {
		border-color: rgba(255,255,255,.82);
		background: rgba(255,255,255,.04);
	}

	.dpg__caption {
		min-height: 68px;
		padding: 13px 14px 15px;
	}

	.dpg__caption h3 {
		font-size: 13px;
	}

	.dpg__caption p {
		font-size: 12px;
	}
}

@media (max-width: 420px) {
	.dpg {
		padding-top: 50px;
	}

	.dpg__shell {
		width: 94vw;
	}

	.dpg__eyebrow {
		font-size: 10px;
	}

	.dpg__description {
		font-size: 13px;
	}

	.dpg__filter {
		font-size: 16px;
		padding: 9px 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dpg__filter,
	.dpg__filter::after,
	.dpg__about-btn,
	.dpg__media img,
	.dpg__item,
	.dpg__grid,
	.dpg__lightbox,
	.dpg__lightbox-close {
		transition: none;
	}
}
