@import url('https://fonts.googleapis.com/css?family=Buda:400|Parisienne&display=swap');

body {
  background-color: #f6f6f6;
  margin: 0;
}

body, input, button {  
  font-family: 'Buda', sans-serif;
}

input, button {
  font-weight: 700;
}

.mobile-header {
  display: none;
}

h1 {
  font-family: 'Parisienne';
  font-size: 40px;
  text-align: center;
  font-weight: 300;
}

h2 {
  font-family: 'Parisienne';
  font-size: 48px;
  font-weight: 300;
  margin: 24px 0;
}

img {
  display: block;
  max-width: 100%;
}

.upper-bg img {
  margin: 0 auto;
}

.menu {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu .center {
  margin: 0 60px;
}

.menu ul {
  padding-left: 0;  
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.menu ul li {
  display: inline-block;  
}

.menu ul li a {
  display: block;
  padding: 25px 30px;
  text-decoration: none;
  color: #333;
  transition: color, background-color 0.3s;
}

.menu ul li a:hover {
  color: #363;
  background-color: rgba(0,0,0,0.1);
}

.splash {
  display: flex;
  margin: 100px auto 40px;
  max-width: 1200px;
  justify-content: space-between;
  padding: 0 8px;
  align-items: center;
}

.splash .main-photo img {
  width: 800px;
}

.splash .big-photo img {
  max-width: 275px;
}

.splash .side-photos {
  margin-left: 8px;
}

.splash .small-photos img {
  max-width: 121px;
}

.splash .main-photo .background {
  padding: 25px;
  background: url('images/main-photo-bg.jpg');
}

.splash .small-photos {
  display: flex;  
  margin-top: 25px;
  justify-content: space-between;
}

.splash .small-photos .photo.one {
  margin-right: 8px;
}

.swiper-container {
  max-height: 720px;
  max-width: 1200px;
  padding: 8px 8px 32px;
}

.swiper-container .swiper-slide {
  margin-right: 15px;
  max-width: 80%;
}

.gift-policy, .event, .countdown {
  padding: 100px 0;
}

.hidden {
  display: none;
}

.invitation {
  width: 100%;
  min-height: 70vh;
}

.carousel-container {
  padding: 0 0 100px;
}

.rsvp-container {
  padding: 200px 0;
  background-color: #fff;
}

.rsvp {
  margin: 0 auto;
  max-width: 640px;
}

.location, .rsvp {
  text-align: center;
}

.event {
  background-color: #fff;
}

.map {
  height: 0;
  padding-bottom: 75%;
}

.map iframe {
  width: 100%;
}

.villareal-logo {
  max-width: 50%;
  margin: 0 auto;
}

.gift-policy .policy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  max-width: 800px;
}

.policy img {
  margin-bottom: 32px;
}

.countdown .counter, .event-data {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-data {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
}

.event-data > div {
  width: 70%;
  padding: 0 24px;
}

.counter > div {
  text-align: center;
}

.address {
  margin: 24px 0;
}

.counter .label {
  display: block;
  margin-top: 8px;
}

.counter .time {
  margin: 0 24px;
  width: 80px;
  height: 80px;
  background-color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.countdown, .footer {
  background-color: #333;
  color: #f6f6f6;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  border-top: #fff solid 1px;
}

.red {
  color: #c00;;
}

.rsvp input {
  height: 40px;
  font-size: 18px;
  width: 70%;
  box-sizing: border-box;
  position: relative;
  top: 2px;
  padding: 0 8px;
}

.rsvp button {
  width: 28%;
  height: 40px;
  cursor: pointer;
}

.swiper-button-prev, .swiper-button-next {
  color: #333;
  padding: 8px 16px;
  border-radius: 5px;
  background-color: rgba(255,255,255,0.5);
}

.swiper-button-prev:hover, .swiper-button-next:hover {
  cursor: pointer;
  background-color: rgba(255,255,255,0.8);
}

img:not(.no-gallery) {
  cursor: pointer;
  transition: filter 0.3s;
}

img:not(.no-gallery):hover {
  cursor: pointer;
  filter: brightness(80%);
}

.pswp img {
  filter: none !important;
}

.swiper-pagination-bullet-active {
  background: #333;
}

.loader {
  font-family: 'Parisienne';
  opacity: 0;
  font-weight: 800;
  font-size: 24px;
  animation: 1s linear infinite spin;
}

.loader.show {
  opacity: 1;
}

hr {
  margin: 25px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .splash {
    flex-direction: column;
    padding: 8px;
    margin-top: 25px;
  }

  .menu {
    margin-top: 10px;
  }

  .splash .main-photo, .splash .side-photos {
    margin: 16px auto;
  }

  .event-data {
    flex-direction: column;
  }

  .event-data > div {
    padding: 0;
  }

  .rsvp {
    padding: 0 8px;
  }

  .event-data > .rsvp {
    padding-bottom: 24px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 48px;
  }

  .menu ul li a {
    padding: 20px 15px
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .side-photos {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 850px;
    padding: 8px;
    box-sizing: border-box;
  }

  .small-photos {
    flex-direction: column;
  }

  .side-photos .small-photos img {
    max-width: 150px;
  }
}

@media (max-width: 900px) {
  .menu {
    margin-top: 40px;
  }

  .swiper-container {
    padding: 8px;
  }

  .swiper-pagination-bullet {
    display: none;
  }

  .menu .center {
    margin: 0 16px;
  }

  .upper-bg img {
    max-width: 60%;
  }
}

@media (max-width: 767px) {
  .searcher input, .searcher button {
    width: 100%;
    display: block;
  }

  .invitation {
    min-height: 30vh;
  }

  .swiper-button-prev, .swiper-button-next {
    padding: 0;
  }

  .swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px;
  }

  .searcher button {
    margin-top: 8px;
  }

  .event-data {
    box-sizing: border-box;
  }
  
  .event-data > div {
    width: 90%;
  }

  .counter .time {
    margin: 0 16px;
    width: 48px;
    height: 48px;
    font-size: 32px;
  }

  .gift-policy, .event, .carousel-container, .countdown {
    padding: 64px 0;
  }

  .carousel-container {
    padding-top: 0;
  }

  .gift-policy .policy {
    font-size: 20px;
  }

  .footer {
    padding: 8px 4px;
    font-size: 12px;
  }

  .splash {
    margin: 0 auto 16px auto;
  }

  .menu .center {
    display: none;
  }

  .mobile-header {
    display: block;
    margin: 8px auto;
  }

  .mobile-header h1 {
    margin: 0;
    font-size: 32px;
  }

  .mobile-header img {
    margin: 8px auto;
  }

  .menu {
    margin-top: 10px;
  }

  .menu ul li a {
    padding: 15px 9px;
  }

  .splash .main-photo .background {
    padding: 10px;
  }

  .villareal-logo {    
    max-width: 65%;
    margin: 0 auto -10px;
  }
}

@media (max-width: 365px) {
  .menu ul li a {
    padding: 15px 5px;
  }

  .counter .time {
    margin: 0 8px;
  }

  .counter .label {
    font-size: 12px;
  }

  .footer {
    font-size: 10px;
  }
}