/* V43 gallery refinement | exact source: V42. No changes outside #invitations.
 * Important: all ticket bodies, seams, notes, headers and stubs have their own
 * fully opaque materials. Coffee photography is permitted ONLY behind tickets.
 */
#invitations.v40-invitation-gallery .v39-studio-half{isolation:isolate;padding-top:34px;padding-bottom:46px}
#invitations.v40-invitation-gallery .v39-espresso{background:#faf7f0}
#invitations.v40-invitation-gallery .v39-double{background:#141216}
/* Decorative light liquid is kept at the side edges, not in the ticket. */
#invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene{
 background:radial-gradient(ellipse 68% 73% at 85% 17%,rgba(231,178,102,.22),transparent 73%),
 radial-gradient(ellipse 56% 69% at 9% 105%,rgba(207,145,81,.17),transparent 73%);
}
#invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene::before{
 width:82%;height:84%;top:-16%;right:-30%;transform:rotate(-21deg);
 background-image:url('https://images.pexels.com/photos/30339248/pexels-photo-30339248.jpeg?auto=compress&cs=tinysrgb&w=1400');
 background-position:44% 40%;opacity:.72;filter:saturate(1.08) contrast(1.09) brightness(.99);
 -webkit-mask-image:radial-gradient(ellipse at 65% 42%,#000 0%,rgba(0,0,0,.75) 35%,transparent 75%);
 mask-image:radial-gradient(ellipse at 65% 42%,#000 0%,rgba(0,0,0,.75) 35%,transparent 75%);
}
#invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene::after{
 width:77%;height:65%;bottom:-30%;left:-26%;transform:rotate(20deg);
 background-image:url('https://images.pexels.com/photos/30339248/pexels-photo-30339248.jpeg?auto=compress&cs=tinysrgb&w=1400');
 background-position:50% 66%;opacity:.44;filter:saturate(1.06) contrast(1.16) brightness(.94);
 -webkit-mask-image:radial-gradient(ellipse at 31% 64%,#000 4%,rgba(0,0,0,.6) 42%,transparent 80%);
 mask-image:radial-gradient(ellipse at 31% 64%,#000 4%,rgba(0,0,0,.6) 42%,transparent 80%);
}
/* The previous dark foam photo was too noisy. Retain its genuine imagery but
 * heavily diffuse and mask it, then introduce broad directional liquid-light
 * sweeps around the outside; no blur or picture can bleed into the ticket. */
#invitations.v40-invitation-gallery .v39-double .v42-liquid-scene{
 background:radial-gradient(ellipse 75% 52% at 103% 24%,rgba(108,58,38,.30),transparent 79%),
 radial-gradient(ellipse 68% 38% at -9% 99%,rgba(114,51,39,.19),transparent 81%),
 #151217;
}
#invitations.v40-invitation-gallery .v39-double .v42-liquid-scene::before{
 width:85%;height:93%;top:-15%;right:-37%;transform:rotate(21deg);
 background-image:url('https://images.pexels.com/photos/10026601/pexels-photo-10026601.png?auto=compress&cs=tinysrgb&w=1400');
 background-position:58% 46%;opacity:.57;filter:blur(5px) brightness(.51) contrast(1.28) saturate(.73);
 -webkit-mask-image:radial-gradient(ellipse at 69% 44%,#000 0%,rgba(0,0,0,.54) 35%,transparent 74%);
 mask-image:radial-gradient(ellipse at 69% 44%,#000 0%,rgba(0,0,0,.54) 35%,transparent 74%);
}
#invitations.v40-invitation-gallery .v39-double .v42-liquid-scene::after{
 width:75%;height:68%;bottom:-35%;left:-31%;transform:rotate(-17deg);
 background-image:url('https://images.pexels.com/photos/10026601/pexels-photo-10026601.png?auto=compress&cs=tinysrgb&w=1400');
 background-position:44% 72%;opacity:.36;filter:blur(6px) brightness(.50) contrast(1.22) saturate(.68);
 -webkit-mask-image:radial-gradient(ellipse at 27% 67%,#000 0%,rgba(0,0,0,.58) 35%,transparent 80%);
 mask-image:radial-gradient(ellipse at 27% 67%,#000 0%,rgba(0,0,0,.58) 35%,transparent 80%);
}
/* Label copy is integrated into each coffee environment; retain compact
 * functional allowance pills as the one necessary capsule element. */
#invitations.v40-invitation-gallery .v39-espresso .v40-gallery-caption,
#invitations.v40-invitation-gallery .v39-double .v40-gallery-caption{
 background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;
 box-shadow:none;border:0;border-radius:0;padding:0;
 min-height:54px;margin-bottom:22px;
}
#invitations.v40-invitation-gallery .v40-gallery-caption .v40-gallery-index{
 font-size:11px;letter-spacing:.13em;margin-bottom:7px!important;
}
#invitations.v40-invitation-gallery .v40-gallery-caption .v40-gallery-desc{
 font-weight:640;line-height:1.4;
}
#invitations.v40-invitation-gallery .v39-double .v40-gallery-caption .v40-gallery-desc{color:#f3e5ec}
#invitations.v40-invitation-gallery .v39-espresso .v40-gallery-caption small{
 background:#fffaf4;border-color:#e6d5c3;box-shadow:0 2px 6px rgba(52,35,26,.07);
}
#invitations.v40-invitation-gallery .v39-double .v40-gallery-caption small{
 background:#241f24;border-color:#66545b;box-shadow:0 2px 6px rgba(0,0,0,.16);
}
/* A truly solid ticket: explicitly materialize backing on every structural layer
 * rather than relying on transparent overlays or a backdrop blur. */
#invitations.v40-invitation-gallery .v42-upgraded-ticket{
 opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket{
 background:#fffdfb!important;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-content{
 background:#fffdfb!important;min-height:281px;padding-bottom:23px;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-seam{
 background:#fffdfb!important;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-stub{
 background:#fffdfb!important;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-head{
 background:linear-gradient(107deg,#fbefdb 0%,#f4dfb8 50%,#e6b886 100%)!important;
}
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket{
 background:#1c181e!important;
}
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket .v39-ticket-content{
 background:linear-gradient(160deg,#241b21,#1c181f 76%,#241a21)!important;
}
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket .v39-ticket-seam{
 background:#1c181f!important;
}
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket .v39-ticket-stub{
 background:radial-gradient(ellipse 95% 130px at 88% 122%,rgba(242,31,125,.24),transparent 83%),
 radial-gradient(ellipse 95% 150px at 5% 135%,rgba(255,132,70,.13),transparent 84%),
 #1d181f!important;
}
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket .v39-ticket-message{
 background:linear-gradient(150deg,#38262c,#2c242e 80%,#2c232c)!important;
}
/* Portrait is recropped from the existing approved sample photograph (not AI)
 * so Opal's eyes aren't truncated, with one genuine CSS rim. */
#invitations.v40-invitation-gallery .v42-upgraded-ticket .v39-ticket-portrait{
 object-position:50% 17%;object-fit:cover;
 background:#242129;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-portrait{
 border:2px solid #dba65d!important;
 box-shadow:0 0 0 1px rgba(255,231,171,.47),0 5px 13px rgba(44,29,23,.17),inset 0 2px rgba(255,245,215,.6);
}
/* Rebalance Espresso without fake filler. Keep a useful expanse of white
 * stock but remove the oversized silent zone above the perforation. */
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-person{
 margin-bottom:8px;
}
#invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-title{
 margin:12px 0 0;
}
/* Cutouts remain alpha-transparent by necessity: they are punched holes,
 * not transparent regions of the ticket's material. */
#invitations.v40-invitation-gallery .v39-double .v42-upgraded-ticket .v39-ticket-seam{
 box-shadow:inset 0 1px rgba(255,167,102,.07),inset 0 -1px rgba(247,145,96,.08);
}
@media(max-width:700px){
 #invitations.v40-invitation-gallery .v39-studio-half{padding-top:29px;padding-bottom:38px}
 #invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-content{min-height:248px;padding-bottom:21px}
 #invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-title{margin-top:11px}
 #invitations.v40-invitation-gallery .v39-espresso .v42-liquid-scene::before{width:100%;height:76%;right:-43%;top:-13%}
 #invitations.v40-invitation-gallery .v39-double .v42-liquid-scene::before{width:100%;height:76%;right:-46%;top:-10%}
 #invitations.v40-invitation-gallery .v40-gallery-caption{margin-bottom:17px;min-height:0}
}
@media(max-width:375px){
 #invitations.v40-invitation-gallery .v39-espresso .v42-upgraded-ticket .v39-ticket-content{min-height:239px}
 #invitations.v40-invitation-gallery .v40-gallery-caption{gap:8px}
}
