/* Responsive menu space is independent of the optional visual finish. */
.mg-gallery{padding-top:0}
.mg-gallery>.mg-top-spacer{display:block;width:100%;height:var(--mg-top-space,0px);background:var(--mg-top-space-color,var(--mg-bg));pointer-events:none;flex-shrink:0}
@media(max-width:1000px){.mg-gallery>.mg-top-spacer{height:var(--mg-top-space-tablet,var(--mg-top-space,0px))}}
@media(max-width:600px){.mg-gallery>.mg-top-spacer{height:var(--mg-top-space-mobile,var(--mg-top-space,0px))}}
/* All behavioral selectors and configurable variables are preserved. */
.mg-reference-ui .mg-intro{padding:42px 24px 22px}
.mg-reference-ui .mg-intro h3{line-height:1.25;letter-spacing:.015em}
.mg-reference-ui .mg-intro p{line-height:1.7}
.mg-reference-ui .mg-experience-row{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:var(--mg-gallery-width,1600px);width:calc(100% - 2 * var(--mg-side-space,24px));margin:20px auto 30px;align-items:stretch}
.mg-reference-ui .mg-experience-row>.mg-upload,.mg-reference-ui .mg-experience-row>.mg-proof-instructions{width:100%;max-width:none;margin:0;min-width:0}
.mg-reference-ui .mg-upload{padding:26px;border-radius:16px;box-shadow:0 12px 34px #00000012}
.mg-reference-ui .mg-upload strong{display:block;font-size:19px;line-height:1.4}
.mg-reference-ui .mg-upload p{line-height:1.65}
.mg-reference-ui .mg-upload-actions{gap:12px;margin:20px 0 12px}
.mg-reference-ui .mg-button{min-height:44px;transition:filter .15s,box-shadow .15s}
.mg-reference-ui .mg-button:hover{filter:brightness(1.1)}
.mg-reference-ui .mg-proof-instructions{border-width:1px;box-shadow:0 10px 28px #0000000d}
.mg-reference-ui .mg-category-tools{gap:10px;margin:18px 16px 12px}
.mg-reference-ui .mg-category{min-height:38px;padding:8px 22px;border-radius:999px}
.mg-reference-ui .mg-proof-tools{gap:14px;padding:10px 20px 20px;flex-wrap:wrap}
.mg-reference-ui .mg-category-section-heading h3{line-height:1.3}
.mg-reference-ui .mg-category-section-description{line-height:1.65}
.mg-reference-ui .mg-favorite{border:0;background:#00000035;box-shadow:0 1px 6px #00000026;color:#fff;width:40px;height:40px;font-size:26px;backdrop-filter:blur(3px)}
.mg-reference-ui .mg-favorite[aria-pressed=true]{color:var(--mg-arrow);background:#0000006b}
.mg-reference-ui .mg-proof-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 22px;width:calc(100% - 2 * var(--mg-side-space,24px));max-width:1000px;margin:32px auto;padding:28px;box-shadow:0 10px 32px #00000012}
.mg-reference-ui .mg-proof-form>h3,.mg-reference-ui .mg-proof-form>p,.mg-reference-ui .mg-proof-form>label{grid-column:1/-1}
.mg-reference-ui .mg-proof-form>h3{margin:0;font-size:24px;line-height:1.3}
.mg-reference-ui .mg-proof-form>label:has(input[name=name]),.mg-reference-ui .mg-proof-form>label:has(input[name=email]){grid-column:auto}
.mg-reference-ui .mg-proof-form label{line-height:1.55;margin:4px 0}
.mg-reference-ui .mg-proof-form input:not([type=checkbox]),.mg-reference-ui .mg-proof-form textarea{margin-top:7px;min-height:46px;border-color:var(--mg-proof-form-border,#555);border-radius:8px}
.mg-reference-ui .mg-proof-form>button[type=submit]{grid-column:1/-1;justify-self:end;padding-left:24px;padding-right:24px}
.mg-reference-ui .mg-arrow{border-radius:50%;width:48px;height:48px;font-size:48px;background:#0000003d}
.mg-reference-ui .mg-arrow:hover{background:#00000075}
@media(min-width:1001px){.mg-reference-ui .mg-experience-row:has(>.mg-upload:not([hidden])):has(>.mg-proof-instructions:not([hidden])){grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}}
@media(max-width:600px){.mg-reference-ui .mg-intro{padding:28px 18px 16px}.mg-reference-ui .mg-experience-row,.mg-reference-ui .mg-proof-form{width:calc(100% - 24px)}.mg-reference-ui .mg-experience-row{gap:16px;margin-top:16px}.mg-reference-ui .mg-upload{padding:20px}.mg-reference-ui .mg-proof-instructions{padding:20px}.mg-reference-ui .mg-proof-form{grid-template-columns:minmax(0,1fr);gap:8px;padding:20px}.mg-reference-ui .mg-proof-form>label:has(input[name=name]),.mg-reference-ui .mg-proof-form>label:has(input[name=email]){grid-column:1/-1}.mg-reference-ui .mg-proof-form>button[type=submit]{width:100%;justify-self:stretch}.mg-reference-ui .mg-favorite{width:36px;height:36px;font-size:24px}.mg-reference-ui .mg-category{padding:8px 16px}.mg-reference-ui .mg-arrow{width:42px;height:42px;font-size:42px}}
@media(prefers-reduced-motion:reduce){.mg-reference-ui .mg-button{transition:none}}
/* Vertical rhythm, shared by both visual finishes. Device values are independent. */
.mg-gallery{--mg-active-welcome:var(--mg-welcome-space,10px);--mg-active-photos:var(--mg-photos-space,12px);--mg-active-blocks:var(--mg-blocks-space,16px)}
.mg-gallery .mg-intro{padding-bottom:var(--mg-active-welcome)}
.mg-gallery .mg-experience-row{margin-top:var(--mg-active-blocks);margin-bottom:var(--mg-active-blocks)}
.mg-gallery .mg-grid{padding-top:var(--mg-active-photos)}
.mg-gallery .mg-category-section-heading{margin-top:var(--mg-active-blocks)}
.mg-gallery .mg-category-tools{margin-top:var(--mg-active-blocks);margin-bottom:0}
.mg-gallery .mg-category-description{margin-bottom:var(--mg-active-blocks)}
.mg-gallery .mg-proof-tools{padding-top:var(--mg-active-blocks);padding-bottom:var(--mg-active-blocks)}
@media(max-width:1000px){.mg-gallery{--mg-active-welcome:var(--mg-welcome-space-tablet,8px);--mg-active-photos:var(--mg-photos-space-tablet,10px);--mg-active-blocks:var(--mg-blocks-space-tablet,12px)}}
@media(max-width:600px){.mg-gallery{--mg-active-welcome:var(--mg-welcome-space-mobile,4px);--mg-active-photos:var(--mg-photos-space-mobile,6px);--mg-active-blocks:var(--mg-blocks-space-mobile,8px)}}
/* Atomic masonry items: no fragmented outer margin at the start of a column. */
.mg-gallery.mg-layout-masonry .mg-grid{line-height:0}
.mg-gallery.mg-layout-masonry .mg-grid>.mg-photo,
.mg-gallery.mg-layout-masonry .mg-grid>.mg-proof-card{display:inline-block;vertical-align:top;box-sizing:border-box;width:100%;margin:0;padding:0 0 var(--mg-gap,12px);break-inside:avoid;break-inside:avoid-column;-webkit-column-break-inside:avoid;page-break-inside:avoid;line-height:1.5}
.mg-gallery.mg-layout-masonry .mg-grid>.mg-proof-card>.mg-photo{display:block;padding:0;margin:0}
.mg-gallery.mg-layout-masonry .mg-grid>.mg-photo>img,
.mg-gallery.mg-layout-masonry .mg-grid>.mg-proof-card>.mg-photo>img{display:block;margin:0;vertical-align:top}

/* Filmart: spacing applies only when categories exist. */
.mg-gallery{--mg-categories-active-top:var(--mg-categories-top-space,32px)}
.mg-gallery .mg-category-tools,.mg-gallery .mg-category-section-heading{margin-top:var(--mg-categories-active-top)}
.mg-gallery .mg-category-description:not([hidden]){margin-top:var(--mg-categories-filter-gap,12px)}
.mg-gallery .mg-section-grid{padding-top:var(--mg-categories-header-gap,18px)}
@media(max-width:1024px){.mg-gallery{--mg-categories-active-top:var(--mg-categories-top-space-tablet,24px)}}
@media(max-width:600px){.mg-gallery{--mg-categories-active-top:var(--mg-categories-top-space-mobile,24px)}}
