/* The photograph stays whole. The surround takes the shape of the story. */
.story-media-frame{position:relative!important;isolation:isolate;display:block!important;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#103842;line-height:0}
.story-media-frame .story-media-ambience{position:absolute!important;inset:-8%!important;width:116%!important;height:116%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:blur(28px) brightness(.48) saturate(.65);transform:scale(1.06);z-index:-1;pointer-events:none;user-select:none}
.story-media-frame .story-media-original{position:relative!important;display:block!important;inset:auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:50% 50%!important;filter:none!important;transform:none!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important}
.story-media-video{background:radial-gradient(ellipse at 50% 35%,#28535b,#082b38 80%)}
/* A matched collection with captions safely outside the picture. */
.stories-feed.social-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:30px 24px!important;align-items:start}
.stories-feed .live-story{display:flex;flex-direction:column;width:100%;height:auto;aspect-ratio:auto!important;min-width:0;padding:0;background:#f4f5ee;color:#143b45;text-align:left;overflow:hidden;border:1px solid #143b4512}
.stories-feed .live-story>.story-media-frame{height:auto;aspect-ratio:4/5;flex:0 0 auto}
.stories-feed .live-story-label{position:static!important;inset:auto!important;display:block!important;padding:16px 18px!important;background:transparent!important;width:100%;min-height:112px;line-height:1.5}
.stories-feed .live-story-label b{font-size:11px!important;letter-spacing:.07em;line-height:1.5;display:block;font-weight:500}
.stories-feed .live-story-label strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:29px/1.15 'Cormorant Garamond',Georgia,serif!important;margin:9px 0!important;overflow-wrap:anywhere}
.stories-feed .live-story-label small{font-size:12px!important;line-height:1.5;opacity:.7}
/* The same composition in previews, private memories and the Host Desk. */
.compose-preview-media{aspect-ratio:4/5!important;min-height:0!important;max-height:none!important;position:relative;overflow:hidden;display:block!important}
.compose-preview-media>.story-media-frame{position:absolute!important;inset:0;height:100%;width:100%}
.compose-preview-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:100%;position:absolute;inset:0}
.booking-highlight>.story-media-frame,.moderation-grid .host-review-card>.story-media-frame{height:auto;aspect-ratio:4/5;max-height:600px}
/* A viewport-sized viewer gives the original media room before the caption. */
.social-story-dialog{width:min(94vw,720px)!important;max-width:94vw!important;height:94svh;height:94dvh;max-height:94dvh!important;overflow:hidden!important;border-radius:12px;padding:0!important}
.social-story-dialog .reel-player{display:grid;grid-template-rows:7px 68px minmax(0,1fr) auto 48px;height:100%;min-height:0;overflow:hidden}
.social-story-dialog .reel-progress{padding:4px 12px 0;min-width:0}
.social-story-dialog .reel-heading{min-width:0;padding:8px 66px 8px 16px;gap:12px}
.social-story-dialog .mini-funzi{width:38px;height:38px;min-width:38px;font-size:30px}
.social-story-dialog .reel-heading>div{min-width:0}
.social-story-dialog .reel-heading b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.social-story-dialog .reel-heading small{font-size:12px;letter-spacing:0;line-height:1.3;margin-top:3px}
.social-story-dialog .reel-heading>span:last-child{font-size:12px;flex-shrink:0}
.social-story-dialog .story-close{position:absolute!important;top:17px!important;right:10px!important;width:44px!important;height:44px!important;min-width:44px;padding:0!important;margin:0!important;border:0!important;border-radius:50%;box-shadow:none;font:30px/1 Arial;background:#ffffff12!important;display:grid;place-items:center}
.social-story-dialog .reel-screen{height:auto!important;min-height:0!important;max-height:none;width:100%;padding:0;display:grid;place-items:center;overflow:hidden;background:#061f2a}
.social-story-dialog .reel-screen>.story-media-frame{height:100%;width:100%;background:#061f2a}
.social-story-dialog .reel-screen .story-media-ambience{display:none!important}
.social-story-dialog .reel-caption{padding:12px 18px;max-height:27svh;max-height:27dvh;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.social-story-dialog .reel-caption p{font-size:16px;line-height:1.4;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.social-story-dialog .reel-caption .pill{font-size:14px;min-height:44px;padding:10px 16px;margin:0}
.social-story-dialog .reel-caption>small{font-size:12px;line-height:1.4;margin-top:7px}
.social-story-dialog .reel-navigation{padding:0 18px;align-items:center;gap:16px}
.social-story-dialog .reel-navigation button{font-size:14px;min-height:44px}
/* The upload preview follows the file, including tall portraits and wide films. */
.compose-preview:has(.story-media-original) .compose-preview-media{aspect-ratio:var(--media-ratio,9/16)!important;max-height:65svh!important;background:#103842}
.compose-media-guidance{font-size:14px;line-height:1.5;margin:12px 0;color:inherit}
@media(max-width:600px){
 .social-story-dialog{width:100vw!important;max-width:100vw!important;height:100svh;height:100dvh;max-height:100dvh!important;margin:0!important;border-radius:0!important;box-sizing:border-box;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
 .social-story-dialog .reel-player{grid-template-rows:7px 64px minmax(0,1fr) auto 48px}
 .social-story-dialog .reel-heading{padding-left:14px;gap:10px}
 .social-story-dialog .reel-heading small{font-size:12px}
 .social-story-dialog .story-close{top:calc(15px + env(safe-area-inset-top))!important}
}
@media(max-height:500px){.social-story-dialog .reel-player{grid-template-columns:minmax(0,1fr) minmax(210px,35%);grid-template-rows:7px 60px minmax(0,1fr) 44px}.social-story-dialog .reel-progress,.social-story-dialog .reel-heading{grid-column:1/-1}.social-story-dialog .reel-screen{grid-column:1;grid-row:3/5}.social-story-dialog .reel-caption{grid-column:2;grid-row:3;max-height:none}.social-story-dialog .reel-navigation{grid-column:2;grid-row:4}}
/* Live guest introductions keep the personal copy below their photograph. */
.swipe-card.guest-card{display:flex;flex-direction:column;height:auto!important;aspect-ratio:auto!important;background:#163e47;color:#fbf7ed}
.swipe-card.guest-card>.story-media-frame{height:auto;aspect-ratio:4/5;flex:0 0 auto;pointer-events:none}
.swipe-card.guest-card>.deck-veil{display:none}
.swipe-card.guest-card>.deck-space-badge{position:static;order:-1;display:block;margin:0;width:100%;max-width:none;border:0;border-radius:0;background:transparent;backdrop-filter:none;padding:14px 20px;font-size:11px;line-height:1.5;letter-spacing:.05em}
.swipe-card.guest-card>.deck-caption{position:static;padding:18px 22px 22px;margin:0;pointer-events:none;flex:1}
.swipe-card.guest-card .deck-caption>span{font-size:11px;line-height:1.5}
.swipe-card.guest-card .deck-caption h2{font:34px/1.1 'Cormorant Garamond',Georgia,serif;margin:10px 0;overflow-wrap:anywhere}
.swipe-card.guest-card .deck-caption p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.6;margin:8px 0 0}
.swipe-card.guest-card .deck-caption button{font-size:14px;min-height:44px;padding:12px 0 6px}
@media(max-width:900px){.stories-feed.social-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}}
@media(max-width:600px){.stories-feed .live-story-label{padding:13px!important;min-height:115px}.stories-feed .live-story-label b{font-size:10px!important;letter-spacing:.03em}.stories-feed .live-story-label strong{font-size:25px!important}.swipe-card.guest-card .deck-caption h2{font-size:32px}.compose-preview-media{aspect-ratio:4/5!important}}
@media(max-width:400px){.stories-feed.social-post-grid{grid-template-columns:1fr!important;gap:24px!important}.stories-feed .live-story-label strong{font-size:31px!important}.stories-feed .live-story-label{min-height:0}.stories-feed .live-story-label b{font-size:11px!important}}
/* A landscape earns a wider place in the edit, rather than large empty bands. */
.stories-feed.social-post-grid{grid-auto-flow:row dense}
.stories-feed .live-story:has(.story-media-frame[data-shape=landscape]){grid-column:span 2}
.stories-feed .story-media-frame[data-shape=landscape],.swipe-card.guest-card>.story-media-frame[data-shape=landscape],.moderation-grid .host-review-card>.story-media-frame[data-shape=landscape],.booking-highlight>.story-media-frame[data-shape=landscape]{aspect-ratio:var(--media-ratio,16/9)!important}
.stories-feed .story-media-frame[data-shape=square],.swipe-card.guest-card>.story-media-frame[data-shape=square],.moderation-grid .host-review-card>.story-media-frame[data-shape=square],.booking-highlight>.story-media-frame[data-shape=square]{aspect-ratio:1!important}


@media(max-width:600px){.stories-feed .live-story:has(.story-media-frame[data-shape=landscape]){grid-column:1/-1}}
.story-view>.story-media-frame{height:min(65svh,700px);width:100%}
