.sdg-album-grid,
.sdg-image-grid {
	display: grid;
	grid-template-columns: repeat(var(--sdg-columns, 3), minmax(0, 1fr));
	gap: 24px;
}

.sdg-album-card {
	overflow: hidden;
	border: 1px solid #e7e9ee;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 7px 24px rgba(16, 43, 78, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdg-album-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(16, 43, 78, 0.12);
}

.sdg-album-cover {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eef1f5;
}

.sdg-album-cover img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.sdg-album-card:hover .sdg-album-cover img {
	transform: scale(1.035);
}

.sdg-album-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 42px;
	color: #7c8796;
}

.sdg-image-count-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(13, 49, 91, 0.9);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.sdg-album-card-body {
	padding: 18px;
}

.sdg-album-date,
.sdg-album-meta,
.sdg-album-categories {
	font-size: 13px;
	color: #6b7280;
}

.sdg-album-title {
	margin: 6px 0 8px;
	font-size: 19px;
	line-height: 1.35;
}

.sdg-album-title a {
	color: #102b4e;
	text-decoration: none;
}

.sdg-album-title a:hover,
.sdg-album-title a:focus,
.sdg-album-categories a:hover,
.sdg-album-categories a:focus {
	text-decoration: underline;
}

.sdg-album-categories a {
	color: inherit;
}

.sdg-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 30px;
}

.sdg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #dce1e8;
	border-radius: 5px;
	background: #fff;
	color: #102b4e;
	text-decoration: none;
}

.sdg-pagination .current {
	border-color: #102b4e;
	background: #102b4e;
	color: #fff;
}

.sdg-single-album {
	margin-top: 28px;
}

.sdg-album-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 20px;
	padding: 12px 16px;
	border: 1px solid #e7e9ee;
	border-radius: 6px;
	background: #f8fafc;
}

.sdg-meta-item + .sdg-meta-item::before {
	content: "•";
	margin-right: 16px;
	color: #a0a7b2;
}

.sdg-image-item {
	margin: 0;
}

.sdg-image-item > a {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #eef1f5;
}

.sdg-image-item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sdg-image-item a:hover img,
.sdg-image-item a:focus img {
	transform: scale(1.04);
}

.sdg-image-zoom {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(13, 49, 91, 0.88);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sdg-image-item a:hover .sdg-image-zoom,
.sdg-image-item a:focus .sdg-image-zoom {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.sdg-image-item figcaption {
	padding-top: 7px;
	font-size: 13px;
	color: #687180;
}

.sdg-empty-state {
	padding: 24px;
	border: 1px dashed #cbd1da;
	border-radius: 6px;
	background: #f8fafc;
	text-align: center;
}

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

.sdg-lightbox[hidden] {
	display: none;
}

.sdg-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.sdg-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 10, 20, 0.92);
}

.sdg-lightbox-dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	width: min(1200px, 100%);
	max-height: 94vh;
}

.sdg-lightbox-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.sdg-lightbox-image {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
	box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.sdg-lightbox-info {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding-top: 12px;
	color: #fff;
	font-size: 14px;
}

.sdg-lightbox-close,
.sdg-lightbox-prev,
.sdg-lightbox-next {
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
}

.sdg-lightbox-close:hover,
.sdg-lightbox-close:focus,
.sdg-lightbox-prev:hover,
.sdg-lightbox-prev:focus,
.sdg-lightbox-next:hover,
.sdg-lightbox-next:focus {
	background: rgba(255, 255, 255, 0.24);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sdg-lightbox-close {
	position: absolute;
	top: -8px;
	right: 0;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 30px;
	line-height: 1;
}

.sdg-lightbox-prev,
.sdg-lightbox-next {
	width: 46px;
	height: 56px;
	margin: 0 12px;
	border-radius: 5px;
	font-size: 28px;
}

@media (max-width: 1024px) {
	.sdg-album-grid,
	.sdg-image-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sdg-album-grid,
	.sdg-image-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.sdg-lightbox {
		padding: 12px;
	}

	.sdg-lightbox-dialog {
		grid-template-columns: 1fr;
	}

	.sdg-lightbox-prev,
	.sdg-lightbox-next {
		position: absolute;
		top: 50%;
		z-index: 2;
		margin: 0;
		transform: translateY(-50%);
	}

	.sdg-lightbox-prev {
		left: 4px;
	}

	.sdg-lightbox-next {
		right: 4px;
	}

	.sdg-lightbox-info {
		font-size: 12px;
	}
}
