/* A carousel occupies one normal gallery card, with the same photo proportions. */
.photo-album{min-width:0;scroll-margin-top:16px}
.photo-carousel-frame{position:relative;order:-1;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:4px;background:#eee6e3}
.photo-carousel-viewport{display:flex;direction:ltr;width:100%;height:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
.photo-carousel-viewport::-webkit-scrollbar{display:none}
.photo-carousel-slide{flex:0 0 100%;min-width:0;height:100%;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.photo-carousel-slide a{display:block;width:100%;height:100%}
.photo-carousel-slide img{display:block;width:100%;height:100%;object-fit:contain}
.photo-carousel-controls{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;direction:ltr;pointer-events:none}
.photo-carousel-controls>button{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#453137;cursor:pointer;pointer-events:auto}
.photo-carousel-controls>button::before{content:"";position:absolute;inset:6px;border-radius:50%;background:#fffaf7ed;box-shadow:0 1px 4px #27212233}
.photo-carousel-controls>button:disabled{visibility:hidden;pointer-events:none}
.photo-carousel-controls svg{position:relative;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.photo-carousel-status{position:absolute;right:6px;bottom:6px;max-width:calc(100% - 12px);padding:2px 6px;border-radius:4px;background:#272122d9;color:white;font-size:calc(11px * var(--text-scale,1));line-height:1.4;text-align:center;overflow-wrap:anywhere}
.photo-album :focus-visible{outline:3px solid #a95270;outline-offset:-3px}
@media print{.photo-carousel-frame{height:auto;aspect-ratio:auto;overflow:visible}.photo-carousel-viewport{display:block;height:auto;overflow:visible}.photo-carousel-slide{height:auto;break-inside:avoid}.photo-carousel-controls{display:none}}
