/* The dimensions of the photograph determine its frame, never the reverse. */
body[data-design] .gallery[data-flow]{gap:var(--adaptive-gap,24px)!important;align-items:start;grid-template-rows:none!important;overflow:visible}
body[data-design] .gallery[data-flow]>.photo-card{padding-top:0!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;min-width:0;max-width:100%;box-sizing:border-box;transform:none!important;align-self:start}
body[data-design] .gallery[data-flow] .photo-open{aspect-ratio:var(--photo-ratio,1)!important;height:auto;min-height:0!important;width:100%;display:block;position:relative;box-sizing:border-box}
body[data-design] .gallery[data-flow] .photo-open>.custom-photo{width:100%;height:100%;aspect-ratio:auto!important;object-fit:contain!important;display:block;border-radius:0}
body[data-design] .gallery[data-flow=justified]{display:flex!important;flex-wrap:wrap!important;columns:auto!important;justify-content:center;align-items:flex-start}
body[data-design] .gallery[data-flow=justified]>.photo-card{flex:0 0 auto!important;rotate:0deg!important}
body[data-design] .gallery[data-flow=justified] .photo-open{height:var(--image-height,auto)!important;aspect-ratio:auto!important}
body[data-design] .gallery[data-flow=justified]>.album-chapter{width:100%;flex-basis:100%;text-align:start;margin:20px 0 5px}
body[data-design] .gallery[data-flow=masonry]{display:block!important;columns:3;column-gap:var(--adaptive-gap)!important}
body[data-design] .gallery[data-flow=masonry]>.photo-card{break-inside:avoid;margin-bottom:var(--adaptive-gap)!important;width:100%}
body[data-design] .gallery[data-flow=single]{display:block!important;columns:auto!important;max-width:1200px;margin-inline:auto}
body[data-design] .gallery[data-flow=single]>.photo-card{margin:0 auto 45px!important;width:100%}
body[data-design] .gallery[data-flow=single]>.photo-card[data-orientation=portrait]{max-width:650px}
body[data-design] .gallery[data-flow=single]>.photo-card[data-orientation=square]{max-width:900px}
body[data-design] .gallery[data-flow=horizontal]{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scroll-snap-type:x mandatory;padding-block:15px 30px}
body[data-design] .gallery[data-flow=horizontal]>.photo-card{flex:0 0 auto!important;width:calc(var(--photo-ratio,1)*min(60vh,500px));max-width:none;scroll-snap-align:center}
body[data-design] .gallery[data-flow=horizontal] .photo-open{height:min(60vh,500px)!important;aspect-ratio:var(--photo-ratio)!important;width:auto}
.cover-photo>.custom-photo[data-orientation=portrait],.cover-photo>.cover-slide[data-orientation=portrait]{object-fit:contain!important;background:#151318}
body[data-design] .cover-reel button img{object-fit:contain;background:#211b26}
@media(max-width:700px){body[data-design] .gallery[data-flow=masonry]{columns:2}body[data-design] .gallery[data-flow=horizontal]>.photo-card{width:calc(var(--photo-ratio,1)*min(48vh,350px))}body[data-design] .gallery[data-flow=horizontal] .photo-open{height:min(48vh,350px)!important}body[data-design] .gallery[data-flow=single]>.photo-card{margin-bottom:30px!important}}
.cover-photo:has(.custom-photo){scale:1!important;translate:0!important}
.cover-photo>.custom-photo{object-fit:contain!important;background:#171318}
