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

#invite1 #share-links .links-container { display: block; width: 100%; margin: 3rem auto 0; }

@media (min-width: 56em) { #invite1 #share-links .links-container { display: flex; flex-wrap: wrap; width: 100%; margin: 2rem auto -2rem; } }

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

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

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

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

#invite1 #share-links .share-item .invite-thumbnail-link { width: 100%; display: block; position: relative; float: none; padding-top: 51.2820513%; margin-bottom: 1rem; opacity: 1.0; transition: all .2s ease-in-out; 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; border-radius: .5em; }

#invite1 #share-links .share-item .invite-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; border-radius: .5em; }

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

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

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

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

#invite1 #share-links .share-item p.subtitle { display: block; margin-bottom: 0; }

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

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

#invite1 #share-options .button-container { display: flex; width: 100%; margin: 2rem auto; flex-wrap: wrap; max-width: 1000px; }

@media (min-width:768px) { #invite1 #share-options .button-container { margin-top: 3rem; } }

#invite1 #share-options .button-container .share-button { width: 220px; margin: 0 auto .5rem; display: block; box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; }

@media (min-width: 48em) { #invite1 #share-options .button-container .share-button { width: 22%; margin: 0 1.25% 1rem; min-width: 205px; } }

#invite1 #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 */
#invite1 #share-options .button-container .share-button > .social_instagram { vertical-align: -1px; }

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

/* EMAIL FORM CONTENT */
#invite1 #email-option { display: none; width: 100%; margin: 3rem auto; }

@media (min-width:992px) {#invite1 #email-option { width: 60%; } }

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

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

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

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

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

#invite1 #invite-form .warning { margin: .25rem 0 1rem; display: none; font-style: italic; }

#invite1 #invite-form label { width: 100%; display: block; }

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

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

/* INSTAGRAM OPTION */
#invite1 #ig-option { display: none; width: 100%; margin: 3rem auto; }

@media (min-width:992px) {#invite1 #ig-option { width: 60% ; } }

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

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

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

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

#invite1 #ig-option #ig-preview .image-download { text-align: center; display: block; width: 100%; max-width: 400px; margin: 0 auto; box-sizing: border-box; }

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

/* START OVER LINK */
#start-over { width: 220px; display: none; margin: 2rem auto 0; text-align: center; }

iframe.form { width: 100%; }

/*FORM UPDATES*/
#invite1 #invite-form #submitInvite { display: inline-block; outline: none; margin: 20px 0 0 !important; }