html, body { margin: 0; padding: 0; height: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 100; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0rem; }

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

html {
  font: 130%/1.3 "Helvetica Neue", Helvetica, sans-serif;
  letter-spacing: 1px;
  font-weight: 200;
  background: linear-gradient(#aca9a9, #eee8e8) fixed no-repeat 0 0 #eee8e8;
  background: var(--background-image) scroll no-repeat 70% center #a87373;
	background-size: cover;
}
body::before {
	content: "";
	position: absolute;
	background: var(--background-image) fixed no-repeat center center #111111;
	background-size: cover;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	display: none;
}
@media (min-width: 768px) {
  body::before {
  	position: fixed;
  }
  body::before {
    display: block;
  }
  html {
    background: linear-gradient(#aca9a9, #eee8e8) fixed no-repeat 0 0 #eee8e8;
  }
}
body::after {
	content: "scroll down \A \2304";
	position: fixed;
	bottom: 14%;
	left: 50%;
	transform: translate(-50%);
	white-space: pre-wrap;
	color: white;
	text-align: center;
	pointer-events: none;
	padding: 1rem;
	transition: opacity 1s;
}
body.scrolled-5::after {
  opacity: 0;
}

a, a:active, a:visited {
  color: black;
  text-decoration: none;
  border-bottom: 1px dotted black;
}

#hero {
  top: 50%;
  left: 50%;
  opacity: 0.0;
  animation: fadein 2s;
  background: var(--hero-image) scroll no-repeat center center white;
	background-size: cover;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	box-shadow: 0 6px 12px rgba(255, 255, 255, 0.5);
	margin: -180px 0 0 -163.5px;
	border: 15px solid white;
  content: "";
  color: white;
  text-align: center;
  font-size: 2em;
  position: fixed;
}
main {
	margin-top: 100vh;
	padding-bottom: 50%;
}
main > section {
	margin: 1rem auto;
	margin: 0.75rem auto;
	width: 80%;
	background-color: white;
	padding: 2rem;
	position: relative;
}
.clearfix::after {
	content: " ";
	display: block;
	clear: both;
}
nav {
	position: fixed;
	bottom: 0;
	color: white;
	padding: 1rem 1rem;
	width: calc(100% - 2rem);
	background: linear-gradient(-45deg, #ffaaaa54, #c67979e8);
	border-radius: 1rem 1rem 0 0;
}
.float-right {
	float: right;
}
.float-left {
	float: left;
}
nav a, nav a:visited, nav a:active {
	color: white;
	text-decoration: none;
	font-size: 1rem;
	padding: 0 0.25rem;
	transition: color 0.5s;
	border-bottom: none;
}
nav a.active {
	color: black;
}

section.day {
	text-align: center;
	font-size: 2rem;
	background-color: transparent;
	color: white;
	text-shadow: 0 0 5px #0000001f;
}


#links, body.menu::after {
  display: none;
}
body.menu #links {
  display: block;
  float: none;
}
body.menu #links a {
	display: block;
	padding: 1rem 0;
	text-align: center;
	font-size: 2rem;
}
body.menu #hamburger::before, body.menu #hamburger::after {
  display: none;
}
body.menu #hamburger span {
	height: auto;
	font-size: 2rem;
	line-height: 1rem;
	background-color: transparent;
}
#hamburger {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-size: 0;
	line-height: 0;
	width: 2.5rem;
	margin-top: 0.125rem;
}
#hamburger::before, #hamburger::after, #hamburger span {
	background-color: white;
	height: 3px;
	width: 100%;
	content: "";
	display: inline-block;
	font-size: 0;
	line-height: 0;
	margin: 2px 0;
}
@media(min-width: 768px) {
  #hamburger {
    display: none;
  }
  #links {
    display: block;
  }
}


.frd-fmly, .fam-only {
	font-size: 1rem;
	line-height: 2rem;
	background-color: #ecc5c5;
	color: white;
	padding: 0.25rem 0.5rem;
}
.frd-fmly {
  
}



#title {
  font-size: 1rem;
}
@media(min-width: 768px) {
  #title {
    font-size: 1.5rem;
  }
}




.gallery {
	width: calc(100% + 4rem);
	margin: -2rem 0 1rem -2rem;
	position: relative;
}
.gallery-scroller {
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
}
@media(min-width: 768px) {
  .gallery {
  	float: right;
  	width: 50%;
  	margin: 0 0 0 1rem;
  	cursor: pointer;
  	overflow: hidden;
  }
  .gallery-scroller {
    overflow: hidden;
  }
}
.gallery-scroller img {
	width: 100%;
	height: auto;
	display: inline-block;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	scroll-snap-align: start;
}
@media(min-width: 768px) {
  .gallery-scroller {
  	scroll-snap-type: none;
  }
  .gallery-scroller img {
  	scroll-snap-align: none;
  }
}

.dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	width: 100%;
	pointer-events: none;
	text-align: center;
}
.dots span {
	background-color: white;
	width: 10px;
	height: 10px;
	display: inline-block;
	border-radius: 50%;
	margin: 4px;
	opacity: 0.4;
}
.gallery[data-page="0"] .dots span:nth-child(1),
.gallery[data-page="1"] .dots span:nth-child(2),
.gallery[data-page="2"] .dots span:nth-child(3),
.gallery[data-page="3"] .dots span:nth-child(4),
.gallery[data-page="4"] .dots span:nth-child(5),
.gallery[data-page="5"] .dots span:nth-child(6),
.gallery[data-page="6"] .dots span:nth-child(7),
.gallery[data-page="7"] .dots span:nth-child(8),
.gallery[data-page="8"] .dots span:nth-child(9),
.gallery[data-page="9"] .dots span:nth-child(10),
.gallery[data-page="10"] .dots span:nth-child(11),
.gallery[data-page="11"] .dots span:nth-child(12),
.gallery[data-page="12"] .dots span:nth-child(13),
.gallery[data-page="13"] .dots span:nth-child(14),
.gallery[data-page="14"] .dots span:nth-child(15) {
	opacity: 1.0;
}







#rsvp #h2 {
	margin-top: 2rem;
}
#rsvp #h2:first-child {
	margin-top: 0;
}
#rsvp input[type="text"] {
	padding: 1em 1em;
	font-size: 1em;
	display: block;
	width: calc(100% - 60px);
	margin: 0.75rem 0 1.5rem 0;
}
#rsvp input[type="number"] {
	width: auto;
	padding: 0.5rem 1rem;
	font-size: 1em;
	border-radius: 6rem;
	border: 1px solid black;
	display: block;
	width: 3rem;
}
#rsvp em {
	color: white;
	font-weight: bold;
	font-size: 16px;
}
#submit-btn {
	width: calc(100% - 2rem);
	background: linear-gradient(-45deg, #ffaaaa54, #c67979e8);
	color: white;
	padding: 0.5rem 1rem;
	margin: 2rem 0 0 0;
	font-size: 2rem;
	cursor: pointer;
	border-radius: 0 0 10px 10px;
}
#submit-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
#rsvp h4 {
	margin-top: 1rem;
	font-weight: 200;
	color: #A4A4A4;
	border-bottom: 1px solid #DDD;
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
}
#party-size-label {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}
p.success {
	border: 2px solid green;
	padding: 0.5rem 1rem;
	color: green;
	font-style: italic;
	font-weight: bold;
	letter-spacing: 0;
}
p.error {
	border: 2px solid red;
	padding: 0.5rem 1rem;
	color: red;
	font-style: italic;
	font-weight: bold;
	letter-spacing: 0;
}



#rsvps li:last-child, #rsvps {
	margin-bottom: 0 !important;
}
#rsvps {
	padding: 0;
}
#rsvps li {
    list-style: none;
    background-color: #C6DEEC;
    padding: 0rem 1rem;
    color: #487793;
}
#rsvps li:first-child {
    border-radius: 1rem 1rem 0 0;
    padding-top: 0.75rem;
}
#rsvps li:last-child {
    padding-bottom: 0.75rem;
    border-radius: 0 0 1rem 1rem;
}
#rsvps h3 {
	font-weight: 300;
	/* border-bottom: 2px solid white; */
	/* padding-bottom: 1rem; */
}

#rsvp {
  border-radius: 1rem;
	border: 1px solid black;
	padding: 1rem;
	margin-top: 1rem;
}
#rsvp > section {
	border-radius: 1rem;
	border: 1px solid black;
	padding: 1rem;
	margin-top: 1rem;
}
span.total {
	border-radius: 1rem;
	background-color: #76a8c6;
	color: white;
	font-size: ;
	font-weight: bold;
	padding: 1px 9px;
	text-align: center;
}
#rsvp > section > h1 {
	border-bottom: 1px solid black;
	padding-bottom: 0.5rem;
	margin-bottom: 0.5rem;
}








.fullscreen-img {
	position: fixed;
	z-index: 999999999;
	top: 30px;
	left: 30px;
	bottom: 30px;
	right: 30px;
	width: calc(100% - 60px);
	cursor: pointer;
	height: calc(100% - 60px);
	overflow-y: auto;
	box-shadow: 0 0 75px black;
	background-color: white;
	text-align: center;
}
.fullscreen-img img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}