.gallery-detail-page {
	padding: 28px 0 64px;
	background: linear-gradient(180deg, var(--theme-background) 0%, color-mix(in srgb, var(--theme-background) 65%, var(--theme-surface)) 34rem);
}

.gallery-detail-page .gallery-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	padding: 10px 14px;
	margin-bottom: 16px;
	background: color-mix(in srgb, var(--theme-surface) 90%, transparent);
	border: 1px solid #e5eaf1;
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
	color: #a1acba;
	font-size: 12px;
	white-space: nowrap;
}

.gallery-detail-page .gallery-breadcrumb a {
	color: #64748b;
	font-weight: 600;
	text-decoration: none;
}

.gallery-detail-page .gallery-breadcrumb span {
	overflow: hidden;
	color: #334155;
	font-weight: 700;
	text-overflow: ellipsis;
}

.gallery-detail-page .gallery-detail-hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	overflow: hidden;
	min-height: 150px;
	padding: 30px 34px;
	margin: 0 0 26px;
	background: linear-gradient(135deg, #101c31, color-mix(in srgb, var(--theme-color) 78%, #17233b));
	border: 0;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
	top: auto;
	z-index: 0;
}

.gallery-detail-page .gallery-detail-hero::after {
	position: absolute;
	top: -125px;
	right: -55px;
	width: 315px;
	height: 315px;
	border: 48px solid rgba(255, 255, 255, .055);
	border-radius: 50%;
	content: "";
}

.gallery-detail-page .gallery-detail-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px;
	color: #fff;
	font-size: 27px;
}

.gallery-detail-page .gallery-detail-hero > div:last-child {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.gallery-detail-page .gallery-detail-kicker {
	display: block;
	margin-bottom: 4px;
	color: #bfdbfe;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
}

.gallery-detail-page .gallery-detail-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(27px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.3;
}

.gallery-detail-page .gallery-detail-hero p {
	margin: 5px 0 0;
	color: #dbeafe;
	font-size: 13px;
}

.gallery-detail-page .gallery-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.gallery-detail-page .gallery-detail-card {
	overflow: hidden;
	background: var(--theme-surface);
	border: 1px solid #e4eaf1;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, .07);
	transition: transform .22s ease, box-shadow .22s ease;
}

.gallery-detail-page .gallery-detail-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 17px 34px rgba(15, 23, 42, .13);
}

.gallery-detail-page .gallery-detail-card > a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e8edf3;
}

.gallery-detail-page .gallery-detail-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease, filter .3s ease;
}

.gallery-detail-page .gallery-detail-card:hover img {
	transform: scale(1.045);
	filter: brightness(.82);
}

.gallery-detail-page .gallery-detail-number,
.gallery-detail-page .gallery-detail-zoom {
	position: absolute;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, .78);
	backdrop-filter: blur(7px);
	color: #fff;
}

.gallery-detail-page .gallery-detail-number {
	top: 10px;
	left: 10px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 800;
}

.gallery-detail-page .gallery-detail-zoom {
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	font-size: 18px;
	opacity: 0;
	transform: translate(-50%, -40%);
	transition: opacity .2s ease, transform .2s ease;
}

.gallery-detail-page .gallery-detail-card:hover .gallery-detail-zoom {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.gallery-detail-page .gallery-detail-card p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0;
	padding: 13px 15px;
	color: #526071;
	font-size: 12px;
	line-height: 1.55;
}

.gallery-detail-page .gallery-empty-state {
	padding: 55px 24px;
	background: var(--theme-surface);
	border: 1px dashed #ccd5e1;
	border-radius: 18px;
	text-align: center;
}

.gallery-detail-page .gallery-empty-state > i {
	margin-bottom: 13px;
	color: var(--theme-color);
	font-size: 38px;
}

.gallery-detail-page .gallery-empty-state h1,
.gallery-detail-page .gallery-empty-state h2 {
	margin: 0 0 7px;
	color: #1f2b3d;
	font-size: 22px;
	font-weight: 800;
}

.gallery-detail-page .gallery-empty-state p {
	color: #718096;
}

.gallery-detail-page .gallery-empty-state a {
	display: inline-flex;
	padding: 9px 15px;
	background: var(--theme-color);
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 991.98px) {
	.gallery-detail-page .gallery-detail-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.gallery-detail-page {
		padding: 16px 0 42px;
	}

	.gallery-detail-page .gallery-detail-hero {
		gap: 14px;
		min-height: 116px;
		padding: 22px 20px;
		border-radius: 16px;
	}

	.gallery-detail-page .gallery-detail-icon {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
		border-radius: 15px;
		font-size: 20px;
	}

	.gallery-detail-page .gallery-detail-hero h1 {
		font-size: clamp(22px, 6.5vw, 29px);
	}

	.gallery-detail-page .gallery-detail-grid {
		gap: 10px;
	}

	.gallery-detail-page .gallery-detail-card {
		border-radius: 12px;
	}

	.gallery-detail-page .gallery-detail-card p {
		display: none;
	}

	.gallery-detail-page .gallery-detail-zoom {
		width: 38px;
		height: 38px;
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}
