
.depb-gallery-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(18px, 4vw, 44px);
	font-family: inherit;
}
.depb-gallery-header {
	text-align: center;
	margin-bottom: 28px;
}
.depb-gallery-header h2 {
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.1;
	margin: 0 0 10px;
}
.depb-gallery-header p {
	margin: 0 auto 20px;
	max-width: 640px;
	font-size: 16px;
	opacity: 0.85;
}
.depb-search-form {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.depb-search-form input {
	min-width: min(100%, 320px);
	padding: 14px 16px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	font-size: 16px;
}
.depb-search-form button,
.depb-clear-search,
.depb-photo-actions a,
.depb-photo-actions button,
.depb-modal-download {
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, opacity .18s ease;
}
.depb-search-form button,
.depb-photo-actions a,
.depb-modal-download {
	background: #111;
	color: #fff;
}
.depb-clear-search,
.depb-photo-actions button {
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
}
.depb-search-form button:hover,
.depb-clear-search:hover,
.depb-photo-actions a:hover,
.depb-photo-actions button:hover,
.depb-modal-download:hover {
	transform: translateY(-1px);
	opacity: .92;
}
.depb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
}
.depb-photo-card {
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}
.depb-open-modal {
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	display: block;
	width: 100%;
	cursor: zoom-in;
}
.depb-open-modal img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}
.depb-photo-meta {
	padding: 16px;
	display: grid;
	gap: 12px;
}
.depb-photo-meta strong {
	font-size: 16px;
	letter-spacing: .03em;
}
.depb-photo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.depb-empty {
	padding: 28px;
	text-align: center;
	border: 1px dashed rgba(0, 0, 0, .2);
	border-radius: 20px;
}
.depb-pagination {
	margin-top: 28px;
}
.depb-pagination .page-numbers {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}
.depb-pagination .page-numbers a,
.depb-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	text-decoration: none;
	background: rgba(0, 0, 0, .08);
}
.depb-pagination .page-numbers .current {
	background: #111;
	color: #fff;
}
.depb-modal[hidden] {
	display: none;
}
.depb-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 18px;
}
.depb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .82);
}
.depb-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 720px);
	max-height: 94vh;
	overflow: auto;
	padding: 20px;
	border-radius: 28px;
	background: #fff;
	text-align: center;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.depb-modal-dialog h3 {
	margin: 4px 50px 4px;
	font-size: clamp(22px, 3vw, 34px);
}
.depb-modal-code {
	margin: 0 0 14px;
	font-weight: 700;
	opacity: .78;
}
.depb-modal-dialog img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 68vh;
	object-fit: contain;
	margin: 0 auto 16px;
	border-radius: 18px;
}
.depb-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	background: rgba(0, 0, 0, .08);
}
body.depb-modal-open {
	overflow: hidden;
}
@media (max-width: 640px) {
	.depb-photo-actions a,
	.depb-photo-actions button {
		flex: 1 1 auto;
		text-align: center;
	}
}
