@keyframes fadeInAnimation {

 	0% { opacity: 0; }
    100% { opacity: 1; }

}

* {
	font-size: 24px;
	font-style: normal;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	outline: none;
		
		-webkit-tap-highlight-color: rgba(0,0,0,0);

	-ms-overflow-style: none;
	scrollbar-width:none

}

html, 
body {
	background-color: #000;
	color: #E2EBEB;
	font-family: "Cormorant", serif;
	font-weight: 400;
	line-height: 1.3;
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;


	-ms-overflow-style: none;
  	scrollbar-width: none;
}

html {
	
}

body {
	-ms-overflow-style: none;
	scrollbar-width:none
}

body::-webkit-scrollbar {
	display:none
}

main {
	width: 100vw;
	min-height: 100dvh;
	margin-bottom: 4rem;

	opacity: 0;
    animation: fadeInAnimation 1.5s ease-in-out 0.5s forwards;
}

ul {
	padding: 0;
	margin: 0;
}

li {
	list-style: none;
}

h1,
h2,
h3 {
	color: #FFE7DF;
	font-family: "Lacquer", system-ui;
	font-weight: 400;
	font-style: normal;
	text-transform: lowercase;
}

h1 {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

a {
	color: #FFE7DF;
	font-family: "Lacquer", system-ui;
	text-decoration: none;

	cursor: pointer;
}

a:hover {

}

a:visited {
	color: #FFE7DF;
}

p a {
	font-family: "Cormorant", serif;
	font-size: 1rem;
	color: #E2EBEB !important;
	text-decoration: underline;
}

/**** IMAGE GRID ****/

.overlay,
.overlay-content {
    display: none; /* Ensure it's hidden on load */
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
}

.overlay {
	z-index: 10000;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
}

.overlay-content {
	z-index: 10001;
	width: 25rem;
	max-width: 100%;
	aspect-ratio: 1/1;
	position: relative; /* Needed for absolute positioning of img */
	overflow: hidden;
	display: block;
}

.overlay-content img,
.overlay-content video {
	z-index: 10002;
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: absolute;
}

/* When active, show overlay and allow interaction */
.overlay.active,
.overlay-content.active {
    display: flex; /* Show when active */
    pointer-events: auto;
}


.image_grid_container {
	padding: 1rem 5rem 1rem 1rem;
	margin-top: 3rem;

}

.image_grid_container p{
	margin-bottom: 2rem;
}

.image_grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}

.image_grid_item {
    display: inline-block;
    aspect-ratio: 1/1;
    position: relative; /* Needed for absolute positioning of img */
    overflow: hidden;
}

.image_grid_item img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the image */
    
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is visible */

    cursor: pointer;
}

.play-button {
    position: absolute;
    background-image: url('/assets/images/works/farm/2022/bowandarrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}





@media only screen and (max-width: 25rem) {
	.overlay-content {
		width: 100%;
	}
}

@media only screen and (max-width: 899px) {

	* {
		font-size: 16px;

	}

	header nav ul li a img {
		width: 2rem;
	}

	.lauren-marchese {
		top: ;
		right: 5rem !important;
	}

	.image_grid {
		grid-template-columns: repeat(4, 1fr);
	}

}

@media only screen and (max-width: 599px) {
	.image_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
