/* =========================================
   0. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================= */
:root {
	/* Colors */
	--color-text: rgb(0, 0, 0);
	--color-text-hover: rgb(0, 25, 255);
	--color-text-active: darkred;
	--color-bg: #ffffff;
	--color-border: rgba(0, 0, 0, 0.15);
	--color-button-bg: rgba(128, 128, 128, 0.3);
	--color-button-icon: white;

	/* Typography */
	--font-primary: 'Diatype Variable', system-ui, -apple-system, sans-serif;
	--font-size-base: 1rem;
	--font-size-small: 0.75rem;
	--font-size-grid: clamp(9px, 0.8vw, 11px);
	--line-height-base: 1;
	--letter-spacing: 0.1px;
	--word-spacing: 0.5px;

	/* Spacing (Fluid) */
	/* --spacing-unit: clamp(0.8rem, 1vw, 1.2rem);
	--spacing-section: clamp(1.5rem, 3vw, 3rem);
	--spacing-grid: clamp(0.4rem, 0.8vw, 0.6rem); */
	--spacing-unit: clamp(0.5rem, 0.7vw, 0.75rem);
	--spacing-section: clamp(1.1rem, 2.4vw, 1rem);
	--spacing-grid: clamp(0.2rem, 0.5vw, 0.35rem);

	/* Layout & Z-index */
	--layout-max-width: 100%;
	--layout-grid-columns: 4;
	--layout-grid-item-min-width: 0;
	--z-hero-image: 1;
	--z-scroll-indicator: 300;
	--z-vertical-line: 250;
	--z-modal: 999;

	/* Effects */
	--transition-fast: 0.2s ease;
	--blur-amount: 5px;
	--mask-gradient: linear-gradient(
		to right,
		transparent,
		rgba(0, 0, 0, 0.4) 48%,
		black 50%,
		rgba(0, 0, 0, 0.4) 52%,
		transparent
	);
}

/* =========================================
   1. BASE & RESET
   ========================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	/* font-size: clamp(14px, 0.8vw, 16px);
	scrollbar-width: none;
	-ms-overflow-style: none; */
	font-size: clamp(10px, 0.55vw, 13px);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar {
	display: none;
}

body {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	letter-spacing: var(--letter-spacing);
	word-spacing: var(--word-spacing);
	color: var(--color-text);
	background: var(--color-bg);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

hr {
	width: 96%;
	margin: var(--spacing-section) auto;
	border: none;
	height: 1px;
	background-color: var(--color-border);
}

@font-face {
	font-family: 'Diatype Variable';
	src: url('/assets/font/DiatypePlusVariable.woff2') format('woff2');
	font-weight: 500 1000;
	font-display: swap;
}

/* =========================================
   2. GLOBAL LINKS
   ========================================= */
a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:visited {
	color: var(--color-text);
}
a:hover {
	color: var(--color-text-hover);
}
a:active {
	color: var(--color-text-active);
}

/* =========================================
   3. HERO SECTION & SCROLL NAV
   ========================================= */
.hero-section {
	position: relative;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.hero-image-container {
	position: relative;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: var(--z-hero-image);
	pointer-events: none;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	pointer-events: auto;
	cursor: zoom-in;
}

/* Scroll Navigation (Top Right) */
.scroll-nav-wrapper {
	position: fixed;
	top: 0.6rem;
	right: 0.6rem;
	display: flex;
	gap: 0.5rem;
	max-width: 50vw;
	z-index: var(--z-scroll-indicator);
}

.scroll-link {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.85rem;
	font-weight: bold;
	letter-spacing: 0.5px;
	color: var(--color-text);
	background-color: var(--color-bg);
	backdrop-filter: blur(var(--blur-amount));
	cursor: pointer;
	white-space: nowrap;
	flex: 1 1 auto;
	min-width: 0;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.scroll-link:hover {
	transform: translateY(-1px);
	background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
	.scroll-nav-wrapper {
		gap: 0.6rem;
		max-width: 47vw;
		height: 1.5rem;
	}
	.scroll-link {
		padding: 0.2rem 0.3rem;
		font-size: 0.55rem;
		gap: 0.2rem;
	}
}

/* =========================================
   4. INFO SECTION
   ========================================= */
.info-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--spacing-unit);
	max-width: var(--layout-max-width);
	margin: 0 auto;
	padding: var(--spacing-section) 0;
}

.row {
	display: flex;
	justify-content: center;
	gap: 2rem;
}

.row p {
	width: 95%;
}

.column {
	flex: 1;
	font-weight: normal;
	padding: 0 1px;
}

.column.left {
	text-align: right;
}
.column.right {
	text-align: left;
	width: 9%;
}
.column.right p {
	margin-bottom: 0.6rem;
}

/* =========================================
   5. SELECTED WORKS SECTION
   ========================================= */
.selectedwork-section {
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
	padding: var(--spacing-section) 0;
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(var(--layout-grid-columns), 1fr);
	width: 100%;
	overflow: hidden;
}

.grid-item {
	padding: var(--spacing-grid);
	text-align: left;
	min-width: var(--layout-grid-item-min-width);
	font-size: var(--font-size-grid);
	overflow: hidden;
}

.grid-item img {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: var(--spacing-grid);
	cursor: zoom-in;
}

/* =========================================
   6. FOOTER & BOTTOM BAR
   ========================================= */
.footer-section {
	background: var(--color-bg);
	padding: var(--spacing-section) 0;
}

.bottom-bar {
	display: grid;
	grid-template-columns: 1fr 0.5fr 0.5fr;
	align-items: center;
	width: 100%;
	font-size: var(--font-size-small);
	line-height: var(--line-height-base);
}

.copyright {
	grid-column: 1;
	justify-self: start;
	margin: 0 0.6rem;
}

.instagram {
	grid-column: 2;
	justify-self: left;
	margin: 0 0.6rem;
	cursor: pointer;
}

.email {
	grid-column: 3;
	justify-self: end;
	margin: 0 0.6rem;
	cursor: pointer;
}

/* =========================================
   7. OVERLAYS & UTILITIES
   ========================================= */
.vertical-line {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 100vh;
	isolation: isolate;
	pointer-events: none;
	z-index: var(--z-vertical-line);
}

.vertical-line img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 100%;
	width: auto;
	-webkit-mask-image: var(--mask-gradient);
	mask-image: var(--mask-gradient);
	pointer-events: none;
}

.layer1 {
	height: 100%;
	mix-blend-mode: screen;
}
.layer2 {
	height: 100%;
	mix-blend-mode: multiply;
}

/* =========================================
   8. GLIGHTBOX CUSTOM OVERRIDES
   ========================================= */
.gdesc,
.gslide-description,
.gslide-title,
.gslide-desc {
	display: none !important;
}

.gbtn {
	width: 2rem !important;
	height: 2rem !important;
	background: var(--color-button-bg) !important;
	border-radius: 50% !important;
	backdrop-filter: blur(6px) !important;
	border: none !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition:
		background 0.2s ease,
		transform 0.2s ease !important;
	opacity: 1 !important;
	overflow: visible !important;
	padding: 0 !important;
}

.gbtn:hover {
	background: rgba(128, 128, 128, 0.5) !important;
	transform: scale(1.05) !important;
}

.gbtn svg {
	width: 0.875rem !important;
	height: 0.875rem !important;
	fill: var(--color-button-icon) !important;
	stroke: var(--color-button-icon) !important;
}

.gslide-image,
.gslide-media img {
	max-height: 97vh !important;
	max-width: 97vw !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

.goverlay {
	background: rgba(255, 255, 255, 1) !important;
}

.gslide {
	padding: 0 !important;
}

/* Hide nav arrows for single-image galleries (Hero) */
.glightbox-single .gbtn-prev,
.glightbox-single .gbtn-next,
.gcontainer[data-gallery='hero'] .gbtn-prev,
.gcontainer[data-gallery='hero'] .gbtn-next,
.hero-modal .gbtn-prev,
.hero-modal .gbtn-next {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

body.lightbox-open {
	overflow: hidden;
}

/* =========================================
   9. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 768px) {
	.grid-container {
		grid-template-columns: repeat(var(--layout-grid-columns), 1fr);
	}
	.grid-item {
		font-size: var(--font-size-grid);
	}
}
