#content {
	min-height: calc(100vh - 100px);
	padding: 30px 20px 100px;
	box-sizing: border-box;
}

#header-container {
	text-align: center;
	margin: 4px auto 30px;
	width: min(780px, 100%);
	padding: 22px 18px 20px;
	border-radius: 22px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	background: linear-gradient(125deg, rgba(255, 243, 214, 0.75), rgba(255, 220, 240, 0.72), rgba(230, 237, 255, 0.8));
	box-shadow: 0 8px 28px rgba(63, 21, 75, 0.16);
	position: relative;
	overflow: hidden;
	animation: header-enter 700ms ease-out both;
}

#header-container::before,
#header-container::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	z-index: 0;
}

#header-container::before {
	width: 150px;
	height: 150px;
	top: -65px;
	right: -38px;
	background: rgba(255, 255, 255, 0.42);
}

#header-container::after {
	width: 115px;
	height: 115px;
	left: -42px;
	bottom: -58px;
	background: rgba(255, 255, 255, 0.37);
}

.header-chip,
#header-label,
#header-text,
.header-tags {
	position: relative;
	z-index: 1;
}

.header-chip {
	display: inline-block;
	margin: 0;
	padding: 7px 14px;
	border-radius: 999px;
	font-family: "Trebuchet MS", "Segoe UI", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.88);
	color: #6b3b7d;
	box-shadow: 0 2px 10px rgba(107, 59, 125, 0.22);
	animation: fade-rise 520ms ease-out 120ms both;
}

#header-label {
	margin-top: 10px;
	font-size: clamp(38px, 7vw, 66px);
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	font-family: "Gill Sans", "Trebuchet MS", sans-serif;
	animation: fade-rise 560ms ease-out 210ms both;
}

.label-pop {
	color: #5e2e8c;
	text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
	animation: float-pop 3.6s ease-in-out infinite;
}

.label-splash {
	color: #ff6f8f;
	margin-left: 10px;
	text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.82);
	animation: float-pop 3.6s ease-in-out infinite 0.35s;
}

#header-text {
	margin-top: 10px;
	font-size: clamp(16px, 2.6vw, 20px);
	letter-spacing: 0.4px;
	color: #492754;
	animation: fade-rise 560ms ease-out 320ms both;
}

.header-tags {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 13px;
	flex-wrap: wrap;
	animation: fade-rise 560ms ease-out 420ms both;
}

.header-tags span {
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: rgba(255, 255, 255, 0.8);
	color: #5a2d68;
}

#info-container {
	display: flex;
	justify-content: center;
}

#artwork-container {
	width: min(1100px, 100%);
	display: grid;
	gap: 28px;
}

.gallery-section {
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 18px;
	padding: 22px;
	backdrop-filter: blur(5px);
	opacity: 0;
	animation: section-enter 650ms cubic-bezier(0.18, 0.85, 0.3, 1) both;
}

.gallery-section:nth-child(1) {
	animation-delay: 260ms;
}

.gallery-section:nth-child(2) {
	animation-delay: 420ms;
}

.gallery-title {
	margin: 0 0 18px;
	font-size: 28px;
	text-transform: lowercase;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
}

.gallery-grid:has(.art-card:nth-child(4)) {
	--scroll-gap: 16px;
	display: flex;
	gap: var(--scroll-gap);
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.gallery-grid:has(.art-card:nth-child(4)) .art-card {
	flex: 0 0 calc((100% - (var(--scroll-gap) * 2)) / 3);
	scroll-snap-align: start;
}

.art-card {
	background: rgba(255, 255, 255, 0.82);
	border-radius: 14px;
	padding: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transform: translateY(14px);
	animation: card-enter 520ms ease-out both;
}

.art-image-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	border-radius: 10px;
}

.art-image-trigger:focus-visible {
	outline: 3px solid rgba(94, 46, 140, 0.45);
	outline-offset: 3px;
}

.art-image {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 10px;
	border: 2px solid rgba(77, 16, 92, 0.18);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(250, 228, 245, 0.8));
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.art-image-trigger:hover .art-image,
.art-image-trigger:focus-visible .art-image {
	transform: scale(1.02);
	box-shadow: 0 10px 20px rgba(77, 16, 92, 0.2);
}

.gallery-grid .art-card:nth-child(1) {
	animation-delay: 520ms;
}

.gallery-grid .art-card:nth-child(2) {
	animation-delay: 630ms;
}

.gallery-grid .art-card:nth-child(3) {
	animation-delay: 740ms;
}

.art-image-placeholder {
	min-height: 190px;
	border-radius: 10px;
	border: 2px dashed rgba(77, 16, 92, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: rgba(77, 16, 92, 0.8);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(250, 228, 245, 0.8));
}

.art-title {
	margin: 12px 0 4px;
	font-size: 18px;
}

.art-meta {
	margin: 0;
	font-size: 14px;
	opacity: 0.75;
}

body.lightbox-open {
	overflow: hidden;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 7, 23, 0.84);
	backdrop-filter: blur(2px);
}

.lightbox-dialog {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 1100px);
	max-height: 90vh;
	padding: 12px 12px 16px;
	border-radius: 16px;
	background: rgba(250, 245, 255, 0.98);
	box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
	transform: translateY(8px) scale(0.98);
	transition: transform 180ms ease;
}

.lightbox.is-open .lightbox-dialog {
	transform: translateY(0) scale(1);
}

#lightbox-image {
	display: block;
	width: auto;
	max-width: min(86vw, 1050px);
	height: auto;
	max-height: 76vh;
	margin: 0 auto;
	border-radius: 10px;
	object-fit: contain;
}

#lightbox-caption {
	margin: 10px 6px 0;
	text-align: center;
	font-size: 14px;
	color: #462956;
	text-transform: capitalize;
}

.lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 999px;
	background: #ffffff;
	color: #4b2d59;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
	#content {
		padding: 22px 14px 100px;
	}

	#header-label {
		font-size: 36px;
	}

	.header-tags {
		gap: 8px;
	}

	.header-tags span {
		font-size: 11px;
		padding: 5px 10px;
	}

	.gallery-section {
		padding: 16px;
	}

	.gallery-title {
		font-size: 24px;
	}

	.lightbox-dialog {
		max-width: 94vw;
		padding: 10px 10px 12px;
	}

	.lightbox-close {
		top: -10px;
		right: -10px;
	}
}

@keyframes float-pop {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-4px);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes header-enter {
	0% {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes fade-rise {
	0% {
		opacity: 0;
		transform: translateY(8px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes section-enter {
	0% {
		opacity: 0;
		transform: translateY(16px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes card-enter {
	0% {
		opacity: 0;
		transform: translateY(14px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#header-container,
	.header-chip,
	#header-label,
	#header-text,
	.header-tags,
	.gallery-section,
	.art-card,
	.art-image,
	.label-pop,
	.label-splash {
		animation: none !important;
		opacity: 1;
		transform: none;
	}

	.lightbox,
	.lightbox-dialog,
	.art-image {
		transition: none;
	}
}
