body {
	margin: 0;
	padding: 0;
	background: url('https://www.masonmcnay.com/images/bg-liminal-01.jpg') no-repeat center center fixed;
	background-size: cover;
	font-family: Arial, sans-serif;
	color: rgba(255, 255, 255, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
}
footer.sticky-footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #6C757D;
}
.grey-div{background-color: #6C757D;}
.text-center{
  text-align: center;
}
/* Semi-transparent dark overlay */
body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	/*backdrop-filter: blur(3px);*/
	z-index: 1; /* Ensure overlay is behind main content */
}

/* Menu */
.menu {
	position: absolute;
	top: 20px;
	display: flex;
	gap: 30px;
	font-size: 1.2rem;
	text-transform: lowercase;
	letter-spacing: 0.1em;
	z-index: 2;
}

.menu a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.3s ease, transform 0.3s ease;
	text-transform: uppercase;
}

.menu a:hover {
	color: rgba(255, 255, 255, 0.9);
	transform: scale(1.1); /* Slight zoom on hover */
}

/* Main title with glow effect */
.welcome {
	font-family: 'Cormorant Garamond', serif;
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.9);
	text-align: center;
	margin-top: -50px;
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 5px rgba(0, 0, 0, 0.8);
	animation: fadeIn 2s ease-in forwards, flicker 3s infinite;
	z-index: 3; /* Main content appears above background sunflower */
}

.sub-welcome {
	font-family: 'Courier New', monospace;
	font-size: 1rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px 10px #000;
	animation: fadeIn 2s ease-in forwards, flicker 3s infinite;
	z-index: 3;
	margin-top: 10px;
}

.form-container {
	background: #ffffff;
	max-width: 600px;
	width: 90%;
	padding: 30px;
	margin: 20px auto;
	border-radius: 8px;
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
	text-align: center;
	z-index: 2;
}

.form-container h1 {
	font-size: 2rem;
	color: #333;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.form-container label {
	display: block;
	font-size: 1rem;
	color: #666;
	margin-top: 10px;
	text-align: left;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="file"],
.form-container textarea {
	width: 100%;
	padding: 10px 10px 10px 2px;
	margin: 5px 0 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	color: #333;
}

.form-container textarea {
	resize: vertical;
}

.form-container button {
	background: #333;
	color: #fff;
	border: none;
	padding: 10px 10px 10px 2px;
	font-size: 1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
	width: 100%;
	margin: 5px 0 15px;
}

.form-container button:hover {
	background: #555;
}

.form-container input[type="file"] {
	background: #f9f9f9;
	padding: 10px 10px 10px 2px;
}

/* Gallery container */
.gallery-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust to show multiple columns on larger screens */
	gap: 20px;
	max-width: 1200px;
	padding-top: 120px;
	width: 100%;
	z-index: 2;
	margin: 0 auto;
}

/* Individual gallery item */
.gallery-item {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.gallery-item img {
	width: 100%;
	height: auto; /* Ensures the image keeps its aspect ratio */
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* Image hover effect */
.gallery-item:hover img {
	transform: scale(1.05); /* Slight zoom effect */
}

.dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dialog-overlay.show {
	opacity: 1;
}

.dialog-title {
	font-size: 1.5rem;
	color: #333;
	margin: 0 0 10px; /* Space between title and description */
	font-weight: bold;
}

.dialog-box {
	background: #ffffff;
	color: #333;
	padding: 20px;
	border-radius: 8px;
	max-width: 90%;
	width: 400px;
	text-align: center;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.dialog-text {
	font-size: 1rem;
	margin: 0;
}

/* Highlighted gallery item */
.gallery-item.focused {
	transform: scale(1.1);
	z-index: 9;
	transition: transform 0.3s ease;
}

.hidden {
	display: none;
}

.background-sunflower {
	position: fixed; /* Fixed position to stay in place */
	top: 56.75%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px; /* Adjust size as needed */
	height: auto;
	opacity: 0.15;
	z-index: 2; /* Ensure it's visible above overlay but below text */
	animation: miniFadeIn 2s ease-in forwards, miniFlicker 3s infinite;
	text-shadow: 1px 1px 10px #000;
}

/* Keyframes */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes miniFadeIn {
	from { opacity: 0; }
	to { opacity: .15; }
}

@keyframes typewriter {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes flicker {
	0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
		opacity: 1;
	}
	20%, 22%, 24%, 55% {
		opacity: 0.6;
	}
}

@Keyframes miniFlicker {
	0%, 19%, 21%, 23%, 25%, 54%, 56%, 200% {
		opacity: .15;
	}
	20%, 22%, 24%, 55% {
		opacity: .1;
	}
}

/* Mobile styling adjustments */
@media (max-width: 987px) {
	.menu {
		font-size: .55rem !important;
	}
	.welcome {
		font-size: 1.5rem !important;
	}
	.sub-welcome {
		font-size: .75rem !important;
	}
	.form-container {
		padding: 20px;
	}
	.form-container h1 {
		font-size: 1.15rem !important;
	}
	.gallery-container {
		/*padding: 120px 20px 40px 20px; /* Additional top padding to accommodate menu */
		padding-top: 0 !important;
		grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); /* Show more than one image per row on smaller screens */
		max-height: 468px;
		overflow-y: scroll;
	}
	.background-sunflower{
		width: 200px !important;
	}
}