/* Shared by the PC editor and published page. Images retain their natural ratio. */
.preview-component[data-type="image_show"],
.preview-component[data-type="image_row"],
.preview-component[data-type="image_show"] .component-preview,
.preview-component[data-type="image_row"] .component-preview,
.preview-component[data-type="image_row2"] .component-preview { display:block; width:100%; min-width:0; }
.ir-grid, .i2-grid, .dx-img-row ul, .dx-img-row2 ul { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:12px; width:100%; margin:0; padding:0; list-style:none; }
.ir-grid, .i2-grid, .preview-component[data-type="image_show"] .component-preview { max-width:100%; margin-left:auto; margin-right:auto; }
.preview-component[data-custom-layout="1"] .ir-grid,
.preview-component[data-custom-layout="1"] .i2-grid,
.preview-component[data-custom-layout="1"][data-type="image_show"] .component-preview { max-width:100%; }
.ir-item, .i2-item, .dx-img-row li, .dx-img-row2 li { min-width:0; margin:0; padding:0; border-radius:0; }
.preview-component[data-type="image_show"] .image-preview { display:block; width:100%; }
.preview-component[data-type="image_show"] .component-preview img,
.ir-item img, .i2-item img, .dx-image-show img, .dx-img-row img, .dx-img-row2 img { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; }
.ir-img-placeholder, .dx-img-row .dx-noimg, .dx-img-row2 .dx-noimg { display:flex; align-items:center; justify-content:center; width:100%; height:120px; background:#f0f0f0; color:#bbb; }
.dx-wrap.dx-img-row, .dx-wrap.dx-img-row2, .dx-wrap.dx-image-show { box-sizing:border-box; margin:0 auto 20px; }
/* Single/two/three-image components share the same fixed-height fitting rules. */
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > :is(.image-preview, .ir-grid, .i2-grid, .dx-image-show, .dx-img-row, .dx-img-row2) { height:100%; min-height:0; margin-bottom:0; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > :is(.image-preview, .dx-image-show),
.dx-layout-fixed > .dx-layout-inner > .dx-image-show > a { display:flex; align-items:center; justify-content:center; }
.dx-layout-fixed > .dx-layout-inner > .dx-image-show > a { width:100%; height:100%; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) :is(.ir-grid, .i2-grid, .dx-img-row ul, .dx-img-row2 ul) { height:100%; min-height:0; grid-template-rows:minmax(0,1fr); }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) :is(.ir-item, .i2-item, .dx-img-row li, .dx-img-row2 li, .dx-img-row li > a, .dx-img-row2 li > a) { display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-height:0; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) :is(.image-preview, .ir-grid, .i2-grid, .dx-image-show, .dx-img-row, .dx-img-row2) img { width:auto; max-width:100%; height:auto; max-height:100%; object-fit:contain; transform:none; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) :is(.ir-img-placeholder, .dx-img-row .dx-noimg, .dx-img-row2 .dx-noimg) { height:100%; min-height:0; }
.preview-component[data-type="image_multi_row"] .component-preview { display:block; width:100%; min-width:0; }
.dx-multi-row { display:flex; align-items:center; box-sizing:border-box; width:100%; max-width:100%; margin:0 auto 20px; overflow:hidden; }
.dx-multi-row-title { flex:0 0 auto; display:flex; align-items:center; justify-content:center; align-self:stretch; margin:0 min(14px,2%) 0 0; padding:8px 10px; border-radius:8px; background:linear-gradient(180deg,rgba(8,104,173,0.08),rgba(8,104,173,0.02)); border:1px solid rgba(8,104,173,0.14); border-left:3px solid currentColor; letter-spacing:0.08em; }
.dx-multi-row-title span { display:block; writing-mode:vertical-rl; text-orientation:upright; white-space:nowrap; line-height:1.2; font-size:min(1em,calc(var(--mr-fixed-height,10000px) / (var(--mr-title-count) * 1.2))); }
.dx-multi-row.has-horizontal-title { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); align-items:stretch; gap:10px; }
.dx-multi-row.has-horizontal-title .dx-multi-row-title { position:relative; display:block; min-width:0; margin:0; padding:0 0 8px; text-align:left; background:none; border:0; border-bottom:1px solid #e6eef6; border-radius:0; letter-spacing:0.04em; }
.dx-multi-row.has-horizontal-title .dx-multi-row-title::after { content:""; position:absolute; left:0; bottom:-1px; width:42px; height:3px; border-radius:2px; background:currentColor; }
.dx-multi-row.has-horizontal-title .dx-multi-row-title span { writing-mode:horizontal-tb; white-space:normal; overflow-wrap:anywhere; font-size:1em; }
.dx-multi-row-viewport { flex:1 1 0%; min-width:0; overflow:hidden; }
.dx-multi-row.has-caption .dx-multi-row-viewport { padding:4px 2px 8px; }
.dx-multi-row-track { display:flex; width:100%; }
.dx-multi-row-group { box-sizing:border-box; flex:0 0 100%; min-width:0; display:grid; grid-template-columns:repeat(var(--mr-count),minmax(0,1fr)); align-items:center; gap:min(var(--mr-gap),calc(40% / var(--mr-count))); }
.dx-multi-row-item { display:block; min-width:0; margin:0; padding:0; }
.dx-multi-row .dx-multi-row-item img { display:block; width:100%; max-width:100%; height:auto; margin:0; border:0; border-radius:0; object-fit:contain; }
.dx-multi-row.has-caption .dx-multi-row-group { align-items:stretch; }
.dx-multi-row.has-caption .dx-multi-row-item { display:flex; flex-direction:column; align-items:stretch; background:#fff; border:1px solid #e8eef5; border-radius:10px; box-shadow:0 2px 10px rgba(15,39,71,0.04); overflow:hidden; text-decoration:none; color:inherit; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (hover:hover) and (pointer:fine) {
    .dx-multi-row.has-caption .dx-multi-row-item:hover { transform:translateY(-3px); border-color:rgba(8,104,173,0.28); box-shadow:0 10px 22px rgba(8,104,173,0.12); }
}
.dx-multi-row.has-caption .dx-multi-row-media { display:block; width:100%; background:#f8fafd; overflow:hidden; }
.dx-multi-row-caption { display:block; width:100%; box-sizing:border-box; padding:9px 10px; font-size:14px; font-weight:500; line-height:1.4; color:#1e293b; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-top:1px solid #f1f5f9; background:#fff; transition:color .2s ease; }
a.dx-multi-row-item:hover .dx-multi-row-caption { color:#0868ad; }
/* Pass the configured height through the entire row before fitting each image. */
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row { height:100%; margin-bottom:0; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row:not(.has-horizontal-title) .dx-multi-row-title { padding:2px 8px; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row :is(.dx-multi-row-viewport, .dx-multi-row-track, .dx-multi-row-group, .dx-multi-row-item) { height:100%; min-height:0; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row .dx-multi-row-group { grid-template-rows:minmax(0,1fr); }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row .dx-multi-row-item { display:flex; align-items:center; justify-content:center; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row .dx-multi-row-item img { width:auto; max-height:100%; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row.has-caption .dx-multi-row-viewport { padding:0; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row.has-caption .dx-multi-row-item { flex-direction:column; align-items:stretch; justify-content:center; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row.has-caption .dx-multi-row-media { flex:1 1 0%; min-height:0; width:100%; display:flex; align-items:center; justify-content:center; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row.has-caption .dx-multi-row-caption { flex:0 0 auto; padding:5px 8px; font-size:13px; }
:is(.preview-component.has-custom-height > .component-preview, .dx-layout-fixed > .dx-layout-inner) > .dx-multi-row.has-horizontal-title .dx-multi-row-title span { font-size:min(1em,calc(var(--mr-fixed-height) / 3)); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dx-multi-row.is-scrolling .dx-multi-row-track { width:calc(200% * var(--mr-count) / var(--mr-visible)); animation:dxMultiRowScroll var(--mr-duration) linear infinite; }
.dx-multi-row.is-scrolling .dx-multi-row-group { flex-basis:50%; padding-right:min(var(--mr-gap),calc(40% / var(--mr-count))); }
.dx-multi-row:hover .dx-multi-row-track, .dx-multi-row:focus-within .dx-multi-row-track { animation-play-state:paused; }
@keyframes dxMultiRowScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) {
    .dx-multi-row.is-scrolling .dx-multi-row-track { width:100%; animation:none; }
    .dx-multi-row.is-scrolling .dx-multi-row-group { flex-basis:100%; padding-right:0; }
    .dx-multi-row.is-scrolling .dx-multi-row-group[aria-hidden="true"] { display:none; }
}
