.hytl-gallery{display:flex;flex-direction:column;flex:1 1 210px;min-height:150px;margin-top:12px;border-radius:4px;overflow:hidden;background:#fff}
.hytl-gallery-stage{position:relative;flex:1;min-height:0}
.hytl-gallery-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.hytl-gallery-stage img[hidden]{display:none}
.hytl-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:3px 6px;background:#fff;border-top:1px solid #e8e0db}
.hytl-gallery-controls button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:#a82e2c;font-size:25px;cursor:pointer}
.hytl-gallery-controls button:hover{background:#f6eeeb}
.hytl-gallery-controls button:focus-visible{outline:2px solid #a82e2c;outline-offset:-3px}
.hytl-gallery-count{font:500 12px/1.4 system-ui;color:#685c57;font-variant-numeric:tabular-nums}
.hytl-kb.hytl-still img{animation:none;transform:none;object-fit:contain;background:#fff}
@media(max-width:760px),(max-height:520px),(prefers-reduced-motion:reduce){.hytl-gallery{flex:none;height:clamp(260px,48vw,380px)}}

.hytl-kb.hytl-brand{background:#fffdf9;border:1px solid #eee5dc}
.hytl-kb.hytl-brand img{animation:none;transform:none;object-fit:contain;padding:18px 24px;box-sizing:border-box}

.hytl-kb.hytl-white,.hytl-kb.hytl-white img,.hytl-kb.hytl-qr,.hytl-kb.hytl-qr img{background:#fff}
.hytl-qr a{position:absolute;inset:0;display:block}
.hytl-kb.hytl-qr img{padding:6px;box-sizing:border-box}
.hytl-qr a:focus-visible{outline:3px solid #a82e2c;outline-offset:-3px}

/* Category rows are removed; preserve spacing below the year. */
.hytl-card .hytl-y{margin-bottom:12px}

/* Match image frames to the white cards without changing image fit or motion. */
.hytl-kb.hytl-still,.hytl-gallery-stage{background:#fff}

/* Keep fixed timeline frames from inheriting the generic mobile height:auto rule. */
#hyRoot .hytl-kb img,#hyRoot .hytl-gallery-stage img{height:100%}
