.desk-language{font-size:12px;color:#777}
/* Geometry is independent of JS: every image occupies the same bounded frame. */
.desk-gallery{width:60%;max-width:720px;margin:64px auto 0}
.desk-gallery-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:4px}
.desk-slide{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .6s ease,visibility .6s}
.desk-slide[hidden]{display:none}
.desk-slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.desk-slide img,.desk-slide video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.desk-gallery-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:12px}
.desk-gallery-controls[hidden]{display:none}
.desk-gallery-controls button{width:44px;height:44px;background:transparent;color:inherit;font-size:22px}
.desk-gallery-controls button:hover{opacity:.6}
.desk-gallery-count{font-size:12px;font-variant-numeric:tabular-nums;color:#666;min-width:56px;text-align:center}
.desk-gallery-controls .desk-gallery-play{font-size:15px;margin-left:4px}
.desk-chapters{margin-top:64px}
.desk-chapters .web-chapter-body p{font-size:19px;line-height:1.65}
.desk-chapters .web-chapter:last-child{margin-bottom:16px}
html[data-mdg-theme="dark"] .desk-gallery-count,html[data-mdg-theme="dark"] .desk-language{color:#b9bfbd}
@media(max-width:760px){.desk-gallery{width:100%;margin-top:44px}.desk-gallery-stage{aspect-ratio:4/3}}
@media(max-width:640px){.desk-chapters{margin-top:40px}.desk-chapters .web-chapter-body p{font-size:17px;line-height:1.6}.desk-gallery-controls{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.desk-slide{transition:none}}

/* Side controls leave the image as the sole visual focus. */
.desk-gallery{position:relative;width:72%;max-width:840px;margin-top:72px}
.desk-gallery-controls{position:absolute;inset:0;display:block;margin:0;pointer-events:none}
.desk-gallery-controls button{pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}
.desk-gallery-controls [data-gallery-prev]{left:-60px}
.desk-gallery-controls [data-gallery-next]{right:-60px}
.desk-gallery-controls svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.desk-gallery-count,.desk-gallery-controls .desk-gallery-play{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.desk-gallery-controls .desk-gallery-play:focus-visible{clip-path:none;width:44px;height:44px;top:auto;bottom:-44px;left:calc(50% - 22px);transform:none;margin:0;background:var(--mdg-bg,#fff);color:#141617}
.desk-chapters{margin-top:88px}
#desk-chapters-title{font-size:32px;line-height:1.35;max-width:650px;margin:0 0 32px}
.desk-chapters summary h3{font-size:19px;line-height:1.65;font-weight:300;margin:0}
.desk-chapters summary:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
@media(max-width:760px){.desk-gallery{width:calc(100% - 48px);margin-top:48px}.desk-gallery-controls [data-gallery-prev]{left:-36px}.desk-gallery-controls [data-gallery-next]{right:-36px}.desk-gallery-controls svg{width:20px;height:20px}}
@media(max-width:640px){.desk-chapters{margin-top:56px}#desk-chapters-title{font-size:28px;margin-bottom:24px}.desk-chapters summary h3{font-size:17px;line-height:1.6}}

/* Breadcrumb, borrowing the quiet segmented language control. */
.mdg-exp-breadcrumb{width:fit-content;max-width:100%;gap:3px;padding:4px;background:#f2f2f2;border-radius:999px;font-size:13px;letter-spacing:.3px}
.mdg-exp-breadcrumb a,.mdg-exp-breadcrumb>span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 16px;border-radius:999px;white-space:nowrap;line-height:1.4;opacity:1;text-decoration:none}
.mdg-exp-breadcrumb a{color:#606164;transition:background-color .2s ease,color .2s ease}
.mdg-exp-breadcrumb a:hover{background:#fafafa;color:#141617;text-decoration:none}
.mdg-exp-breadcrumb>span[aria-current]{background:#fff;color:#141617;box-shadow:0 1px 4px #0000000d}
.mdg-exp-breadcrumb a:focus-visible{outline:1px solid currentColor;outline-offset:2px}
html[data-mdg-theme="dark"] .mdg-exp-breadcrumb{background:#252a29}
html[data-mdg-theme="dark"] .mdg-exp-breadcrumb a{color:#c2c7c5}
html[data-mdg-theme="dark"] .mdg-exp-breadcrumb a:hover{background:#343a38;color:#fff}
html[data-mdg-theme="dark"] .mdg-exp-breadcrumb>span[aria-current]{background:#404744;color:#fff;box-shadow:0 1px 4px #0002}
@media(max-width:640px){.mdg-exp-breadcrumb{font-size:12px}.mdg-exp-breadcrumb a,.mdg-exp-breadcrumb>span{min-height:40px;padding:0 14px}}
@media(prefers-reduced-motion:reduce){.mdg-exp-breadcrumb a{transition:none}}

.mdg-exp-breadcrumb a{gap:7px}
.desk-slide{display:flex;align-items:center;justify-content:center}
.desk-slide img,.desk-slide video{flex:none;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:5px}
@media(max-width:640px){.desk-slide img,.desk-slide video{border-radius:3px}}

.mdg-exp-breadcrumb .mdg-exp-breadcrumb-next{flex:0 0 44px;width:44px;padding:0;font-size:16px}
@media(max-width:360px){.mdg-exp-breadcrumb{gap:2px}.mdg-exp-breadcrumb a,.mdg-exp-breadcrumb>span{padding-left:10px;padding-right:10px}.mdg-exp-breadcrumb .mdg-exp-breadcrumb-next{padding:0}}

.mdg-exp-breadcrumb{display:flex;align-items:center;margin:-24px 0 32px;line-height:1.5}
body.mdg-page-refresh #wrapper .mdg-exp-intro h1{max-width:780px}
.mdg-exp-introduction{max-width:730px;margin-top:32px;font-size:19px;line-height:1.65}
.mdg-exp-introduction p{margin:0}.mdg-exp-introduction p+p{margin-top:20px}
.mdg-exp-chapters{max-width:780px;margin-top:88px}
body.mdg-page-refresh #wrapper #mdg-exp-chapters-title{font-family:Messina-Light,Helvetica,Arial,sans-serif;font-weight:300;letter-spacing:.45px;font-size:32px;line-height:1.35;margin:0 0 32px}
.mdg-exp-chapter{border:0}
.mdg-exp-chapter summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;gap:14px;width:fit-content;max-width:100%;min-height:44px;padding:6px 0}
.mdg-exp-chapter summary::-webkit-details-marker{display:none}
body.mdg-page-refresh #wrapper .mdg-exp-chapter h3{font-family:Messina-Light,Helvetica,Arial,sans-serif;font-size:19px;font-weight:300;line-height:1.65;letter-spacing:.45px;margin:0!important;text-transform:none;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.mdg-exp-chapter summary:hover .chapter-toggle{opacity:1}
.mdg-exp-chapter summary:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.mdg-exp-chapter .chapter-toggle{position:relative;flex:0 0 14px;width:14px;height:14px;margin:0;opacity:.65;transition:transform .2s ease,opacity .2s ease}
.mdg-exp-chapter .chapter-toggle:before{content:'';position:absolute;left:50%;top:50%;width:8px;height:8px;border:solid currentColor;border-width:0 1px 1px 0;transform:translate(-50%,-70%) rotate(45deg);background:none}
.mdg-exp-chapter .chapter-toggle:after{content:none}
.mdg-exp-chapter[open] .chapter-toggle{transform:rotate(180deg)}
.mdg-exp-chapter-body{max-width:690px;padding:6px 0 22px;font-size:19px;line-height:1.65}
.mdg-exp-chapter-body p{margin:0}.mdg-exp-chapter-body p+p{margin-top:20px}
.mdg-exploration button{font:inherit;border:0;padding:0;cursor:pointer;box-shadow:none}
.mdg-exploration .desk-gallery-controls button{border:0!important;background:transparent!important;color:inherit!important}
.mdg-exploration a{color:inherit;text-decoration:none}
.mdg-exploration .mdg-exp-introduction a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
@media(max-width:640px){.mdg-exp-breadcrumb{margin-top:-40px;margin-bottom:26px}.mdg-exp-introduction{font-size:17px;margin-top:28px}.mdg-exp-chapters{margin-top:56px}body.mdg-page-refresh #wrapper #mdg-exp-chapters-title{font-size:28px;margin-bottom:24px}.mdg-exp-chapter summary{min-height:44px;padding:6px 0}body.mdg-page-refresh #wrapper .mdg-exp-chapter h3{font-size:17px}.mdg-exp-chapter-body{font-size:17px;padding:6px 0 22px}}
@media(prefers-reduced-motion:reduce){.mdg-exp-chapter .chapter-toggle{transition:none}}
/* Translated projects can retain Avada containers around the shortcode.
   Clear their legacy gutters so mdg-page-inner owns the content width once. */
body.mdg-page-refresh #projectcontainer:has(.mdg-exploration){width:100%!important;max-width:none!important;margin:0!important}
body.mdg-page-refresh #projectcontainer :is(.fusion-fullwidth,.fusion-builder-row,.fusion-layout-column,.fusion-column-wrapper):has(.mdg-exploration){width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
body.mdg-page-refresh:has(.mdg-exploration) #main .post-content>.fusion-fullwidth:has(.fusion-button):not(:has(.mdg-exploration)){display:none}

/* Own the first paint: Avada must not hide an already visible gallery later.
   The server emits mdg-exp-enter only while the shared fade option is enabled.
   CSS is available before paint, so no JS-ready hide/show cycle is required. */
body.mdg-page-refresh #main .fusion-fullwidth:has(.mdg-exploration){
 animation:none!important;visibility:visible!important;opacity:1!important;transform:none!important;
}
@keyframes mdg-exploration-enter{from{opacity:0}to{opacity:1}}
.mdg-exp-enter>.mdg-page-inner>*{
 animation:mdg-exploration-enter 1.1s ease-in-out .15s backwards;
}
.mdg-exp-enter>.mdg-page-inner>.desk-gallery{animation-delay:.29s}
.mdg-exp-enter>.mdg-page-inner>.mdg-exp-chapters{animation-delay:.43s}
body.fusion-builder-live .mdg-exp-enter>.mdg-page-inner>*{animation:none}
@media(prefers-reduced-motion:reduce){.mdg-exp-enter>.mdg-page-inner>*{animation:none}}
@media print{.mdg-exp-enter>.mdg-page-inner>*{animation:none}}
