/* V155: uniform 3:4 portrait frames. Cover fills the frame; full-screen keeps the original. */
.g20-surface{--photo153-background:linear-gradient(135deg,#eaf0f3,#f3eef2)}
.g20-surface .g20-card .g20-cover{position:relative}
html[data-theme=dark] .g20-surface{--photo153-background:linear-gradient(135deg,#172733,#29232f)}
.g20-surface .g20-card .g20-cover{display:block;aspect-ratio:3/4;height:auto;min-height:0;padding:0;background:var(--photo153-background);align-self:start;overflow:hidden}
.g20-surface .g20-card .g20-cover img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:cover;object-position:center;image-orientation:from-image;margin:0;padding:0;background:transparent}
.g20-surface .g20-gallery{background:transparent;min-width:0;max-width:100%;margin-left:0;margin-right:0}
.g20-surface .g20-gallery-track{height:var(--photo142-height,auto);aspect-ratio:3/4;min-height:0;max-height:none;align-items:stretch;background:var(--photo153-background)}
.g20-surface .g20-gallery-track>button{display:block;position:relative;flex:0 0 100%;width:100%;height:100%;min-height:0;aspect-ratio:3/4;padding:0;align-self:stretch;background:transparent}
.g20-surface .g20-gallery-track img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:center;image-orientation:from-image;aspect-ratio:auto;padding:0;margin:0;background:transparent}
.g20-surface .g20-cover:has(.g20-image-error){min-height:100px}
.g20-surface .g20-gallery-track>button:has(.g20-image-error){min-height:100px}
/* V151: transparent, touch-friendly pagination; keep the existing swipe/zoom logic. */
.g20-surface .g20-gallery .g20-photo-controls{min-height:44px;padding:0 56px;gap:0;background:transparent}
.g20-surface .g20-gallery .g20-photo-controls>button[data-g20-photo]{appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-width:32px;height:44px;min-height:44px;margin:0;padding:0!important;border:0!important;border-radius:12px;background:transparent!important;box-shadow:none!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
.g20-surface .g20-gallery .g20-photo-controls>button[data-g20-photo]>i{display:block;width:6px;height:6px;margin:0;border-radius:999px;background:var(--g20-muted,#7c8592);opacity:.4;transition:width .18s ease,opacity .18s ease}
.g20-surface .g20-gallery .g20-photo-controls>button[data-g20-photo][aria-pressed=true]>i{width:18px;background:var(--g20-red,#bd1733);opacity:1}
.g20-surface .g20-gallery .g20-photo-controls>button[data-g20-photo]:focus-visible{outline:2px solid var(--g20-red,#bd1733);outline-offset:-4px}
.g20-surface .g20-gallery .g20-photo-controls>span{right:14px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(prefers-reduced-motion:reduce){.g20-surface .g20-gallery .g20-photo-controls>button[data-g20-photo]>i{transition:none}}
