body {
	margin: 0;
}
.gallery-container {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	will-change: filter;
}
.gallery-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	z-index: 1;
}
.gallery-slide.active {
	opacity: 1;
	z-index: 2;
}
.gallery-hint {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;

	color: rgba(255, 255, 255, 0.85);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	text-align: center;
	white-space: nowrap;

	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);

	padding: 8px 18px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);

	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

	pointer-events: none;
}
.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 4;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: center;
	align-items: center;

	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active {
	opacity: 1;
	pointer-events: auto;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}
.modal-content {
	max-width: 800px;
	width: 800px;
	max-height: 80vh;
	overflow: scroll;
	padding: 40px;
	border-radius: 24px;
	text-align: center;
	background: #fff;
	color: #000;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);

	transform: scale(0.9) translateY(20px);
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-content {
	transform: scale(1) translateY(0);
}
.letter-form {
	display: flex;
	position: relative;
	flex-direction: column;
	gap: 15px;
}
.field-wrapper label {
	display: block;
	text-align: left;
	font-weight: bold;
	width: 100%;
	margin-bottom: 5px;
	font-size: 18px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.field-wrapper input[type="text"],.field-wrapper textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;

	padding: 14px 20px;
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	outline: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	transition: all 0.3s ease; 
}
.field-wrapper input[type="text"]:focus,.field-wrapper textarea:focus {
	border-color: #7c3aed;
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
	transform: translateY(-1px);
}
.field-wrapper textarea {
	resize: vertical;
	min-height: 300px;
}
.letter-submit {
	display: inline-block;
	border: none;
	background: #F36C22;
	text-shadow: none;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	color: white;
}
.letter-hint {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-10px);
	visibility: hidden;
	opacity: 0;
	border-radius: 5px;
	padding: 5px;
	font-weight: bold;
	margin-bottom: 5px;
	transition: opacity 0.7s ease, visibility 0.4s ease;
}
.letter-hint.active {
	opacity: 1;
	visibility: visible;
}
.letter-hint.saved {
	background: #00da00;
}
.letter-hint.error {
	background: #ff8e8e;
}
.letter-success {
	display: none;
}