/* SHARE LINKS */
#evite1 .user-instructions {
  text-align: center;
  display: block;
}

#evite1 #share-links .links-container {
  display: block;
  width: 100%;
  margin: 3em auto;
}

@media (min-width: 56em) {
  #evite1 #share-links .links-container {
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 3em auto;
  }
}

#evite1 #share-links .share-item {
  width: 100%;
  display: block;
  margin-right: 0;
  text-align: center;
  margin-bottom: 1em;
}

#evite1 #share-links .share-item:after {
  content: '';
  display: block;
  width: 100%;
  clear: both;
  height: 1em;
}

@media (min-width: 36em) {
  #evite1 #share-links .share-item {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    margin-right: 0;
  }
}

@media (min-width: 56em) {
  #evite1 #share-links .share-item {
    width: 31.533333333%;
    margin-right: 2.7%;
    text-align: center;
    margin-bottom: 1em;
  }
  #evite1 #share-links .share-item:after {
    display: none;
  }
  #evite1 #share-links .share-item:nth-child(3n) {
    margin-right: 0;
  }
}

#evite1 #share-links .share-item .evite-thumbnail-link {
  width: 100%;
  display: block;
  position: relative;
  float: none;
  padding-top: 51.2820513%;
  margin-bottom: 1em;
  opacity: 1.0;
  transition: all .2s ease-in-out;
  -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
  -moz-transition: all .2s ease-in-out;
  -webkit-transition: all .2s ease-in-out;
  -webkit-backface-visibility: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-sizing: border-box;
}

#evite1 #share-links .share-item .evite-thumbnail-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-width: 7px;
  border-style: solid;
  border-color: transparent;
  transition: .2s all ease-in-out;
}

@media (min-width: 36em) {
  #evite1 #share-links .share-item .evite-thumbnail-link {
    width: 45%;
    float: left;
    padding-top: 23.076923085%;
    margin-right: 5%;
    margin-bottom: 1em;
  }
}

@media (min-width: 56em) {
  #evite1 #share-links .share-item .evite-thumbnail-link {
    width: 100%;
    float: none;
    padding-top: 51.2820513%;
    margin-right: 0;
  }
}

#evite1 #share-links .share-item .evite-thumbnail-link:hover {
  opacity: .95;
  -webkit-animation: shimmy .65s infinite;
          animation: shimmy .65s infinite;
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
}

#evite1 #share-links .share-item h5 {
  margin-bottom: .25em;
  display: block;
}

#evite1 #share-links .share-item p.subtitle {
  display: block;
}

@-webkit-keyframes shimmy {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(0.7deg);
            transform: rotate(0.7deg);
  }
  75% {
    -webkit-transform: rotate(-0.65deg);
            transform: rotate(-0.65deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}

@keyframes shimmy {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  25% {
    -webkit-transform: rotate(0.7deg);
            transform: rotate(0.7deg);
  }
  75% {
    -webkit-transform: rotate(-0.65deg);
            transform: rotate(-0.65deg);
  }
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
}

/* SHARE OPTIONS / BUTTONS */
#evite1 #share-options {
  display: none;
}

#evite1 #share-options .button-container {
  display: -webkit-box;
  display: flex;
  width: 80%;
  margin: 3em auto;
  flex-wrap: wrap;
}

#evite1 #share-options .button-container .share-button {
  width: 50%;
  margin: 0;
  display: block;
  box-sizing: border-box;
}

@media (min-width: 48em) {
  #evite1 #share-options .button-container .share-button {
    width: 22%;
    margin: 0 1.5%;
  }
}

#evite1 #share-options .button-container .share-button > span {
  padding-right: 2px;
  vertical-align: baseline;
}

/* Special tweaks for Layouts site to get better icon alignment; replace with theme icons */
#evite1 #share-options .button-container .share-button > .social_instagram {
  vertical-align: -1px;
}

#evite1 #share-options .button-container .share-button > .icon_mail_alt {
  vertical-align: 1px;
}

/* EMAIL FORM CONTENT */
#evite1 #email-option {
  display: none;
  width: 60%;
  margin: 3em auto;
}

@media (max-width: 767px) {
  #evite1 #email-option {
    width: 100%;
  }
}

#evite1 #email-option #email-preview {
  text-align: center;
  width: 100%;
}

#evite1 #email-option #email-preview h6 {
  margin-bottom: .25em;
}

#evite1 #email-option #email-preview .subtitle {
  margin-bottom: .75em;
}

#evite1 #email-option #email-preview > img {
  width: 100%;
  height: auto;
  margin-bottom: 2em;
  margin-top: .5em;
}

#evite1 #evite-form {
  width: 100%;
  text-align: left;
  display: none;
  padding-top: 3rem;
}

#evite1 #evite-form .warning {
  margin: .25em 0 1em;
  display: none;
}

#evite1 #evite-form label {
  width: 100%;
  display: block;
}

/* FORM EMBED (FMS) OPTION */
#evite1 #email-option #form-embed {
  width: 100%;
  height: auto;
  display: none;
}

#evite1 #email-option #form-embed iframe {
  /* assuming that iframe embed has a 95% width (?) - adjust as needed */
  margin-left: 2.5%;
}

/* INSTAGRAM OPTION */
#evite1 #ig-option {
  display: none;
  width: 60%;
  margin: 3em auto;
}

#evite1 #ig-option #ig-preview {
  text-align: center;
  width: 100%;
}

#evite1 #ig-option #ig-preview h6 {
  margin-bottom: .25em;
}

#evite1 #ig-option #ig-preview .subtitle {
  margin-bottom: .75em;
}

#evite1 #ig-option #ig-preview > img {
  width: 100%;
  height: auto;
  margin-bottom: 2em;
  margin-top: .5em;
}

#evite1 #ig-option #ig-preview .image-download {
  padding: .75em 2em;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  box-sizing: border-box;
}

#evite1 #ig-option #ig-preview .image-download:hover {
  cursor: pointer;
}

/* START OVER LINK */
#start-over {
  width: 150px;
  display: none;
  margin: 2em auto;
  font-weight: 800;
  font-size: 1.25em;
  transition: all .25s ease-in-out;
  -moz-transition: all .25s ease-in-out;
  -webkit-transition: all .25s ease-in-out;
  text-align: center;
}

#start-over > span {
  font-size: 1.75em;
  vertical-align: -4px;
}

iframe.form {
  width: 100%;
}

/*FORM UPDATES*/
#evite1 #evite-form #submitEvite {
  display: inline-block;
  outline: none;
  margin: 20px 0 !important;
}
