/* Use nonnegative, explicit layers for native video in Safari. A negative
   background layer can disappear when the dialog animation stops compositing.
   Keep backdrop blur outside the video surface, not on the scrolling prices. */
/* Pricing opens directly over the selected universe, without navigating away. */
.service-modal{position:fixed;inset:0;margin:auto;padding:0;width:min(1120px,calc(100vw - 48px));height:min(860px,calc(100svh - 48px));max-width:none;max-height:none;overflow:hidden;border:1px solid #d3e3ff33;border-radius:26px;background:#0b1422;color:#f5f5f7;box-shadow:0 32px 120px #0009;opacity:0;transform:translate3d(0,18px,0) scale(.98);transition:opacity .25s ease,transform .35s cubic-bezier(.16,1,.3,1)}
.service-modal.visible{opacity:1;transform:none}.service-modal::backdrop{background:#02050a00;transition:background .25s}.service-modal.visible::backdrop{background:#02050abb;backdrop-filter:blur(7px)}
.service-modal-host,.service-modal-card{height:100%;min-height:0}.service-modal-card{position:relative;display:flex;flex-direction:column;z-index:0;background:#0b1422;--modal-accent:var(--service-soft,#b5d7ff)}
.service-modal-background,.service-modal-shade{position:absolute;inset:0;pointer-events:none}.service-modal-background{z-index:0;overflow:hidden;background:#102033}.service-modal-shade{z-index:1;background:linear-gradient(180deg,#030711bf 0%,#050b16b8 35%,#040913da 100%)}
.service-modal-heading,.service-modal-scroll,.service-modal-footer{position:relative;z-index:2}
.service-modal-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.service-modal-background>.service-film--background{position:absolute;inset:0;width:100%;height:100%;margin:0;max-width:none}.service-modal-background .service-film-player{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
.service-modal-background video,.service-modal-background .service-film-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
.service-modal-card.service-theme-concerts video,.service-modal-card.service-theme-concerts .service-film-placeholder{object-position:center top}
.service-modal-card.service-theme-clips video,.service-modal-card.service-theme-clips .service-film-placeholder{object-position:center top;transform:scale(1.35);transform-origin:center top}
.service-modal-card.service-theme-portraits-shootings .service-modal-image{object-position:center top}
.service-modal-close{position:absolute;right:20px;top:20px;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;transition:background .2s}
.service-modal-close:hover{background:#ffffff12}.service-modal-close svg{width:24px;height:24px;display:block;fill:none;stroke:currentColor;stroke-width:1.7}
.service-modal-heading{flex:none;padding:34px 88px 24px 36px;border-bottom:1px solid #ffffff1c}.service-modal-heading .eyebrow{font-size:9px;letter-spacing:.18em;color:#b7c6dc;margin:0 0 12px}
.service-modal-heading h2{font-size:clamp(28px,4vw,46px);font-weight:600;line-height:1.08;letter-spacing:-.045em;margin:0;color:var(--modal-accent);overflow-wrap:anywhere}.service-modal-card.service-theme-mariages h2{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;letter-spacing:-.035em}
.service-modal-subtitle{font-size:13px;color:#c6d0e0;margin:12px 0 0;line-height:1.4}
.service-modal-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:26px 36px 30px;scrollbar-width:thin;scrollbar-color:#ffffff3b transparent;-webkit-overflow-scrolling:touch}
.service-modal .service-price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px;margin:0}
.service-modal .service-price{padding:25px;border:1px solid #d5e3ff29;border-radius:16px;background:#07101bbd;box-shadow:0 12px 30px #0001;min-width:0}
.service-modal .service-price h3{font-size:21px;color:#f5f5f7;line-height:1.25;margin:0 0 14px;letter-spacing:-.025em}.service-modal .service-price-amount{font-size:28px;line-height:1.2;font-weight:550;color:var(--modal-accent);margin:0 0 18px;letter-spacing:-.03em}.service-modal .service-price-detail,.service-modal .service-price-empty{font-size:15px;line-height:1.65;color:#d0d9e7;margin:0}
.service-modal .service-price-empty{padding:28px;border:1px solid #ffffff20;border-radius:16px;background:#07101b9c;max-width:700px}
.service-modal .service-price-options{border-color:#ffffff25;padding-top:20px;margin-top:22px}.service-modal .service-price-options h4{font-size:10px;letter-spacing:.12em;color:#d0dded;margin-bottom:18px}.service-modal .service-price-options ul{padding:0;margin:0;list-style:none}.service-modal .service-price-options li{margin:14px 0}.service-modal .service-price-options li:last-child{margin-bottom:0}.service-modal .service-price-options li>div{font-size:13px;gap:14px}.service-modal .service-price-options li strong{color:#e5edf9;overflow-wrap:anywhere}.service-modal .service-price-options li span{color:var(--modal-accent);overflow-wrap:anywhere}.service-modal .service-price-options li p{font-size:12px;color:#aebed2;line-height:1.5}
.service-modal-presentation{margin-top:26px;padding-top:22px;border-top:1px solid #ffffff20;color:#d5dfed;max-width:850px}.service-modal-presentation>div{font-size:14px;line-height:1.65;color:#bac8db;margin-top:0}.service-modal-presentation p{margin:0 0 14px}
.service-modal-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 36px;border-top:1px solid #ffffff22;background:#03091670}
.service-modal-footer .pill-link{font-size:12px;padding:13px 20px;white-space:nowrap;flex:none;background:#f5f5f7;color:#151c27;gap:10px}.service-modal-footer nav{display:flex;gap:24px;justify-content:space-between;align-items:center;min-width:0}.service-modal-neighbor{display:flex;gap:9px;align-items:center;min-height:44px;max-width:180px;color:#c6d5ea;font-size:11px;line-height:1.4}.service-modal-neighbor span:first-child{font-size:19px;flex:none}.service-modal-neighbor span:last-child{overflow-wrap:anywhere}
.service-modal-open,.service-modal-open body{overflow:hidden;overscroll-behavior:none}.service-modal-open body{padding-right:var(--service-scroll-gap,0px)}
.services .service-card-visual{cursor:pointer}
@media(max-width:700px){
 .service-modal{width:calc(100vw - 24px);height:calc(100svh - 24px);border-radius:20px}
 .service-modal-close{top:12px;right:10px}.service-modal-heading{padding:26px 60px 20px 24px}.service-modal-heading .eyebrow{font-size:8px;line-height:1.6;letter-spacing:.14em;max-width:200px}.service-modal-heading h2{font-size:32px}.service-modal-subtitle{font-size:12px;margin-top:9px}
 .service-modal-scroll{padding:20px 20px 24px}.service-modal .service-price-grid{grid-template-columns:1fr;gap:16px}.service-modal .service-price{padding:22px}.service-modal .service-price h3{font-size:20px}.service-modal .service-price-amount{font-size:27px}.service-modal .service-price-detail{font-size:14px}.service-modal .service-price-empty{font-size:14px;padding:22px}
 .service-modal-footer{flex-direction:column;align-items:stretch;gap:8px;padding:14px 20px 12px}.service-modal-footer .pill-link{justify-content:center;min-height:44px;font-size:12px;padding:12px 16px}.service-modal-footer nav{gap:20px;justify-content:space-between}.service-modal-neighbor{max-width:46%;font-size:10px;gap:8px;min-height:38px}.service-modal-neighbor:last-child{text-align:right}.service-modal-neighbor:last-child span:first-child{order:2}
 .service-modal-presentation{margin-top:24px}.service-modal-presentation>div{font-size:13px}
}
@media(orientation:landscape) and (max-height:600px){
 .service-modal{width:calc(100vw - 32px);height:calc(100svh - 24px);border-radius:18px}
 .service-modal-heading{padding:18px 70px 16px 28px;display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.service-modal-heading .eyebrow{display:none}.service-modal-heading h2{font-size:28px}.service-modal-subtitle{font-size:11px;margin:0}.service-modal-close{top:10px;right:12px}
 .service-modal-scroll{padding:18px 28px}.service-modal .service-price-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.service-modal .service-price{padding:20px}.service-modal-footer{padding:10px 28px;flex-direction:row;gap:20px}.service-modal-footer .pill-link{font-size:11px;padding:10px 16px}.service-modal-footer nav{gap:18px}.service-modal-neighbor{font-size:10px;max-width:140px;min-height:38px}.service-modal-presentation{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){.service-modal,.service-modal::backdrop,.service-modal-close{transition:none;transform:none}}

/* Animate the top-layer surface itself: display:none -> dialog otherwise skips
   CSS transitions on some Safari versions. Content slides independently. */
.service-modal-host{touch-action:pan-y;overflow:hidden}
.service-modal.swiping{user-select:none;cursor:grabbing}
.service-modal::backdrop{animation:service-backdrop-in .38s ease both}
.service-modal.closing::backdrop{animation:service-backdrop-out .26s ease both}
@keyframes service-backdrop-in{from{background:#02050a00;backdrop-filter:blur(0)}to{background:#02050abb;backdrop-filter:blur(7px)}}
@keyframes service-backdrop-out{from{background:#02050abb;backdrop-filter:blur(7px)}to{background:#02050a00;backdrop-filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.service-modal::backdrop,.service-modal.closing::backdrop{animation:none}}

.service-modal-card[hidden]{display:none!important}

@media(min-width:701px){.service-modal-card.service-theme-concerts video,.service-modal-card.service-theme-concerts .service-film-placeholder{object-position:center 55%}}
@media(orientation:landscape) and (max-height:600px){.service-modal-background .service-modal-image,.service-modal-background video,.service-modal-background .service-film-placeholder{object-fit:contain!important;object-position:center!important;transform:none!important;inset:0!important;width:100%!important;height:100%!important}}

/* Match the clean continuous media edges used by the services page. */
.service-modal-background :is(img,video,canvas,.service-film-player){border:0;outline:0;box-shadow:none;border-radius:0}
@media(orientation:landscape) and (max-height:600px){
 .service-modal-footer{gap:14px;flex-wrap:wrap}.service-modal-footer nav{flex:1;min-width:240px}
 .service-modal-heading{padding-block:14px}.service-modal-scroll{padding-block:16px}
}

/* Keep arrow-only navigation easy to tap in every viewport. */
.service-modal-footer .service-modal-neighbor{width:44px;min-width:44px;min-height:44px;justify-content:center;padding:0}

/* Gradient text needs room for italic descenders inside its painted box. */
.service-modal-heading h2{line-height:1.25;padding:.04em .06em .18em .02em;overflow:visible}
/* The wedding film has 70 px encoded mattes at either edge of its 576 px
   frame. Center a 133% cover surface for native and editor-selected players,
   including the poster and canvas mirrors. The old 130%/-13% framing left
   about 3% of black visible above the image. Explicit crop profiles retain
   control of their own framing. */
.service-modal-card.service-theme-mariages .service-modal-background .service-film-player:not([data-crop-desktop]):not([data-crop-mobile]):not([data-crop-landscape])>:is(video,canvas,.service-film-placeholder){inset:auto 0!important;top:-16.5%!important;width:100%!important;height:133%!important;object-fit:cover!important;object-position:center!important;transform:none!important}

/* Size price cards from the available dialog width and keep four- and
   six-formula services in balanced rows instead of stranding a final card. */
.service-modal-scroll{container-type:inline-size}
.service-modal .service-price-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,216px),1fr));gap:18px}
.service-modal .service-price-grid:has(>.service-price:only-child){max-width:520px;margin-inline:auto}
.service-modal .service-price-grid:has(>.service-price:nth-child(4):last-child),
.service-modal .service-price-grid:has(>.service-price:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}
@container(min-width:684px){
 .service-modal .service-price-grid:has(>.service-price:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container(min-width:918px){
 .service-modal .service-price-grid:has(>.service-price:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container(max-width:449px){
 .service-modal .service-price-grid,
 .service-modal .service-price-grid:has(>.service-price:nth-child(4):last-child),
 .service-modal .service-price-grid:has(>.service-price:nth-child(5)){grid-template-columns:minmax(0,1fr)}
}
/* Cards in the same row share title, price, details and options baselines. */
.service-modal .service-price{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0}
.service-modal .service-price>h3{grid-row:1}.service-modal .service-price>.service-price-amount{grid-row:2}.service-modal .service-price>.service-price-detail{grid-row:3}.service-modal .service-price>.service-price-options{grid-row:4;align-self:start}
