
/* Ivypop V52 — invitation gallery art-direction polish.
   Goals approved by user: no artificial darkening behind tickets; give Espresso
   more presence; add a photographic center bleed between blonde and dark coffee;
   improve vertical composition; add breathing room to the explainer.
   Ticket art, photography assets, reveal behavior and copy all remain intact. */

/* Desktop composition: make the split feel like one composed scene. */
@media (min-width: 901px){
  #invitations.v40-invitation-gallery .v39-studio-split{
    position:relative;
    overflow:visible;
    align-items:stretch;
  }
  #invitations.v40-invitation-gallery .v39-studio-half{
    overflow:visible;
  }
  /* Let the backgrounds breathe into the center so the split no longer feels
     like two unrelated ads. This is image-on-image bleed, not a color gradient. */
  #invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene,
  #invitations.v40-invitation-gallery .v39-double .v42-liquid-scene{
    overflow:visible;
  }
  #invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene::after,
  #invitations.v40-invitation-gallery .v39-double .v42-liquid-scene::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    width:clamp(92px,10vw,150px);
    background-repeat:no-repeat;
    background-size:cover;
    pointer-events:none;
    opacity:1;
    filter:none;
    z-index:0;
  }
  #invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene::after{
    right:calc(-1 * clamp(46px,5vw,75px));
    background-image:url('/assets/v51-espresso-blonde-cream.png');
    background-position:100% 49%;
    -webkit-mask-image:linear-gradient(to right, transparent 0%, rgba(0,0,0,.30) 18%, rgba(0,0,0,.88) 48%, rgba(0,0,0,.55) 74%, transparent 100%);
    mask-image:linear-gradient(to right, transparent 0%, rgba(0,0,0,.30) 18%, rgba(0,0,0,.88) 48%, rgba(0,0,0,.55) 74%, transparent 100%);
  }
  #invitations.v40-invitation-gallery .v39-double .v42-liquid-scene::after{
    left:calc(-1 * clamp(46px,5vw,75px));
    background-image:url('/assets/v51-double-dark-espresso-cream.png');
    background-position:0% 49%;
    -webkit-mask-image:linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 26%, rgba(0,0,0,.92) 52%, rgba(0,0,0,.28) 82%, transparent 100%);
    mask-image:linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 26%, rgba(0,0,0,.92) 52%, rgba(0,0,0,.28) 82%, transparent 100%);
  }

  /* Espresso should not impersonate Double Shot; it just needs a little more
     authority and a cleaner grounding. */
  #invitations.v40-invitation-gallery .v39-espresso .v39-studio-content{
    width:min(100%,486px);
  }
  #invitations.v40-invitation-gallery .v39-espresso .v48-ticket-stage{
    max-width:486px;
  }
  #invitations.v40-invitation-gallery .v39-espresso .v50-ticket-art{
    max-width:486px;
    filter:drop-shadow(0 13px 22px rgba(31,18,16,.15)) drop-shadow(0 24px 42px rgba(47,28,17,.14));
  }

  /* Visually center the smaller Espresso ticket against the taller Double Shot
     composition. The allowance chip rides with the ticket stack automatically. */
  #invitations.v40-invitation-gallery .v39-espresso .v39-ticket-position{
    padding-top:40px;
  }
  #invitations.v40-invitation-gallery .v39-double .v39-ticket-position{
    padding-top:0;
  }
}

/* Slightly gentler desktop spacing around both panels. */
@media (min-width: 901px) and (max-width: 1220px){
  #invitations.v40-invitation-gallery .v39-studio-half{padding-left:18px;padding-right:18px}
  #invitations.v40-invitation-gallery .v39-espresso .v39-ticket-position{padding-top:34px}
}

/* Mobile/tablet: keep the new backgrounds and size logic restrained. */
@media (max-width: 900px){
  #invitations.v40-invitation-gallery .v39-espresso .v50-ticket-art{
    filter:drop-shadow(0 12px 19px rgba(31,18,16,.14));
  }
}

/* Editorial explanation: same words, cleaner hierarchy and more breathing room. */
#invitations.v40-invitation-gallery .v48-explainer{
  padding:28px 18px 27px;
}
#invitations.v40-invitation-gallery .v48-story{
  margin:0 auto 14px;
  gap:10px clamp(16px,2vw,30px);
}
#invitations.v40-invitation-gallery .v48-story-detail{
  margin:0 auto 12px;
  max-width:890px;
  line-height:1.6;
}
#invitations.v40-invitation-gallery .v48-story-disclaimer{
  max-width:1100px;
  line-height:1.48;
}
@media (max-width: 700px){
  #invitations.v40-invitation-gallery .v48-explainer{padding:19px 16px 23px}
  #invitations.v40-invitation-gallery .v48-story{margin-bottom:12px;gap:5px}
  #invitations.v40-invitation-gallery .v48-story-detail{margin-bottom:10px}
}
