.mosque-album{background:var(--paper);scroll-margin-top:24px}
.album-heading{align-items:end;margin-bottom:32px}
.album-heading h2{max-width:14ch}
.album-heading h1{max-width:16ch;font-size:clamp(32px,4.5vw,60px);line-height:1.15}
.album-back{display:inline-flex;margin-bottom:32px}
.album-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:32px}
.album-actions>span{font-size:16px;color:var(--muted)}
.album-heading p{max-width:38ch;color:var(--muted)}
.mosque-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px;align-items:start}
.album-photo{min-width:0}
.album-photo a{display:block;border-radius:var(--radius);outline-offset:5px}
.album-photo-image{position:relative;overflow:hidden;border-radius:var(--radius);background:var(--sage);aspect-ratio:4/3}
.album-photo-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s var(--ease)}
.album-photo:first-child{grid-column:span 2;grid-row:span 2;align-self:stretch;display:flex;flex-direction:column}
.album-photo:first-child>a{flex:1;display:flex}
.album-photo:first-child .album-photo-image{flex:1;aspect-ratio:auto;min-height:100%;width:100%}
.album-photo:first-child img{position:absolute;inset:0}
.album-photo figcaption{font-size:16px;line-height:1.5;padding-top:12px;color:var(--text)}
.album-photo .zoom-affordance{background:var(--green);color:var(--paper);width:40px;height:40px;right:12px;bottom:12px}
.album-sources{margin-top:28px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:14px;line-height:1.6}
.album-sources summary{cursor:pointer;width:fit-content;max-width:100%;min-height:44px;display:flex;align-items:center;gap:12px;position:relative;list-style:none;font-size:14px;font-weight:400;padding:6px 0}
.album-sources summary::-webkit-details-marker{display:none}
.album-sources summary:after{content:'+';position:static;flex:0 0 20px;display:grid;place-items:center;align-self:center;line-height:1;font-size:20px;transform:none}
.album-sources[open] summary:after{content:'−';transform:none}
.album-sources ul{margin:8px 0 0;padding-left:20px}
.album-sources li+li{margin-top:8px}
.album-sources a{text-decoration:none}
.album-sources a:is(:hover,:focus-visible){text-decoration:underline}
.gallery-caption-wrap{flex:1;min-width:0;text-align:center}
.gallery-dialog .gallery-caption-wrap p{margin:12px auto 0}
.gallery-position{display:block;font-size:14px;color:var(--muted);margin-top:6px;font-variant-numeric:tabular-nums}
.gallery-feedback{text-align:center;color:var(--muted);padding:20px 0}
.gallery-feedback[hidden]{display:none}
.gallery-dialog img[hidden]{display:none}
@media(hover:hover){.album-photo a:hover img{transform:scale(1.025)}}
@media(max-width:900px){
 .mosque-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
 .album-photo:first-child{grid-row:auto;display:block}
 .album-photo:first-child>a{display:block}
 .album-photo:first-child .album-photo-image{aspect-ratio:4/3;min-height:0}
 .album-photo:first-child img{position:static}
 .album-photo:last-child{grid-column:span 2}
 .album-photo:last-child .album-photo-image{aspect-ratio:16/9}
}
@media(max-width:600px){
 .mosque-album-grid{grid-template-columns:1fr;gap:24px}
 .album-photo:first-child,.album-photo:last-child{grid-column:auto}
 .album-photo:last-child .album-photo-image{aspect-ratio:4/3}
 .album-heading{margin-bottom:24px}
 .album-heading h2{max-width:none}
 .gallery-dialog>img{max-height:62dvh}
}
@media(prefers-reduced-motion:reduce){.album-photo-image img{transition:none}}
.mosque-album-full .album-photo:first-child,.mosque-album-full .album-photo:last-child{grid-column:auto;grid-row:auto;display:block}
.mosque-album-full .album-photo:first-child>a{display:block}
.mosque-album-full .album-photo .album-photo-image{aspect-ratio:4/3;min-height:0}
.mosque-album-full .album-photo img{position:static;object-position:50% 35%}
