/* Basic resets */
:root {
	--bg: #fff;
	--fg: #111;
	--muted: #666;

	/* Horika app palette — gentle purple/pink/blue hues */
	--horika-1: #eecfff;
	/* soft pink-lavender */
	--horika-2: #cda3ff;
	/* mid purple */
	--horika-3: #8fd6ff;
	/* soft sky blue */
	--horika-accent: rgba(255, 255, 255, 0.14);
}

* {
	box-sizing: border-box
}

/* Basic resets */
:root {
	--bg: #fff;
	--fg: #111;
	--muted: #666;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
	color: var(--fg);
	/* Make the Horika animated gradient the full page background */
	background: linear-gradient(90deg, var(--horika-1), var(--horika-2), var(--horika-3));
	background-size: 300% 300%;
	animation: horikaGradientShift 12s ease-in-out infinite;
	min-height: 100vh;
}

/* Top header: title & description */
.hero {
	padding: 3rem 1rem;
	text-align: center;
	position: relative;
	overflow: hidden;
	/* transparent so the page background shows through; content sits above the animated background */
	background: transparent;
	color: var(--fg);
}

/* subtle, soft overlay to add texture and a highlight behind the header content */
.hero .soft-light {
	position: absolute;
	inset: 0;
	pointer-events: none;
	mix-blend-mode: overlay;
	background: radial-gradient(600px 300px at 10% 20%, rgba(255, 255, 255, 0.12), transparent 12%),
		radial-gradient(500px 240px at 85% 80%, rgba(255, 255, 255, 0.06), transparent 14%);
	filter: blur(18px) saturate(1.08);
	opacity: 0.95;
}

.hero-content {
	max-width: 1100px;
	margin: 0 auto;
	color: var(--fg);
}

.hero-title {
	margin: 0 0 0.25rem 0;
	font-size: 3.2rem;
	font-weight: 700;
}

.hero-desc {
	margin: 0 0 1rem 0;
	color: var(--muted);
	font-size: 1.2rem;
	line-height: 1.8;
}

.hero-button {
	margin-top: 1rem;
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

/* App Store button */
.app-store-button {
	margin: 3.1rem;
	display: block;
}

/* Submit button/label used for the pure-CSS sheet toggle */
.button-submit-photo {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.85);
	background: #fff;
	color: var(--fg);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 150ms ease, transform 90ms ease, box-shadow 150ms ease;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.button-submit-photo:hover {
	background: #f6f6f6;
}

.button-submit-photo:active {
	transform: translateY(1px);
}

.button-submit-photo:focus {
	outline: 3px solid rgba(0, 0, 0, 0.06);
	outline-offset: 3px;
}

/* Featured section: large randomly selected image */
.featured {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

.featured-img {
	display: block;
	max-width: 90vw;
	max-height: 70vh;
	height: auto;
	object-fit: contain;
	object-position: center center;
	border-radius: 6px;
	box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.25);
}

.featured.hero--cover .featured-img,
.featured-img.cover {
	width: 100%;
	height: 60vh;
	object-fit: cover;
}

/* Decorative separator between the featured image and the gallery */
/* Simple separator element between featured and gallery */
.separator {
	margin: 0 auto;
	width: 90px;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.08));
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	opacity: 0.95;
}

@media (max-width: 600px) {
	.separator {
		width: 48px;
		height: 5px;
	}
}

/* gradient animation */
@keyframes horikaGradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* Respect users' reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.hero {
		animation: none;
		background-size: auto;
	}

	.hero .soft-light {
		filter: none;
		opacity: 0.9;
	}
}

/* Gallery: two-column masonry-style flow (as originally) */
.container {
	max-width: 1100px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.gallery {
	column-count: 2;
	column-gap: 1rem;
}

.gallery-item {
	break-inside: avoid;
	margin-bottom: 1rem;
}

.gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
	.gallery {
		column-count: 1;
	}

	.hero {
		padding: 2rem 1rem;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Footer */
.site-footer {
	padding: 1.25rem 1rem;
	background: linear-gradient(180deg, #fafafa, #f4f4f4);
}

.site-footer .footer-content {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
	color: var(--muted);
}

.site-footer a {
	color: var(--fg);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer small {
	font-size: 0.9rem;
}

/* iOS-like bottom sheet (pure CSS) */
.sheet-toggle {
	display: none;
}

.sheet-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, 0.18);
	z-index: 100;
	-webkit-tap-highlight-color: transparent;
}

.sheet-backdrop {
	position: absolute;
	inset: 0;
	cursor: default;
}

.sheet {
	width: 100%;
	max-width: 720px;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
	background: #fff;
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(100%);
	transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
	will-change: transform;
}

.sheet-handle {
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sheet-handle::before {
	content: '';
	width: 36px;
	height: 5px;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	display: block;
}

.sheet-body {
	padding: 1rem 1.25rem 2rem;
}

.sheet h2 {
	margin: 0 0 .5rem 0;
	font-size: 1.125rem;
}

.sheet-close {
	border: 1px solid #111;
	background: transparent;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
}

/* When the checkbox is checked, reveal overlay and slide up the sheet */
.sheet-toggle:checked~.sheet-overlay {
	display: flex;
}

.sheet-toggle:checked~.sheet-overlay .sheet {
	transform: translateY(0%);
}

/* On small screens keep it tall, on larger screens limit height */
@media (max-width: 420px) {
	.sheet {
		border-top-left-radius: 12px;
		border-top-right-radius: 12px;
	}
}

@media (min-width: 720px) {
	.sheet {
		border-radius: 12px;
		width: 560px;
		margin-bottom: 24px;
	}

	.sheet-overlay {
		justify-content: center;
	}
}



/* --- PURE CSS :target LIGHTBOX (reworked) ------------------------------- */
/* Simpler :target-based lightbox using a background-image on a span. */
.lightbox {
	/* Default to hidden */
	display: none;

	/* Overlay entire screen */
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	align-items: center;
	justify-content: center;

	/* A bit of padding around image */
	padding: 1.5rem;

	/* Frosted white glass overlay */
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(12px) saturate(120%);
	backdrop-filter: blur(12px) saturate(120%);

	/* allow scrolling if content taller than viewport */
	overflow: auto;
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
	display: flex;
}

.lightbox span {
	/* Full width and height within padding */
	display: block;
	width: min(1100px, 96%);
	height: 77vh;

	/* Size and position background image */
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;

	/* Make the span behave like an image box */
	border-radius: 10px;
	object-fit: contain;
}

/* Optional close control inside the lightbox; links back to the gallery anchor */
.lightbox .lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.06);
	color: #111;
	text-decoration: none;
	font-size: 14px;
	padding: .4rem .6rem;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 720px) {
	.lightbox span {
		height: 60vh;
	}
}

/* New structure styles for info under the image */
.lightbox {
	/* ensure the overlay is able to contain scrollable panel content */
	overflow: auto;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	display: block;
	background: transparent;
	text-decoration: none;
}

.lb-panel {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	padding: 4rem 2.25rem;
	box-shadow: 0 18px 50px rgba(3, 6, 12, 0.12);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

.lb-image {
	width: 100%;
	height: 100%;
	max-height: 77vh;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border-radius: 10px;
	/* fallback while image loads */
}

.lb-info {
	width: 100%;
	max-width: 860px;
	color: #111;
	text-align: left;
	font-size: 15px;
	line-height: 1.45;
}

.lb-info h3 {
	margin: 0 0 .25rem 0;
	font-size: 1.125rem;
}

.lb-info p {
	margin: 0 0 .5rem 0;
	color: #333;
}

.lb-info a {
	color: #1e66ff;
	text-decoration: underline;
}

@media (max-width: 720px) {
	.lb-image {
		height: 50vh;
	}

	.lb-info {
		text-align: center;
	}
}