@font-face {
	font-family: 'Milk And Honey';
	src: url('../fonts/MilkAndHoney.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* -----------------------------------------------
   Reset & base
----------------------------------------------- */

*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Times New Roman', Times, serif;
	background: #EDE8D0;
	color: #4B4139;
}

/* -----------------------------------------------
   Navigation
----------------------------------------------- */

#navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: 3rem;
	padding: 1.4rem 3rem;
	background: rgba(34, 54, 49, 0.92);
}

.nav-left {
	justify-content: flex-end;
}

.nav-left,
.nav-right {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-left a,
.nav-right a {
	color: rgba(237, 232, 208, 0.75);
	text-decoration: none;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	font-weight: 400;
	text-transform: uppercase;
	transition: color 0.3s;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left a.active,
.nav-right a.active {
	color: #EDE8D0;
}

.nav-brand a {
	text-transform: uppercase;
	font-family: 'Milk And Honey', cursive;
	font-size: 2rem;
	color: #EDE8D0;
	text-decoration: none;
	white-space: nowrap;
}

.nav-logo {
	height: 80px;
	width: auto;
	display: block;
}

/* -----------------------------------------------
   Hero
----------------------------------------------- */

#portfolio-hero {
	background-color: #223631;
	height: 28vh;
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: 80px;
}

.portfolio-hero-label {
	font-size: 0.65rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(237, 232, 208, 0.6);
	margin-bottom: 0.8rem;
}

.portfolio-hero-title {
	font-family: 'Milk And Honey', cursive;
	font-size: 4.5rem;
	font-weight: 400;
	color: #EDE8D0;
	line-height: 1;
}

/* -----------------------------------------------
   Filtres
----------------------------------------------- */

#filters {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	padding: 2.5rem 2rem 1.5rem;
	background: #EDE8D0;
}

.filter-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Times New Roman', Times, serif;
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 400;
	color: #999;
	padding: 0.4rem 1rem;
	border-bottom: 1px solid transparent;
	transition: color 0.25s, border-color 0.25s;
}

.filter-btn:hover {
	color: #4B4139;
}

.filter-btn.active {
	color: #4B4139;
	border-bottom-color: #4B4139;
}

/* -----------------------------------------------
   Galerie masonry
----------------------------------------------- */

#gallery {
	padding: 1.5rem 14rem 5rem;
	background: #EDE8D0;
}

.masonry {
	columns: 4;
	column-gap: 0.8rem;
}

.photo-item {
	break-inside: avoid;
	margin-bottom: 1rem;
	overflow: hidden;
	cursor: pointer;
}

.photo-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.photo-item:hover img {
	transform: scale(1.03);
	filter: brightness(0.88);
}

.photo-item.hidden {
	display: none;
}

/* -----------------------------------------------
   Lightbox
----------------------------------------------- */

#lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(75, 65, 57, 0.92);
	justify-content: center;
	align-items: center;
}

#lightbox.open {
	display: flex;
}

#lightbox-img-wrap {
	max-width: 88vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#lightbox-img {
	max-width: 88vw;
	max-height: 88vh;
	object-fit: contain;
	display: block;
}

#lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 2rem;
	background: none;
	border: none;
	color: rgba(237, 232, 208, 0.7);
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

#lightbox-close:hover {
	color: #EDE8D0;
}

#lightbox-prev,
#lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(237, 232, 208, 0.6);
	font-size: 3.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0 1.5rem;
	transition: color 0.2s;
}

#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }

#lightbox-prev:hover,
#lightbox-next:hover {
	color: #EDE8D0;
}

/* -----------------------------------------------
   Footer
----------------------------------------------- */

#footer {
	background: #4B4139;
	padding: 2.5rem 2rem;
	text-align: center;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
}

.footer-brand {
	text-transform: uppercase;
	font-family: 'Milk And Honey', cursive;
	font-size: 2rem;
	color: #EDE8D0;
}

.footer-logo {
	height: 60px;
	width: auto;
	display: block;
}

.footer-links {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.footer-links a {
	color: rgba(237, 232, 208, 0.5);
	text-decoration: none;
	font-size: 0.6rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	transition: color 0.3s;
}

.footer-links a:hover {
	color: rgba(237, 232, 208, 0.85);
}

.footer-links span {
	color: rgba(237, 232, 208, 0.3);
}

/* -----------------------------------------------
   Hamburger
----------------------------------------------- */

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.4rem;
	z-index: 200;
}

.hamburger span {
	display: block;
	width: 22px;
	height: 1.5px;
	background: #EDE8D0;
	transition: transform 0.3s, opacity 0.3s;
	transform-origin: center;
}

.hamburger.open span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
	opacity: 0;
}

.hamburger.open span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

#nav-mobile {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(34, 54, 49, 0.97);
	z-index: 150;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
}

#nav-mobile.open {
	display: flex;
}

#nav-mobile a {
	color: rgba(237, 232, 208, 0.8);
	text-decoration: none;
	font-size: 1rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 400;
	transition: color 0.2s;
}

#nav-mobile a:hover,
#nav-mobile a.active {
	color: #EDE8D0;
}

/* -----------------------------------------------
   Responsive
----------------------------------------------- */

@media (max-width: 900px) {
	.masonry {
		columns: 3;
	}

	#gallery {
		padding: 1.5rem 1.5rem 4rem;
	}
}

@media (max-width: 580px) {
	.masonry {
		columns: 1;
	}

	#navbar {
		padding: 1rem 1.2rem;
		column-gap: 0.5rem;
	}

	.nav-brand a {
		font-size: 1.3rem;
	}

	.nav-logo {
		height: 60px;
	}

	.nav-left,
	.nav-right {
		display: none;
	}

	.hamburger {
		display: flex;
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.portfolio-hero-title {
		font-size: 3.2rem;
	}

	#filters {
		flex-wrap: wrap;
	}
}
