
@font-face {
	font-family: 'Signifier';
	src: url('../fonts/signifier-light.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Signifier';
	src: url('../fonts/signifier-light-italic.woff2') format('woff2');
	font-weight: normal;
	font-style: italic;
}

/* ==========================================================================
   Base Styles and Reset
   ========================================================================== */
:root {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
  -webkit-user-select: none;
  -webkit-text-size-adjust: 100%;
}

html {
	overflow-x: hidden;
	width: 100%;
	max-width: 100%;
}

body, html {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Signifier', Times New Roman, Times, serif;
	color: rgb(66, 66, 66);
	overflow-wrap: break-word;
	overflow-x: hidden;
	text-wrap-mode: wrap;
	vertical-align: baseline;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	-webkit-user-select: text;
	font-size: 30px;
	line-height: 34px;
	text-align: left;
	letter-spacing: 0.2px;
	width: 100%;
	max-width: 100%;
}

/* ==========================================================================
   Typography and Links
   ========================================================================== */
a {
	color: rgb(66, 66, 66);
	text-decoration: none;
	opacity: 1;
	transition: opacity 0.5s ease;
}

a:hover {
	opacity: 0.68;
}

.active {
	border-bottom: 2px solid currentcolor;
	padding-bottom: 0px;
	font-style: italic;
}

em {
	font-style: italic;
	font-family: 'Signifier', Times New Roman, Times, serif;
}

.gray {
	color: #aeaeae;
}

.link {
	border-bottom: 1px solid;
}

.link-height {
	line-height: 40px;
}

.read-more {
	display: inline-block;
	margin-top: 10px;
	cursor: pointer;
	transition: opacity 0.5s ease;
}

sup {
	font-size: 0.5em;
	vertical-align: super;
	padding-left: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-container {
	position: fixed;
	width: 100%;
	padding: 10px 10px 15px 10px;
	background-color: white;
	transition: top 0.3s;
	display: grid;
	grid-template-columns: 50% auto;
	gap: 10px;
	z-index: 1000;
}

.nav-item {
	display: inline-block;
	cursor: pointer;
}

#nav-1 a + a {
	margin-left: 10px;
}

#nav a {
	transition: color 0.3s ease;
}

.scrolled {
	/* color: rgb(222, 225, 230); */
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.main-wrapper {
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	width: 100%;
	max-width: 100%;
}

.top-section {
	min-height: 100vh;
	display: flex;
	align-items: flex-end; 
	padding: 10px;
	box-sizing: border-box;
}

/* Grid Layouts */
.top-images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	row-gap: 10px;
	column-gap: 10px;
	width: 100%;
	max-width: 100%;
	justify-items: stretch;
	align-items: end;
}

.remaining-images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 0px 10px 10px 10px;
	align-items: end;
	justify-items: stretch;
}

.image-row {
	display: contents;
}

.words {
	padding: 200px 10px 50px 10px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	width: 100%;
}

/* Image Containers */
.container {
	display: flex;
	flex-direction: column;
	margin: 0;
	justify-content: flex-start !important;  
	align-items: stretch;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.image-container {
	position: relative;
	text-align: left;
}

.image-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: auto;
	position: relative;
}

/* Image Styles */
img {
	border-radius: 0px;
	will-change: transform;
	backface-visibility: hidden;
	transform: translateZ(0);
	-webkit-font-smoothing: subpixel-antialiased;
}

.top-images img,
.remaining-images img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.container img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.image-caption {
    font-family: 'Signifier', Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
    color: rgb(66, 66, 66);
	letter-spacing: 0.2px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    display: block;
    flex-shrink: 0;
    width: 100%;
}

/* ==========================================================================
   Image Hover and Lightbox
   ========================================================================== */
.hover-image {
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 1;
	transform-origin: center;
}

.hover-image:hover {
	opacity: 0.95;
}

.plus-icon {
	position: absolute;
	top: 5px;
	right: 10px;
	width: 24px;                  
	height: 24px;   
	font-size: 20px;             
	text-align: center;
	color: white;
	border-radius: 50%;
	opacity: 0;
	transition: 0.3s;
	pointer-events: none;
	display: none;
}

.image-wrapper:hover .plus-icon {
	opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
	display: none;
	position: fixed;
	z-index: 9000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0);
	transition: background-color 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.lightbox-modal.active {
	background-color: rgba(255, 255, 255, 0.98);
}

.lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9001;
}

.lightbox-content img {
	position: absolute;
	max-height: 80vh;
	max-width: 90vw;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
	transform: translate(var(--x), var(--y)) scale(var(--scale));
	will-change: transform;
}

.lightbox-content.active img {
	transform: translate(0, 0) scale(1);
}

#lightboxCaption,
.lightbox-caption {
	display: none !important;
	visibility: hidden;
	opacity: 0;
	position: absolute;
	pointer-events: none;
}

/* Navigation Buttons */
.nav-btn {
	position: absolute;
	top: 48%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: rgb(66, 66, 66);
	padding: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	z-index: 9002;
}

.prev-btn {
	left: 20px;
}

.next-btn {
	right: 20px;
}

.nav-btn svg {
	width: 32px;
	height: 32px;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	color: rgb(66, 66, 66);
	cursor: pointer;
	background: transparent;
	border: none;
	z-index: 9002;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.close-btn:hover {
	opacity: 0.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-sequence {
	opacity: 0;
	animation: fadeInOut 3s ease-in-out forwards;
	animation-delay: 0.6s;
}

@keyframes fadeSlideUp {
	from {
		opacity: 0;
		transform: translateY(0px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInOut {
	0% {
		opacity: 0;
		transform: translateX(0px);
	}
	20% {
		opacity: 1;
		transform: translateX(0);
	}
	80% {
		opacity: 1;
		transform: translateX(0);
	}
	100% {
		opacity: 0;
		transform: translateX(0px);
		visibility: hidden;
	}
}

/* Home Page Specific Animations */
#home-1 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
}

#home-2 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.2s;
}

#home-4 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.4s;
}

/* Fade Classes */
.fade-1 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.0s;
}

.fade-2 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.2s;
}

.fade-3 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.4s;
}

.fade-4 {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeSlideUp 1s ease-out forwards;
	animation-delay: 0.6s;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hidden {
	opacity: 0;
	pointer-events: none;
}

.no-scroll {
	overflow: hidden;
	height: 100%;
	position: fixed;
	width: 100%;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 769px) {
	.mobile-gallery {
		display: none;
	}
}

@media only screen and (max-width: 768px) {
	/* Mobile Layout */
	html, body {
		overflow-x: hidden !important;
	}
	
	body {
		font-size: 28px;
		line-height: 32px;
		letter-spacing: normal;
	}
	
	/* Mobile Navigation */
	.nav-container {
		grid-template-columns: 1fr;
		gap: 0px;
	}
	
	#nav-1 {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		width: 100%;
	}
	
	#nav-1 a:first-child {
		flex-shrink: 0;
	}
	
	#nav-1 a:nth-child(2) {
		margin-left: auto;
	}
	
	#nav-1 a:nth-child(3) {
		margin-left: 10px;
	}
	
	.link-height {
		line-height: normal;
	}
	
	/* Mobile Layout Adjustments */
	.top-section {
		height: auto;
		padding: 25vh 0 0 0;
		align-items: center;
		position: relative;
	}
	
	.top-images,
	.remaining-images {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 15px;
		row-gap: 15px;
	}
	
	.top-images {
		padding: 0 10px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.remaining-images {
		padding: 0 10px 10px 10px;
		margin-top: 15px;
	}
	
	.container {
		max-height: none;
		max-width: 100%;
	}
	
	.top-images .container,
	.remaining-images .container {
		width: 100%;
		max-width: 100%;
	}
	
	.top-images img,
	.remaining-images img {
		max-width: 100%;
		width: auto;
		height: auto;
		object-fit: contain;
	}
	
	.image-caption {
		padding-top: 4px;
	}
	
	.image-row {
		gap: 15px;
	}
	
	.words {
		padding-top: 25vh;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	/* Mobile Image Styles */
	.hover-image {
		pointer-events: none;
		cursor: default;
		opacity: 1;
	}
	
	.hover-image:hover {
		opacity: 1;
	}
	
	.plus-icon {
		display: none;
	}
	
	/* Mobile-specific Elements */
	.gallery-container {
		display: none;
	}
	
	.mobile-gallery img {
		width: 100%;
		margin-bottom: 10px;
	}
	
	.space {
		display: none;
	}
	
	/* Mobile Home Page Elements */
	#home-1, #home-2, #home-4 {
		position: absolute !important;
		width: 300px;
	}
	
	#home-1 {
		top: 20vh;
		left: 10px;
	}
	
	#home-2 {
		top: 30vh;
		right: 10px;
	}
	
	#home-4 {
		top: 40vh;
		margin-left: 10%;
		animation: fadeSlideUp 1s ease-out forwards;
		animation-delay: 0.6s;
	}
}
