/* A single gallery rhythm: justified rows, full images, narrow consistent gutters. */
.photo-grid.photo-rows,.album-gallery.photo-rows,.prints-grid.photo-rows,.al-photo-grid.photo-rows{display:flex!important;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:var(--photo-gap,6px)!important;columns:auto!important;grid-auto-rows:auto!important}
.photo-rows>.photo-card,.photo-rows>.album-photo,.photo-rows>.print-card,.photo-rows>.al-photo{flex-grow:0;flex-shrink:0;min-width:0;margin:0!important;align-self:stretch;height:auto}
.photo-rows>[hidden]{display:none!important}
.photo-rows .photo-wrap,.photo-rows .print-image{height:var(--row-photo-height)!important;aspect-ratio:auto!important;max-width:none!important;width:100%;padding:0!important;border:0!important;background:transparent}
.photo-rows .photo-wrap img,.photo-rows .print-image img,.photo-rows>.album-photo>a>img,.photo-rows>.al-photo>img{display:block;width:100%;height:var(--row-photo-height)!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.photo-grid.photo-rows>.photo-card{position:relative;height:var(--row-photo-height)}
.photo-grid.photo-rows .photo-meta{position:absolute;inset:auto 0 0;margin:0;padding:24px 12px 10px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.72));opacity:0;transition:opacity .15s;pointer-events:none}
.photo-grid.photo-rows .photo-meta small{color:#fff}.photo-grid.photo-rows .photo-card:hover .photo-meta,.photo-grid.photo-rows .photo-card:focus-within .photo-meta{opacity:1}
.photo-grid.photo-rows .genre-heading{width:100%;margin:34px 0 12px!important;flex:0 0 100%}
.album-gallery.photo-rows>.album-photo{position:relative;height:var(--row-photo-height)}
.album-gallery.photo-rows .album-photo-caption{position:absolute;right:8px;bottom:8px;margin:0;background:rgba(245,243,237,.94);padding:6px 10px;border-radius:3px;font-size:13px}
.prints-grid.photo-rows{row-gap:26px!important}.prints-grid.photo-rows .print-info{padding:12px 8px 0}.prints-grid.photo-rows h3{min-height:2.4em}.al-photo-grid.photo-rows{row-gap:16px!important}.al-photo-grid.photo-rows>.al-photo{border:0}.al-photo-grid.photo-rows .al-photo>div{padding:10px 8px}.al-photo-grid.photo-rows .al-photo strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
@media(hover:none){.photo-grid.photo-rows .photo-meta{display:none}}
@media(prefers-reduced-motion:reduce){.photo-grid.photo-rows .photo-meta{transition:none}}

.photo-wrap picture{display:contents}@media(max-width:650px){.photo-card .photo-wrap{aspect-ratio:var(--mobile-photo-ratio,var(--photo-ratio,4/3))!important}}

/* Homepage: level mobile rows, with captions aligned below equal-height frames. */
@media(max-width:650px){
 .photo-grid[data-gallery-layout="masonry"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:28px 13px;align-items:start}
 .photo-grid[data-gallery-layout="masonry"]>.photo-card{grid-row-end:auto!important}
 .photo-grid[data-gallery-layout="masonry"] .photo-card .photo-wrap{aspect-ratio:1/1!important}
 .photo-grid[data-gallery-layout="masonry"] .photo-meta>span{display:block;min-height:2.6em;line-height:1.3}
 .photo-grid[data-gallery-layout="masonry"]>.genre-heading{grid-row-end:auto;margin-top:8px}
}
