/* MV-UI-UX-02: existing account, image viewer and safe single-image wrappers. */
.mv-auth-page{--mv-auth-header:165px;min-height:calc(100dvh - var(--mv-auth-header) - 64px);display:grid;align-content:center;padding-block:28px}
.mv-auth-page>article.mv-auth-layout{width:100%;max-width:450px;margin-inline:auto;padding:28px;background:#fff;border:1px solid #e3e6e5;border-radius:12px;box-shadow:0 8px 30px #18242606}
.mv-auth-page .article-header{width:100%;margin:0 0 18px}.mv-auth-page .mv-breadcrumbs{font-size:11px;margin-bottom:18px}.mv-auth-page .article-header h1{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0}
.mv-auth-page .mv-account.mv-auth{max-width:none;border:0;padding:0!important;margin:0;border-radius:0}.mv-auth-page .mv-auth-intro{font-size:13px;line-height:1.65;margin:0 0 20px}.mv-auth-page .mv-account-form{border:0;margin:0;padding:0;max-width:none}
.mv-auth-page .mv-auth-field{margin:0 0 16px}.mv-auth-page form label{margin-bottom:6px}.mv-auth-page .mv-auth input:not([type=hidden]){border-color:#c9cece;border-radius:6px;min-height:48px;font-size:15px}
.mv-auth-page .mv-password-control{display:block;position:relative}.mv-auth-page .mv-password-control input{width:100%;padding-right:88px}.mv-auth-page .mv-password-control .mv-password-toggle{position:absolute;right:4px;top:4px;min-height:40px;height:40px;padding:0 10px;border:0;font-size:11px;background:transparent;color:#535b60}
.mv-auth-page .mv-password-hint{display:block;font-size:12px;color:#646b70;line-height:1.5;margin-top:6px}.mv-auth-page .mv-auth-consent{font-size:12px;line-height:1.7;color:#646b70;margin:0 0 18px}.mv-auth-page .mv-auth a{text-underline-offset:3px}.mv-auth-page .mv-auth [type=submit]{width:100%;font-size:13px;min-height:48px;border-radius:6px;transition:background 180ms,border-color 180ms}
.mv-auth-page .mv-account-links{margin:18px 0 0;padding-top:16px;gap:4px 18px;font-size:12px}.mv-auth-page .mv-account-links a{min-height:36px;display:inline-flex;align-items:center}.mv-auth-page .mv-auth:has(input[name=action][value=mv_accounts_login]) .mv-account-links a[href*="mode=login"],.mv-auth-page .mv-auth:has(input[name=action][value=mv_accounts_register]) .mv-account-links a[href*="mode=register"],.mv-auth-page .mv-auth:has(input[name=action][value=mv_accounts_recover]) .mv-account-links a[href*="mode=recover"]{display:none}.mv-auth-page .mv-account:has(.mv-auth-intro):not(:has(form)) .mv-account-links a[href*="mode=login"]{display:inline-flex}
.mv-auth-page .mv-feedback,.mv-auth-page .mv-service-feedback{padding:12px;font-size:13px;line-height:1.6;border-radius:6px}.mv-auth-page .mv-service-feedback{margin:14px 0 0!important}.mv-auth-page .mv-field-error{font-size:12px;line-height:1.5}.mv-auth-page :focus-visible{outline:2px solid #007f89;outline-offset:3px}body:has(.mv-auth-page)>.site-footer{margin-top:0}
@media(max-width:1023px){.mv-auth-page{--mv-auth-header:76px}}
@media(max-width:640px){.mv-auth-page{padding-block:20px}.mv-auth-page>article.mv-auth-layout{padding:24px 18px}.mv-auth-page .article-header h1{font-size:27px}}
@media(max-height:650px){.mv-auth-page{min-height:0;padding-block:18px}}
/* Native top layer; only the active original is requested. */
body.mv-gallery-open{position:fixed;top:var(--mv-gallery-scroll);left:0;right:0;overflow:hidden}
.gallery-dialog{width:min(1280px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);max-width:100%;padding:56px 20px 16px;margin:auto;background:#fafaf8;color:#26282b;border:1px solid #e0e3e1;border-radius:10px;box-shadow:0 12px 50px #23302b18;overscroll-behavior:contain}
.gallery-dialog:not([open]){display:none}.gallery-dialog[open]{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;animation:mv-gallery-enter 160ms ease-out}.gallery-dialog::backdrop{background:#eceeece8}
.gallery-dialog figure{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-height:0;min-width:0;margin:0}.gallery-image-surface{min-height:0;min-width:0;display:grid;place-items:center;background:#fff;touch-action:pan-y pinch-zoom}.gallery-dialog .gallery-image-surface img{display:block;width:100%;height:100%;max-height:100%;max-width:100%;object-fit:scale-down;min-height:0;min-width:0}
.gallery-dialog figcaption{font:400 12px/1.5 Montserrat,sans-serif;max-width:80ch;margin:0 auto;color:#5c6465;text-align:center;max-height:4.5em;overflow:auto}.gallery-dialog figcaption[hidden]{display:none}.gallery-close{color:#26282b;top:6px;right:10px;width:44px;height:44px;display:grid;place-items:center;background:#fff;border:1px solid #e0e3e1;border-radius:50%}.gallery-controls{margin:0;gap:16px;min-height:44px;position:relative}.gallery-controls button{display:grid;place-items:center;width:44px;height:44px;background:#fff;color:#26282b;border:1px solid #dce1de;border-radius:50%}.gallery-controls span{font:12px/1.5 Montserrat,sans-serif;font-variant-numeric:tabular-nums;min-width:48px;text-align:center}.gallery-original{font-size:11px;text-decoration:underline;text-underline-offset:3px;color:#58615e}.gallery-dialog button:hover{background:#f0f3f1}.gallery-dialog :focus-visible{outline:2px solid #007f89;outline-offset:3px}.gallery-dialog.is-loading .gallery-image-surface{background:#f5f6f4}
@keyframes mv-gallery-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.gallery-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:54px 8px calc(10px + env(safe-area-inset-bottom,0px));border-radius:7px}.gallery-controls{gap:12px}.gallery-original{font-size:10px}}
/* Only unstyled solitary photographs. Grids, pairs, floats and explicit alignment stay authored. */
.article-reading>.entry-content>figure.wp-block-image:not([style]):not(.alignleft):not(.alignright):not(.aligncenter),.article-reading>.entry-content>.wp-caption:not([style]):not(.alignleft):not(.alignright):not(.aligncenter),.article-reading>.entry-content>p:not([style]):not(:has(.alignleft,.alignright)):has(>a:only-child>img):not(:has(>a>img~img)),.article-reading>.entry-content>p:not([style]):not(:has(.alignleft,.alignright)):has(>img:only-child){margin-block:24px;margin-inline:0}
.article-reading>.entry-content>figure.wp-block-image:not([style]):not(.alignleft):not(.alignright):not(.aligncenter)>a,.article-reading>.entry-content>p:not([style]):not(:has(.alignleft,.alignright)):has(>a:only-child>img):not(:has(>a>img~img))>a{display:block}
.article-reading>.entry-content>figure.wp-block-image:not([style]):not(.alignleft):not(.alignright):not(.aligncenter) img,.article-reading>.entry-content>p:not([style]):not(:has(.alignleft,.alignright)):has(>a:only-child>img):not(:has(>a>img~img)) img,.article-reading>.entry-content>p:not([style]):not(:has(.alignleft,.alignright)):has(>img:only-child)>img{display:block;max-width:100%;height:auto;margin:0}
@media(prefers-reduced-motion:reduce){.gallery-dialog[open]{animation:none}.mv-auth-page .mv-auth button,.mv-auth-page .mv-auth [type=submit]{transition:none}}
/* The existing loader marks only safe ordinary photos, then releases this reserve after decode. */
.single-main .article-reading>.entry-content img.mv-ux-sized-slot.mv-ux-sized-slot:not([data-mv-decoded]){width:min(100%,var(--mv-image-width,100%),var(--mv-ux-slot-width,100%))!important;height:auto!important;aspect-ratio:var(--mv-image-ratio,auto)}

/* Legacy table-like float figures retain the explicit width authored on their image. */
.single-main .article-reading>.entry-content .wp-block-image>figure.mv-ux-legacy-slot{width:min(100%,var(--mv-ux-legacy-width));max-width:100%}

/* Developer credit in the shared full and compact footers. */
.subfooter .mv-developer-credit,.mv-checkout-footer .mv-developer-credit{margin:10px 0 0;font-size:12px;font-weight:400;line-height:1.65;color:#626262;overflow-wrap:anywhere}
.mv-checkout-footer .mv-developer-credit{margin-top:6px}
.mv-developer-credit a{display:inline-block;white-space:nowrap;text-decoration:underline;text-decoration-color:#969696;text-underline-offset:3px}
.mv-developer-credit a:hover{color:#006b75;text-decoration-color:currentColor}
.mv-developer-credit a:focus-visible{outline:2px solid #006b75;outline-offset:3px;border-radius:2px}
