/* Only Sava's photographs: retain the existing page, text, videos and navigation. */
.sava-rhythm #project-modules>.sava-feature{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0 auto 12px!important;padding:0!important;clear:both}
.sava-rhythm #project-modules>.sava-feature img{position:static!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;margin:0 auto!important}
.sava-rhythm #project-modules>.sava-gallery-strip{box-sizing:border-box;width:100%!important;max-width:1500px!important;margin:0 auto 24px!important;padding:0 2.5vw!important;clear:both}
.sava-rhythm .sava-photo-row{display:flex;align-items:flex-start;gap:12px;width:100%;max-width:var(--row-width);margin:0 auto 12px}
.sava-rhythm .sava-photo-row figure{position:relative;display:block;flex:var(--photo-ratio) 1 0;min-width:0;width:auto;margin:0;padding:0}
.sava-rhythm .sava-photo-row img{position:static!important;display:block!important;width:100%!important;height:auto!important;max-height:280px!important;object-fit:contain!important;margin:0!important;padding:0!important}
@media(max-width:800px){
 .sava-rhythm #project-modules>.sava-feature{margin-bottom:10px!important}
 .sava-rhythm #project-modules>.sava-gallery-strip{padding:0 5vw!important;margin-bottom:18px!important}
 .sava-rhythm .sava-photo-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:none;margin-bottom:10px;align-items:center}
 .sava-rhythm .sava-photo-row figure{width:100%;min-width:0}
 .sava-rhythm .sava-photo-row img{width:100%!important;height:160px!important;max-height:160px!important;object-fit:contain!important}
}
@media(min-width:801px) and (max-width:1100px){.sava-rhythm .sava-photo-row{gap:9px}}

/* The final opening photographs form a native horizontal gallery. */
.sava-rhythm #project-modules>.sava-opening-gallery{--opening-height:300px;display:flex!important;flex-wrap:nowrap!important;gap:12px;box-sizing:border-box;width:100%!important;max-width:100%!important;padding:0 2.5vw 18px!important;margin:0 0 30px!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
.sava-rhythm .sava-opening-gallery figure{display:block;position:relative;flex:0 0 auto;width:calc(var(--opening-height) * var(--photo-ratio));height:var(--opening-height);margin:0;padding:0;scroll-snap-align:start}
.sava-rhythm .sava-opening-gallery img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;max-width:100%!important;object-fit:contain!important;margin:0!important;padding:0!important}
.sava-rhythm .sava-opening-gallery:focus-visible{outline:1px solid #777;outline-offset:-1px}
@media(max-width:800px){.sava-rhythm #project-modules>.sava-opening-gallery{--opening-height:220px;gap:10px;padding-left:5vw!important;padding-right:5vw!important}}

/* Three Girls: a large portrait video beside a native horizontal photo gallery. */
.sava-rhythm #project-modules>.sava-painting-media{--painting-height:min(72svh,660px);display:flex!important;align-items:stretch;gap:20px;box-sizing:border-box;width:100%!important;max-width:100%!important;height:var(--painting-height);padding:0 2.5vw!important;margin:0 0 35px!important}
.sava-rhythm .sava-painting-media>.sava-painting-video{flex:0 0 calc(var(--painting-height) * .5625);width:calc(var(--painting-height) * .5625)!important;min-width:0;max-width:none!important;height:100%;margin:0!important;padding:0!important}
.sava-rhythm .sava-painting-video .embed-dimensions{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important}
.sava-rhythm .sava-painting-video .embed-aspect-ratio{width:100%!important;height:100%!important;padding-bottom:0!important;position:relative}
.sava-rhythm .sava-painting-video iframe{display:block;width:100%!important;height:100%!important;border:0}
.sava-rhythm .sava-painting-gallery{display:flex;flex:1 1 0;flex-wrap:nowrap;min-width:0;max-width:100%;height:100%;gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:12px;box-sizing:border-box}
.sava-rhythm .sava-painting-gallery figure{display:block;position:relative;flex:0 0 auto;height:100%;width:calc((var(--painting-height) - 12px) * var(--photo-ratio));margin:0;padding:0;scroll-snap-align:start}
.sava-rhythm .sava-painting-gallery img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:0!important}
.sava-rhythm .sava-painting-gallery:focus-visible{outline:1px solid #777;outline-offset:-1px}
@media(max-width:800px){
 .sava-rhythm #project-modules>.sava-painting-media{display:block!important;height:auto;padding:0 5vw!important}
 .sava-rhythm .sava-painting-media>.sava-painting-video{width:100%!important;max-width:360px!important;height:auto;aspect-ratio:9/16;margin:0 auto 18px!important}
 .sava-rhythm .sava-painting-gallery{--painting-height:232px;height:232px;gap:10px}
}

/* Visitors: the photograph itself has exactly the video's height; scrollbar below. */
.sava-rhythm #project-modules>.sava-visitors-media{height:calc(var(--painting-height) + 18px)}
.sava-rhythm .sava-visitors-media>.sava-painting-video{height:var(--painting-height)}
.sava-rhythm .sava-visitors-gallery{height:calc(var(--painting-height) + 18px);padding-bottom:0}
.sava-rhythm .sava-visitors-gallery figure{height:var(--painting-height);width:calc(var(--painting-height) * var(--photo-ratio))}
@media(max-width:800px){
 .sava-rhythm #project-modules>.sava-visitors-media{--painting-height:min(65svh,560px);height:auto}
 .sava-rhythm .sava-visitors-media>.sava-painting-video{height:var(--painting-height)!important;width:calc(var(--painting-height) * .5625)!important;max-width:100%!important}
 .sava-rhythm .sava-visitors-gallery{--painting-height:inherit;height:calc(var(--painting-height) + 18px)}
}

/* My Role: keep the selected portrait outside the scrolling photographs. */
.sava-rhythm #project-modules>.sava-role-media{--role-height:min(62svh,540px);display:flex!important;gap:20px;box-sizing:border-box;width:100%!important;max-width:100%!important;height:calc(var(--role-height) + 18px);margin:0 0 30px!important;padding:0 2.5vw!important}
.sava-rhythm .sava-role-fixed{position:relative;flex:0 0 calc(var(--role-height) * .666015625);height:var(--role-height);margin:0;padding:0}
.sava-rhythm .sava-role-gallery{display:flex;flex:1 1 0;min-width:0;height:calc(var(--role-height) + 18px);gap:12px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
.sava-rhythm .sava-role-gallery figure{position:relative;display:block;flex:0 0 auto;width:calc(var(--role-height) * var(--photo-ratio));height:var(--role-height);margin:0;padding:0;scroll-snap-align:start}
.sava-rhythm .sava-role-media img{position:static!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;margin:0!important;padding:0!important}
.sava-rhythm .sava-role-gallery:focus-visible{outline:1px solid #777;outline-offset:-1px}
@media(max-width:800px){.sava-rhythm #project-modules>.sava-role-media{--role-height:clamp(190px,55vw,250px);gap:10px;padding-left:5vw!important;padding-right:5vw!important}.sava-rhythm .sava-role-gallery{gap:10px}}

.sava-rhythm #project-modules>.sava-rooms-gallery{--opening-height:440px}
@media(max-width:800px){.sava-rhythm #project-modules>.sava-rooms-gallery{--opening-height:220px}}
