/* Reset */
*,*::before,*::after{box-sizing:border-box}*{margin:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}

/* Font Faces */
@font-face {
	font-family: 'contra';
	src: url('contra-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

/* Variables */
:root {
	--color-brown: #3f3636;
	--color-brown-lighter: #c2b9b9;
	--color-brown-light: #9e9797;
	--color-brown-border: #3f3636;
	--light-overlay: rgba(255,255,255,0.5);
	--border-radius-small: 4px;
	--border-radius: 7px;
	--scroll-shadows: linear-gradient(0deg, #3f363633 0%, #3f363600 3%, #3f363600 97%, #3f363633 100%);
}

/* Main Styles */
body {
	background: url(memoriam-bg.jpg) no-repeat center fixed #c5bdba;
	background-size: cover;
	font-family: contra, serif;
	font-size: 16px;
	color: var(--color-brown);
}

body > * {
	padding: 45px;
}

header {
	height: 20vh;
	display: flex;
	justify-content: space-between;
}

section {
	display: flex;
	gap: 25px;
	height: 77vh;
}

section > div {
	flex: 1 0 auto;
}

footer {
	height: 3vh;
	padding: 0 45px;
	text-align: center;
	color: var(--color-brown-light);
}


h1 {
	margin: 0;
	font-size: 4rem;
	font-weight: normal;
	line-height: 1;
	letter-spacing: -0.1rem;
}

h1 span {
	font-size: 2.8rem;
	color: var(--color-brown-light);
}

h2 {
	font-size: 2rem;
	font-weight: normal;
	font-style: italic;
	letter-spacing: -0.1rem;
}

a.button {
	padding: 3px 15px 1px;
	background: var(--light-overlay);
	border: 1px solid var(--color-brown-border);
	border-radius: var(--border-radius-small);
	text-decoration: none;
	color: var(--color-brown);
	transition: all 240ms ease-out;
	font-weight: bold;
}

a.button:hover {
	background: var(--color-brown);
	color: var(--color-brown-lighter);
}

a.button:active {
	font-style: italic;
}

a.button.large {
	padding: 10px;
	border-radius: var(--border-radius);
}

img {
	width: 100%;
	height: auto;
	padding: 5px;
	border: 5px solid var(--color-brown-lighter);
	border-radius: var(--border-radius-small);
}

.donations {
	text-align: center;
}

.donations h3 {
	font-size: 1.3rem;
	font-weight: normal;
	margin-bottom: 0.5rem;
}

#mary {
	flex-basis: 20%;
	text-align: center;
}

#mary .image img {
	position: relative;
	transform: scale(1);
	transform-origin: center left;
	transition: all 240ms ease-out;
	background-color: #fff;
	z-index: 10;
}

#mary .image:hover img {
	transform: scale(2);
	cursor: zoom-in;
}

#mary .button {
	position: relative;
	display: block;
	margin: 2rem 0 0;
	font-size: 1.1rem;
}

#mary .button:last-child {
	cursor: n-resize;
	user-select: none;
}

#mary .button:last-child:active {
	font-style: normal;
}

#mary .button:last-child img {
	display: none;
	position: absolute;
	bottom: 45px;
	left: 0;
	height: auto;
	width: 100%;
	padding: 0;
	z-index: 10;
}

#mary .button:last-child:hover img {
	display: block;
}

.obituary {
	flex-shrink: 1;
	position: relative;
	padding: 5px 0 2rem;
	background: var(--scroll-shadows);
	border-radius: 10px;
	overflow-y: auto;
}

.obituary p {
	margin: 1rem 0;
	padding: 0 20px;
}

.messages {
	flex-basis: 33%;
	position: relative;
	padding: 0 20px 0 0;
	background: var(--scroll-shadows);
	border-radius: var(--border-radius);
	text-align: center;
	overflow-y: auto;
}

.message {
	display: flex;
	flex-direction: column;
	position: relative;
	background: var(--light-overlay);
	margin: 2rem 0;
	padding: 1rem;
	border: 1px solid #d3cece;
	border-radius: var(--border-radius);
	z-index: -1;
}

.message:first-child {
	margin-top: 0;
}

.message:last-child {
	margin-bottom: 0;
}

.message h3 span {
	display: block;
	color: #8e8a8a;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.message h3 {
	order: 1;
}

.message h4 {
	order: 3;
	color: var(--color-brown-light);
	font-size: 0.8rem;
	margin-top: 0.7rem;
}

.message p {
	order: 2;
	text-align: left;
}

.messages a:last-child {
	display: inline-block;
	margin: 0 0 3rem;
}

@media screen and (min-width: 1400px) {
	section {
		gap: 55px;
	}
}

@media screen and (max-width: 1111px) {
	h1 {
		font-size: 2.8rem;
	}

	h1 span {
		font-size: 1.8rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	header, section, footer {
		height: auto;
	}

	section, footer {
		flex-wrap: wrap;
		padding: 20px;
	}

	#mary {
		flex-basis: 40%;
		margin: 0 auto;
		flex-grow: 0;
	}

	#mary .image:hover img {
		transform: scale(1);
		cursor: default;
	}

	#mary a.button:last-child {
		display: none;
	}

	.obituary, .messages {
		background: none;
		margin-bottom: 2rem;
		padding-right: 0;
	}
}

@media screen and (max-width: 900px) {
	header {
		justify-content: center;
		text-align: center;
	}

	.donations {
		display: none;
	}
}

@media screen and (max-width: 700px) {
	body > * {
		padding: 1rem;
	}

	h1 {
		font-size: 2.4rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	p {
		font-size: 1.2rem;
	}

	#mary {
		flex-basis: 80%;
	}

	.obituary p {
		padding: 0;
	}
}