/* V41 — Invitation Gallery polish only. DO NOT change the hero, popups or any other section.
   All selectors are strictly nested under #invitations.v40-invitation-gallery. */
#invitations.v40-invitation-gallery {
  background:#faf8f7;
  isolation:isolate;
}
#invitations.v40-invitation-gallery .v39-studio-intro {
  max-width:none;
  width:100%;
  padding:37px 18px 28px;
  background:#131115;
}
#invitations.v40-invitation-gallery .v39-studio-intro h2 {
  color:#fff;
  font-size:clamp(32px,3.2vw,46px);
  font-weight:790;
  letter-spacing:-.044em;
  line-height:1.06;
}
#invitations.v40-invitation-gallery .v39-studio-intro > p:last-child {
  color:#e5dbe1;
  font-size:14px;
  letter-spacing:0;
  line-height:1.5;
  margin-top:10px;
}
#invitations.v40-invitation-gallery .v39-studio-split {align-items:stretch;}
#invitations.v40-invitation-gallery .v39-studio-half {
  padding:37px clamp(19px,2.5vw,38px) 39px;
}
#invitations.v40-invitation-gallery .v39-espresso {
  background:linear-gradient(155deg,#fcfaf9 0%,#f8f5f4 100%);
  color:#251f22;
}
#invitations.v40-invitation-gallery .v39-double {
  background:linear-gradient(155deg,#242227 0%,#211f24 100%);
  color:#fbf9fb;
}
#invitations.v40-invitation-gallery .v39-studio-content {
  width:min(100%,570px);
}
#invitations.v40-invitation-gallery .v40-gallery-caption {
  min-height:55px;
  margin-bottom:21px;
  gap:14px;
  align-items:flex-start;
}
#invitations.v40-invitation-gallery .v40-gallery-index {
  font-size:10.7px;
  letter-spacing:.125em;
  font-weight:790;
  color:#c4327b;
  margin-bottom:7px!important;
}
#invitations.v40-invitation-gallery .v40-gallery-desc {
  color:#645b62;
  font-size:14px;
  font-weight:550;
  line-height:1.4;
}
#invitations.v40-invitation-gallery .v39-double .v40-gallery-index {color:#fc94c8;}
#invitations.v40-invitation-gallery .v39-double .v40-gallery-desc {color:#e4dbe1;}
#invitations.v40-invitation-gallery .v40-gallery-caption small {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  font-size:11px;
  line-height:1.2;
  min-height:29px;
  padding:5px 10px;
  border:1px solid #e4d8d5;
  border-radius:999px;
  background:#fffcfb;
  color:#805d3a;
  font-weight:720;
  letter-spacing:0;
  white-space:nowrap;
}
#invitations.v40-invitation-gallery .v39-double .v40-gallery-caption small {
  color:#f2d0a0;
  background:#ffffff09;
  border-color:#76676a;
}
/* The ticket mask cuts the physical notches. Drop-shadow is applied to its containing
   stage so the silhouette, including the cutouts, has dimensional shadow. */
#invitations.v40-invitation-gallery .v39-ticket-position {
  display:flex;
  justify-content:center;
  align-items:flex-start;
  filter:drop-shadow(0 4px 3px rgba(50,25,30,.08)) drop-shadow(0 18px 23px rgba(44,24,27,.14)) drop-shadow(0 26px 30px rgba(44,24,27,.075));
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-position {
  padding-top:5px;
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.2)) drop-shadow(0 22px 27px rgba(0,0,0,.3));
}
#invitations.v40-invitation-gallery .v39-ticket {
  width:min(100%,556px);
  transform:none;
  transition:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82),inset 0 -2px 4px rgba(79,55,60,.04);
  border-color:#e6d9d6;
  border-radius:31px;
}
#invitations.v40-invitation-gallery .v39-ticket:hover {
  transform:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82),inset 0 -2px 4px rgba(79,55,60,.04);
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket,
#invitations.v40-invitation-gallery .v39-double .v39-ticket:hover {
  background:#29252a;
  border-color:#5b5159;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -2px 5px rgba(0,0,0,.18);
}
#invitations.v40-invitation-gallery .v39-ticket-head {
  height:76px;
  padding-left:29px;
  border-bottom-color:#e4ccaa;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.33),inset 0 -3px 6px rgba(125,79,30,.045);
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-head {
  border-bottom-color:#bd996e;
  box-shadow:inset 0 2px 1px rgba(255,255,255,.27),inset 0 -3px 8px rgba(89,53,24,.085);
}
#invitations.v40-invitation-gallery .v39-ticket-cup {
  border-color:#c9ac86;
  background:linear-gradient(140deg,#fffefa,#f7eedf);
  box-shadow:inset 0 2px 2px rgba(255,255,255,.95),inset 0 -2px 3px rgba(113,76,40,.06),0 4px 9px rgba(93,58,34,.14);
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-cup {
  background:linear-gradient(140deg,#fffdf7,#f3e6cb);
  box-shadow:inset 0 2px 2px #fff,0 4px 10px rgba(59,33,23,.23);
}
#invitations.v40-invitation-gallery .v39-ticket-content {
  padding:26px 30px 20px;
  min-height:251px;
  background:linear-gradient(155deg,#fff 0%,#fff 74%,#fffdfd 100%);
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-content {
  min-height:279px;
  padding-top:26px;
  background:linear-gradient(160deg,#29252a 0%,#29252a 70%,#272328 100%);
}
#invitations.v40-invitation-gallery .v39-ticket-person {
  margin-bottom:18px;
  align-items:center;
}
#invitations.v40-invitation-gallery .v39-ticket-name-source {
  width:157px;
  height:85px;
}
#invitations.v40-invitation-gallery .v39-ticket-portrait {
  width:87px;
  height:87px;
  border:2px solid #bd843f!important;
  outline:none!important;
  border-radius:50%;
  box-shadow:0 3px 8px rgba(62,37,19,.16),0 8px 14px rgba(62,37,19,.085);
  object-position:center 26%;
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-portrait {
  border-color:#e7c28c!important;
  box-shadow:0 4px 10px rgba(0,0,0,.38),0 1px 3px rgba(0,0,0,.15);
}
#invitations.v40-invitation-gallery .v39-ticket-title {
  max-width:440px;
  margin:0;
  font-size:clamp(25px,2.48vw,35px);
  line-height:1.2;
  letter-spacing:-.043em;
  font-weight:760;
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-message {
  flex:0 0 auto;
  margin-top:1px;
  padding:17px 18px 18px;
  border-radius:20px;
  font-size:clamp(22px,2.06vw,28px);
  line-height:1.38;
  letter-spacing:-.038em;
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
  border-color:#675c64;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.095),0 2px 5px rgba(0,0,0,.035);
}
#invitations.v40-invitation-gallery .v39-ticket-stub {
  min-height:142px;
  padding:19px 29px 21px;
  background:#fdfafb;
  box-shadow:inset 0 2px 6px rgba(91,67,76,.025);
}
#invitations.v40-invitation-gallery .v39-double .v39-ticket-stub {
  min-height:154px;
  padding-top:15px;
  background:#231f24;
  box-shadow:inset 0 2px 4px rgba(0,0,0,.07);
}
#invitations.v40-invitation-gallery .v39-ticket-seam {height:25px;}
#invitations.v40-invitation-gallery .v39-ticket-seam:after {opacity:.74;}
#invitations.v40-invitation-gallery .v39-ticket-signature img {width:102px;}
/* The legal note flows into the white/light website below; it is not a chunky
   black bar that competes with the physical invitations. */
#invitations.v40-invitation-gallery .v40-gallery-footer {
  max-width:none;
  padding:16px max(18px,calc((100vw - 1170px)/2)) 18px;
  background:#faf8f7;
  color:#615961;
  font-size:11.5px;
  line-height:1.6;
  gap:8px 22px;
  justify-content:space-between;
}
#invitations.v40-invitation-gallery .v40-gallery-footer span:last-child {
  max-width:560px;
  opacity:1;
}
@media(max-width:900px){
  #invitations.v40-invitation-gallery .v39-studio-half {padding:30px 20px 35px;}
  #invitations.v40-invitation-gallery .v39-studio-content {width:min(100%,560px);}
}
@media(max-width:700px){
  #invitations.v40-invitation-gallery .v39-studio-intro{padding:35px 18px 26px;}
  #invitations.v40-invitation-gallery .v39-studio-half{padding:26px 17px 31px;}
  #invitations.v40-invitation-gallery .v40-gallery-caption{min-height:0;margin-bottom:17px;}
  #invitations.v40-invitation-gallery .v40-gallery-caption small{font-size:10px;padding:5px 8px;}
  #invitations.v40-invitation-gallery .v39-ticket{width:min(100%,540px);}
  #invitations.v40-invitation-gallery .v39-ticket-head{height:67px;padding-left:21px;}
  #invitations.v40-invitation-gallery .v39-ticket-content{padding:21px 22px 18px;min-height:222px;}
  #invitations.v40-invitation-gallery .v39-double .v39-ticket-content{min-height:0;padding:20px 22px 19px;}
  #invitations.v40-invitation-gallery .v39-ticket-portrait{width:75px;height:75px;}
  #invitations.v40-invitation-gallery .v39-ticket-name-source{width:140px;height:77px;}
  #invitations.v40-invitation-gallery .v39-ticket-title{font-size:clamp(24px,6.5vw,32px);}
  #invitations.v40-invitation-gallery .v39-double .v39-ticket-message{font-size:clamp(21px,5.75vw,27px);}
  #invitations.v40-invitation-gallery .v39-ticket-stub{padding:15px 21px 18px;min-height:135px;}
  #invitations.v40-invitation-gallery .v39-double .v39-ticket-stub{padding:14px 21px 18px;min-height:142px;}
  #invitations.v40-invitation-gallery .v39-ticket-seam{height:23px;}
  #invitations.v40-invitation-gallery .v40-gallery-footer{padding:15px 17px 19px;}
}
@media(max-width:375px){
  #invitations.v40-invitation-gallery .v39-studio-half{padding-left:13px;padding-right:13px;}
  #invitations.v40-invitation-gallery .v40-gallery-caption{flex-wrap:wrap;gap:8px;}
  #invitations.v40-invitation-gallery .v39-ticket-portrait{width:67px;height:67px;}
  #invitations.v40-invitation-gallery .v39-ticket-name-source{width:125px;height:70px;}
  #invitations.v40-invitation-gallery .v39-ticket-head{padding-left:18px;}
  #invitations.v40-invitation-gallery .v39-double .v39-ticket-message{font-size:21px;}
}
@media(prefers-reduced-motion:reduce){
  #invitations.v40-invitation-gallery .v39-ticket{transition:none!important;transform:none!important;}
}
