.dpg {
	--dpg-cols: 4;
	--dpg-ratio: 4 / 3;
	--dpg-gap: 5px;
	background: #fff;
	color: #2a2a2a;
	width: 100%;
}

.dpg-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 0.85rem 2.6rem;
	margin: 0;
	padding: 2.75rem 1.5rem 1.6rem;
	list-style: none;
}

.dpg-filter {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid transparent;
	padding: 0 0 7px;
	margin: 0;
	cursor: pointer;
	color: #2c2c2c;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.26em;
	line-height: 1.2;
	text-transform: uppercase;
}

.dpg-filter.is-active {
	border-bottom-color: #2c2c2c;
}

.dpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--dpg-cols), minmax(0, 1fr));
	gap: var(--dpg-gap);
}

.dpg-card {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: var(--dpg-ratio);
	margin: 0;
	padding: 0;
	border: 0;
	background: #eceae6;
	color: #fff;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	font: inherit;
}

.dpg-card.is-hidden {
	display: none;
}

.dpg-card img,
.dpg-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dpg-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.25rem;
	background: rgba(18, 18, 18, 0.58);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.dpg-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 58%;
	max-width: 86%;
	min-height: 4.5rem;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.92);
}

.dpg-title {
	font-family: "Sainte Colombe", Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.5vw, 1.55rem);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.dpg-credits {
	max-width: 78%;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.dpg-actions {
	display: flex;
	gap: 0.7rem;
}

.dpg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	color: #fff;
}

.dpg-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

@media (hover: hover) {
	.dpg-card:hover .dpg-overlay,
	.dpg-card:focus-visible .dpg-overlay,
	.dpg-card:focus-within .dpg-overlay {
		opacity: 1;
		pointer-events: auto;
	}
}

.dpg-empty {
	margin: 0;
	padding: 3rem 1.5rem 4rem;
	text-align: center;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dpg-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.3);
}

.dpg-modal[hidden] {
	display: none;
}

.dpg-modal-dialog {
	position: relative;
	display: flex;
	width: min(75vw, 1200px);
	height: min(75vh, 860px);
	background: #fff;
	color: #111;
}

.dpg-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.dpg-modal-layout {
	display: flex;
	gap: 2rem;
	width: 100%;
	height: 100%;
	padding: 3rem 4.5rem 3rem 3rem;
}

.dpg-modal-tools {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	justify-content: center;
	gap: 2rem;
}

.dpg-tool {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: none;
}

.dpg-tool img {
	display: block;
	width: 25px;
	height: auto;
}

.dpg-modal-stage {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.dpg-modal-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: contain;
}

.dpg-modal-caption {
	flex-shrink: 0;
	margin: 0.85rem 0 0;
	color: #4b5563;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.dpg-modal-caption:empty {
	display: none;
}

.dpg-modal-nav {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.dpg-modal-prev {
	left: 0;
}

.dpg-modal-next {
	right: 0;
}

.dpg-modal-nav span {
	display: flex;
	padding: 1rem 0.5rem;
	background: rgba(0, 0, 0, 0.3);
}

.dpg-modal-nav img {
	display: block;
	width: 12px;
	height: 12px;
}

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

body.dpg-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.dpg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.dpg-filters {
		gap: 0.75rem 1.4rem;
		padding: 1.75rem 1rem 1.25rem;
	}

	.dpg-filter {
		letter-spacing: 0.16em;
		font-size: 11px;
	}

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

	.dpg-modal {
		padding: 0;
	}

	.dpg-modal-dialog {
		width: 100%;
		height: 100%;
	}

	.dpg-modal-layout {
		gap: 0.75rem;
		padding: 3.25rem 1rem 1.25rem;
	}

	.dpg-credits {
		max-width: 92%;
	}
}
