/** Created by RezaRaza.com **/

@keyframes slowZoom {
	from {
		transform: scale(0.8);
	}
	to {
		transform: scale(1);
	}
}
body {
	font-family: 'Comfortaa', sans-serif;
	margin: 0;
	color: #333;
}
.header-top {
	text-align: center;
}
.tombstone {
	width:130px;
	display:block;
	margin: auto;
}

header {
	text-align: center;
	padding: 10px 20px 10px;
	font-family: 'Pacifico', cursive;
	font-size: 2em;
}
h2.subtitle {
	text-align: center;
	margin: 0px 20px 10px 20px;
	font-weight: bold;
	font-size: 1em;
	color: #555;
}
.music-button {
	text-align: center;
	margin: 20px 0;
}
.music-button button {
	background: white;
	border: 3px solid black;
	border-radius: 50px;
	padding: 10px 20px 10px 20px;
	font-size: 1em;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s ease;
	font-weight: 900;
	color: black;
}
.music-button button:hover {
	background: #EEEEEE;
}
.gallery {
	display: flex;
	width: 100%;
	height: auto;
	max-height: 700px;
	margin-bottom: 20px;
}
.thumbnails {
	width: 50%;
	overflow-y: auto;
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	justify-content: start;
	gap: 4px;
}
.thumbnails img {
	height: 80px;
	cursor: pointer;
	border-radius: 10px;
	margin: 4px;
}
.main-photo {
	width: 50%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	box-sizing: border-box;
	overflow: hidden;
	flex-direction: column;
}
.main-photo img {
	max-width: 100%;
	max-height: 600px;
	min-height: 600px;
	border-radius: 10px;
	opacity: 1;
	transition: opacity 0.5s ease;
}
#mainPhoto {
	animation: slowZoom 5s ease-in-out forwards;
	max-height: 600px;
	border-radius: 10px;
	transition: transform 0.3s;
	cursor: pointer;
}
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	color: #000;
	padding: 10px;
	cursor: pointer;
	z-index: 1;
	font-size: 1.5em;
	border-radius: 50%;
	user-select: none;
	width: 20px;
	height: 20px;
	border: 2px solid black;
	display: flex;
	align-items: center;
	justify-content: center;
}
.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.photo-controls {
	margin-top: 10px;
	display: flex;
	gap: 15px;
	justify-content: center;
}

.icon-button {
	background: white;
	border: 0px solid black;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	cursor: pointer;
	transition: background 0.3s ease;
}

.icon-button:hover {
	background: #eeeeee;
}

#fullscreenOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

#fullscreenOverlay img {
	max-height: 96vh;
	max-width: 96vw;
	border-radius: 0px;
}

#fullscreenOverlay .arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	color: white;
	padding: 10px;
	cursor: pointer;
	z-index: 10000;
	font-size: 3em;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	border: 0px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
}

#fullscreenOverlay .left { left: 20px; }
#fullscreenOverlay .right { right: 20px; }

.comment-section {
	display: flex;
	padding: 30px 70px;
}
.tribute {
	width: 50%;
	padding-right: 20px;
}
.prints-section {
	display: flex;
	padding: 30px 70px;
}
.prints {
	width: 50%;
	padding: 20px;
	text-align: center;
}
.prints img {
	width: 150px;
	border: 3px solid #000;
	border-radius: 300px;
}
.form-section {
	width: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.form-section form {
	width: 100%;
	max-width: 440px;
	text-align: left;
	margin-bottom: 50px;
	font-size: 1em;
}
.form-section form textarea,
.form-section form input[type="text"] {
	width: 100%;
	margin-bottom: 10px;
	padding: 20px;
	box-sizing: border-box;
	font-family: inherit;
	border: 3px solid black;
	border-radius: 50px;
	background: white;
	transition: background 0.3s ease;
}
.form-section form textarea:focus,
.form-section form input[type="text"]:focus {
	background: #EEEEEE;
	outline: none;
}
.form-section textarea {
	height: 150px;
}
.form-section button {
	background: white;
	border: 3px solid black;
	border-radius: 50px;
	padding: 20px;
	font-size: 1em;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.3s ease;
	color: black;
}
.form-section button:hover {
	background: #EEEEEE;
}
.g-recaptcha {
	margin: 10px;
	color: #FF5555;
}
.comments {
	margin-top: 20px;
	width: 100%;
	max-width: 400px;
}
.comment {
	border-bottom: 1px solid #000000;
	padding: 0px 0px 10px 0px;
	margin-bottom:30px;
}
.comment .author {
	font-size: 1.1em;
	font-weight: bold;
}
.comment .date {
	font-size: 0.9em;
	color: #666;
}
.main-photo video {
	max-width: 100%;
	max-height: 600px;
	min-height: 600px;
	border-radius: 10px;
}
@media (max-width: 768px) {
	body {
	background: none;
}
	.tombstone {
		width:30%;
		display:block;
	}
	.gallery {
		flex-direction: column-reverse;
		align-items: center;
	}

	.main-photo {
		width: 100%;
		padding: 0;
		min-height: 60vh;
	}

	.main-photo img,
	.main-photo video {
		width: 100%;
		height: auto;
		max-height: 100vh;
		object-fit: contain;
		border-radius: 0;
	}

	.thumbnails {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		padding: 10px;
	}

	.comment-section {
		flex-direction: column;
		padding: 20px;
	}

	.tribute,
	.form-section {
		width: 100%;
		padding: 0;
	}

	.tribute {
		margin-bottom: 30px;
	}
	
	.prints-section {
		padding: 20px;
	}

	.prints {
		width: 50%;
		padding: 0px;
		text-align: center;
	}
	
	.prints img {
		width: 150px;
		border: 3px solid #000;
		border-radius: 300px;
	}
}