/*27: complementary split widths; source image is never cropped or edited. */
.experience27 .creator-preview .layout-split>.gal-cover-photo{width:calc(100% - var(--block-width,50%));height:auto;object-fit:contain;align-self:center;flex-shrink:0}
.experience27 .layout-split>.cover-text-stage{width:var(--block-width,50%)}
.experience27 .creator-preview .positioned-date .gal-cover-date{font-family:var(--date-font,inherit)}
.ed-range>label{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ed-range input[type=number]{width:86px!important;min-height:40px;padding:8px;background:#fffdf9;border:1px solid #bfb7ad;color:#171717;font:inherit}
.ed-range input[type=range]{width:100%;min-height:32px}

.experience27 .gal-photo-download{position:absolute;bottom:8px;right:8px;width:36px;height:36px;border:1px solid #f7f5f1;background:#171717aa;color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center}.experience27 .gal-photo-download:focus-visible{outline:3px solid #171717;outline-offset:3px}@media(max-width:767px){.experience27 .gal-photo-download{width:30px;height:30px;font-size:18px;bottom:5px;right:5px}}

.experience27 .creator-preview .positioned-title:not(.stacked-title):not(.positioned-date){min-width:min-content;text-align:center}
.experience27 .creator-preview .positioned-title:not(.stacked-title) .gal-cover-names{overflow-wrap:normal;word-break:normal;hyphens:none}

.experience27 .video-embed{margin:24px 0}.experience27 .video-embed iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#171717}.experience27 .video-embed p{font:12px/1.5 system-ui,sans-serif}.experience27 .video-embed a{color:inherit}

/*27 cover geometry: height never exceeds the natural height at photo width.
   object-fit crops the presentation only; source bytes stay untouched. */
.experience27 .creator-preview .frame27.gal-cover{min-height:0!important;max-height:none;overflow:hidden;box-sizing:border-box}
.experience27 .creator-preview .frame27>.gal-cover-photo{display:block;height:100%;max-height:none;object-fit:cover;object-position:var(--cover-x,50%) var(--cover-y,50%);align-self:stretch}
.experience27 .creator-preview .frame27.layout-photo>.gal-cover-photo{width:100%}
.experience27 .creator-preview .frame27.layout-split>.gal-cover-photo{width:calc(100% - var(--block-width,50%))}
.ed-preview{min-width:0;overflow:hidden}.ed-device-controls{border-top:1px solid #ccc;padding-top:12px;margin-top:12px}

/*27 width-based preview matches actual mobile, not the editor viewport.*/
.experience27 .creator-preview{container-type:inline-size;container-name:gallery27}
.experience27 .creator-preview .gal-cover-names{font-size:calc(clamp(21px,3cqw,34px) * var(--title-scale,1))}
@container gallery27 (min-width:768px){.gal-grid{--gal-gap: 13.5px;padding:10px calc(var(--gal-gap) * 3) 6px}.gal-cover-logo{width:126px;top:20px}}
@container gallery27 (min-width:768px){.file-card[data-width=fluid]{padding-top:20px}.gal-cover{max-height:none}}
@container gallery27 (max-width:767px){.gal-fixed-canvas{--gal-col:calc((100cqw - var(--gal-gap)) / 2);height:var(--h-mobile)}.gal-fixed-item{left:var(--left-mobile);top:var(--top-mobile);width:var(--width-mobile)}}
@container gallery27 (max-width:767px){.gal-tabs button{font-size:6px;min-height:44px;min-width:44px}.gal-tabs .gal-chip{font-size:6px}}
@container gallery27 (max-width:767px){.gal-heart{width:17px;height:17px;font-size:8px}.gal-heart:after{content:"";position:absolute;inset:-13.5px}}
@container gallery27 (max-width:767px){.gal-heart svg{width:8px;height:8px}}
@container gallery27 (max-width:767px){.gal-bar{padding:3px 14px 2px;gap:3px}.gal-tabs{gap:3px}.gal-tabs button{min-height:0;min-width:0;padding:3px 6px;line-height:1.2}.gal-tabs .gal-chip,.gal-tabs .gal-newcol{padding:3px 6px;line-height:1.2}.gal-favs{margin:3px 0 0;font-size:12px}}
@container gallery27 (max-width:600px){.gal-download-open{font-size:10px;padding:4px 6px}.gal-download-dialog{padding:22px}}
@container gallery27 (max-width:767px){.creator-layout{margin-left:10px;margin-right:10px}.creator-controls{padding:16px}.creator-preview .gal-cover-names{font-size:clamp(20px,6cqw,26px)}.creator-preview .gal-cover-type{padding:50px 0 16px}.creator-preview .gal-cover-logo{width:76px;top:9px}.creator-preview .gal-grid{padding-left:27px;padding-right:27px}.creator-preview .gal-gate{padding-left:12px;padding-right:12px}.creator-nav{margin-left:10px;margin-right:10px}.creator-nav button{font-size:12px}.creator-caution{margin-left:10px;margin-right:10px}}
@container gallery27 (max-width:767px){.creator-preview.pos-top .gal-cover-type{padding-top:68px}}
@container gallery27 (max-width:600px){.panel-main{padding:0 14px 24px}.panel-main>.saved-grid{grid-template-columns:1fr}.saved-cover{height:220px}.card-menu>button{min-height:44px}}
@container gallery27 (max-width:767px){.creator-preview .gal-cover-logo.editable-logo{width:calc(76px * var(--logo-scale,1))}}
@container gallery27 (max-width:767px){.creator-preview .gal-cover-names{font-size:calc(clamp(20px,6cqw,26px) * var(--title-scale,1))}.creator-preview .layout-split .gal-cover-names{font-size:calc(clamp(13px,11cqw,40px) * var(--title-scale,1))}}
.ed-composition-warning{padding:12px;background:#fff3d8;border:1px solid #a75b00;color:#693700;font:14px/1.5 system-ui}

/*28: device-independent controls and proportional type in the actual cover area. */
.experience27 .creator-preview .frame27 .gal-cover-names{font-size:calc(4.2cqw * var(--title-scale,1));overflow-wrap:anywhere;max-width:100%}
.experience27 .creator-preview .frame27.layout-split .gal-cover-names{font-size:calc(7cqw * var(--title-scale,1))}
.experience27 .creator-preview .frame27 .gal-cover-date{font-size:calc(1.8cqw * var(--date-scale,1))}
.experience27 .creator-preview .frame27.layout-split .gal-cover-date{font-size:calc(2.5cqw * var(--date-scale,1))}
.creator-preview .positioned-subtitle{line-height:1.2;overflow-wrap:anywhere;max-width:92%;margin:0}
.ed-align-guide{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#00a9b7;box-shadow:0 0 0 1px #fff8;pointer-events:none;z-index:10}
.logo-is-black .gal-footer .gal-logo{filter:none}
.ed-pages{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:16px 0;font-size:12px}
