.vl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.vl-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--fotogenic-shell-button-height); padding: 0 var(--fotogenic-shell-button-padding); border: 1px solid #121212; border-radius: var(--fotogenic-button-radius); background: #121212; color: #fff; font: 650 var(--fotogenic-shell-button-font-size)/1.5 var(--fotogenic-font-sans); text-decoration: none; }
.vl-dialog { --vl-line: #e1e4ec; --vl-muted: #667085; width: min(1080px,calc(100% - 64px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid #e2e0e6; border-radius: 20px; background: #fff; color: #121212; box-shadow: 0 24px 100px #17151e26; font-family: var(--fotogenic-font-sans); overflow: hidden; }
.vl-dialog[open] { display: flex; flex-direction: column; }
.vl-dialog::backdrop { background: #26213345; backdrop-filter: blur(12px); }
.vl-close { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f0eff2; color: #121212; font-size: 24px; cursor: pointer; flex-shrink: 0; }
.vl-close svg { display: block; width: 20px; height: 20px; }
html:has(body.vl-modal-open) { overflow: hidden; overscroll-behavior: none; }
body.vl-modal-fixed { position: fixed; inset-inline: 0; top: var(--vl-locked-scroll-top); overflow: hidden; }
.vl-dialog:focus { outline: none; }
.vl-image-error { padding: 40px 24px; text-align: center; font-size: 14px; }
.vl-image-error button { display: block; margin: 16px auto 0; cursor: pointer; }
@keyframes vl-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vl-backdrop-out { to { opacity: 0; } }
@keyframes vl-shimmer { to { background-position: -150% 0; } }

.vl-dialog [hidden] { display: none; }
.vl-dialog .vl-button { color: #fff; cursor: pointer; }
.vl-dialog :focus-visible { outline: 2px solid #9274df; outline-offset: var(--vl-focus-offset,3px); }
@media (prefers-reduced-motion: no-preference) {
  .vl-dialog[open]::backdrop { animation: vl-backdrop-in 200ms ease; }
  .vl-dialog[open].is-closing::backdrop { animation: vl-backdrop-out 160ms ease both; }
}
@media (prefers-reduced-transparency: reduce) {
  .vl-dialog::backdrop { background: #26213380; backdrop-filter: none; }
}
/* Template preview: stable media, scrollable details and a persistent action. */
.vl-preview-dialog {
  --vl-preview-width: min(1040px,calc(100vw - 64px));
  width: var(--vl-preview-width);
  height: min(calc(var(--vl-preview-width) * .55 * 1024 / 825),calc(100dvh - 64px));
  max-width: none;
  border: 0;
  border-radius: 22px;
  background: transparent;
  transform-origin: center;
}
.vl-preview-layout { display: grid; grid-template-columns: 55% minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; flex: 1; min-height: 0; }
.vl-preview-body { display: contents; }
.vl-preview-close { --vl-control-inset: 0px; position: absolute; z-index: 3; top: 16px; right: 20px; border-radius: 50%; background: transparent; isolation: isolate; }
.vl-preview-media { position: relative; width: 100%; min-width: 0; min-height: 0; grid-column: 1; grid-row: 1 / span 2; }
.vl-preview-image { overflow: hidden; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: #f4f2f6; }
.vl-preview-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: cover; object-position: center; }
.vl-preview-image .vl-preview-outgoing { position: absolute; inset: 0; pointer-events: none; }
.vl-preview-loading { position: absolute; z-index: 2; top: 16px; left: 16px; max-width: calc(100% - 80px); margin: 0; padding: 6px 10px; border-radius: 8px; background: #262133db; color: #fff; font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.vl-preview-image[aria-busy=true] ~ .vl-preview-loading { opacity: 1; transition-delay: 250ms; }
.vl-preview-panel { display: flex; flex-direction: column; grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 64px 28px 20px; background: #fff; scrollbar-width: thin; overscroll-behavior: contain; }
.vl-preview-selectors { flex-shrink: 0; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; margin-bottom: 22px; }
.vl-preview-select { width: 100%; min-width: 0; height: 44px; padding: 8px 2px; border: 0; border-bottom: 1px solid #9a91ac; border-radius: 0; background: #fff; font: 500 16px/1.4 var(--fotogenic-font-sans); color: #262231; cursor: pointer; }
.vl-preview-story { flex-shrink: 0; }
.vl-preview-story h2 { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.vl-preview-description { margin: 0; color: #596477; font-size: 15px; line-height: 1.5; }
.vl-preview-context { margin: 16px 0 0; color: #667085; font-size: 13px; line-height: 1.5; }
.vl-preview-related { flex-shrink: 0; margin-top: auto; padding-top: 24px; }
.vl-preview-related h3 { margin: 0 0 12px; font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
.vl-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.vl-related-look { min-width: 0; padding: 0; border: 0; background: transparent; color: #262231; text-align: left; cursor: pointer; font: 500 13px/1.4 var(--fotogenic-font-sans); }
.vl-related-look img, .vl-related-skeleton { display: block; width: 100%; height: clamp(108px,18dvh,158px); object-fit: contain; border-radius: 8px; background: #f2f0f4; transition: opacity 180ms ease; }
.vl-related-look span { display: block; margin-top: 8px; font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-related-skeleton { background-image: linear-gradient(100deg,transparent 25%,#ffffffa6 45%,transparent 65%); background-size: 250% 100%; animation: vl-shimmer 1.5s ease infinite; }
.vl-related-look:hover img { opacity: .85; }
.vl-related-look:disabled { opacity: .5; cursor: wait; }
.vl-preview-actions { display: flex; flex-direction: column; align-items: center; grid-column: 2; grid-row: 2; padding: 12px 28px 24px; background: #fff; }
.vl-preview-actions .vl-button { width: auto; gap: 12px; }
.vl-preview-actions .vl-button svg { width: 16px; height: 16px; flex-shrink: 0; }
.vl-preview-note { max-width: 300px; margin: 10px 0 0; color: #667085; font-size: 12px; line-height: 1.5; text-align: center; }
.vl-preview-nav { --vl-control-inset: 6px; position: absolute; z-index: 2; inset: 50% 12px auto; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.vl-preview-nav button { position: relative; isolation: isolate; display: grid; place-items: center; padding: 0; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: #292633; cursor: pointer; pointer-events: auto; transition: transform 180ms ease; }
.vl-preview-close::before, .vl-preview-nav button::before { content: ''; position: absolute; inset: var(--vl-control-inset); z-index: -1; border-radius: inherit; background: #ffffffed; box-shadow: 0 2px 12px #1212120a; pointer-events: none; transition: background 180ms ease; }
.vl-preview-close:hover::before, .vl-preview-nav button:hover:not(:disabled)::before { background: #eee8f8; }
.vl-preview-nav svg { display: block; width: 14px; height: 14px; }
.vl-preview-nav button:hover:not(:disabled) { transform: translateX(2px); }
.vl-preview-nav button:first-child:hover:not(:disabled) { transform: translateX(-2px); }
.vl-preview-nav button:disabled { visibility: hidden; pointer-events: none; }
.vl-preview-error { margin: 0 0 20px; padding: 12px; background: #f6f2fc; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.vl-preview-error button { min-height: 44px; padding: 4px 12px; border: 0; background: transparent; color: #542c92; font: 600 13px var(--fotogenic-font-sans); text-decoration: underline; cursor: pointer; }
.vl-preview-image .vl-image-error { position: absolute; z-index: 2; inset: auto 12px 12px; max-width: 300px; margin: auto; padding: 12px; border-radius: 12px; background: #ffffffed; }
.vl-preview-image .vl-image-error button { margin-top: 8px; }
.vl-dialog .vl-close { --vl-focus-offset: -6px; }
@media (prefers-reduced-motion: no-preference) {
  .vl-preview-dialog[open] { animation: vl-preview-in 320ms cubic-bezier(.22,1,.36,1) both; }
  .vl-preview-dialog[open].is-closing { animation: vl-preview-out 180ms cubic-bezier(.4,0,1,1) both; }
  .vl-preview-dialog[open]::backdrop { animation-duration: 220ms; }
  .vl-preview-dialog[open].is-closing::backdrop { animation-duration: 180ms; }
  .vl-preview-incoming { animation: vl-preview-image-in 280ms ease both; }
  .vl-preview-outgoing { animation: vl-preview-image-out 280ms ease both; }
}
@keyframes vl-preview-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes vl-preview-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes vl-preview-image-in { from { opacity: .2; } to { opacity: 1; } }
@keyframes vl-preview-image-out { to { opacity: 0; } }
@media (max-width: 960px) {
  .vl-preview-dialog { width: min(600px,calc(100% - 24px)); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .vl-preview-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) minmax(0,1fr) auto; }
  .vl-preview-close { --vl-control-inset: 6px; top: 8px; right: 8px; }
  .vl-preview-close svg { width: 16px; height: 16px; }
  .vl-preview-nav { inset-inline: 8px; }
  .vl-preview-media { grid-column: 1; grid-row: 1; }
  .vl-preview-panel { grid-column: 1; grid-row: 2; padding: 20px 20px 16px; }
  .vl-preview-selectors { gap: 12px; margin-bottom: 20px; }
  .vl-preview-story h2 { font-size: 23px; margin-bottom: 10px; }
  .vl-preview-description { font-size: 14px; }
  .vl-preview-context { margin-top: 10px; font-size: 12px; }
  .vl-preview-related { padding-top: 22px; }
  .vl-preview-related h3 { font-size: 14px; }
  .vl-related-look img, .vl-related-skeleton { height: 96px; }
  .vl-preview-actions { grid-column: 1; grid-row: 3; padding: 12px 20px max(16px,env(safe-area-inset-bottom)); }
  .vl-preview-note { max-width: 260px; margin: 8px 0 0; font-size: 11px; line-height: 1.4; }
}
@media (max-width: 600px) {
  .vl-preview-dialog {
    --vl-preview-details-height: 216px;
    --vl-preview-available-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    --vl-preview-width: min(calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)),calc((var(--vl-preview-available-height) - var(--vl-preview-details-height)) * 825 / 1024));
    --vl-preview-media-height: calc(var(--vl-preview-width) * 1024 / 825);
    width: var(--vl-preview-width);
    height: calc(var(--vl-preview-media-height) + var(--vl-preview-details-height));
    max-height: var(--vl-preview-available-height);
  }
  .vl-preview-layout { grid-template-rows: var(--vl-preview-media-height) minmax(0,1fr) auto; }
  .vl-preview-panel { padding: 16px 16px 8px; }
  .vl-preview-selectors, .vl-preview-context, .vl-preview-related, .vl-preview-note { display: none; }
  .vl-preview-story h2 { font-size: 22px; margin-bottom: 8px; }
  .vl-preview-actions { padding: 8px 20px 16px; }
}
@media (max-width: 600px) and (max-height: 600px) {
  .vl-preview-dialog { --vl-preview-details-height: 240px; }
}
@media (min-width: 601px) and (max-width: 960px) and (max-height: 600px), (max-width: 600px) and (max-height: 480px) and (orientation: landscape) {
  .vl-preview-dialog { width: calc(100% - 24px); height: calc(100dvh - 24px); }
  .vl-preview-layout { grid-template-columns: 50% minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; }
  .vl-preview-media { grid-row: 1 / span 2; }
  .vl-preview-panel { grid-column: 2; grid-row: 1; padding-top: 48px; }
  .vl-preview-actions { grid-column: 2; grid-row: 2; }
  .vl-preview-related { display: none; }
}
@media (max-width: 359px) {
  .vl-preview-actions { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-preview-dialog, .vl-preview-dialog *, .vl-preview-dialog *::before, .vl-preview-dialog .vl-preview-nav button, .vl-preview-dialog .vl-related-look img, .vl-related-skeleton { animation: none; transition: none; }
  .vl-preview-dialog .vl-preview-nav button:hover:not(:disabled) { transform: none; }
}

.vl-showcase-dialog .vl-preview-description { max-inline-size: 38ch; text-wrap: balance; }

/* The four pricing examples keep portrait framing on tall tablets. */
@media (min-width: 601px) and (max-width: 960px) and (min-height: 601px) {
  .vl-showcase-dialog { width: min(600px,calc((100dvh - 240px) * 825 / 1024)); height: min(calc(600px * 1024 / 825 + 216px),calc(100dvh - 24px)); }
  .vl-showcase-dialog .vl-preview-layout { grid-template-rows: minmax(0,1fr) 144px 72px; }
  .vl-showcase-dialog .vl-preview-panel { padding: 16px 20px 8px; }
  .vl-showcase-dialog .vl-preview-related, .vl-showcase-dialog .vl-preview-context { display: none; }
}
