#gallery .gallery-carousel-controls{display:flex;gap:10px;align-items:center;direction:ltr}
#gallery .gallery-carousel-controls[hidden]{display:none}
#gallery .gallery-carousel-controls button{display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:1px solid #d4dfea;border-radius:50%;background:#fff;color:#15243a;font-size:22px;line-height:1;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
#gallery .gallery-carousel-controls button:hover{background:#f36d21;border-color:#f36d21;color:white}
#gallery .gallery-carousel-controls button:focus-visible{outline:3px solid #1765e8;outline-offset:3px}
#gallery .gallery{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:4px 2px 20px;scrollbar-width:thin;scrollbar-color:#f36d21 transparent;grid-template-columns:none}
#gallery .gallery:focus-visible{outline:3px solid #1765e8;outline-offset:4px}
#gallery .gallery .gallery-card{box-sizing:border-box;display:flex;flex-direction:column;flex:0 0 calc((100% - 36px)/3);width:calc((100% - 36px)/3);min-width:0;height:auto!important;margin:0;overflow:hidden;scroll-snap-align:start;border:1px solid #e0e7ef;border-radius:18px;background:#fff;box-shadow:0 8px 28px #1b2c4010}
#gallery .gallery .gallery-image-button{width:100%;border:0;border-radius:0;overflow:hidden;background:#f4f6f8}
#gallery .gallery .gallery-image-button img{width:100%;height:270px!important;object-fit:contain;transition:transform .25s ease}
#gallery .gallery .gallery-image-button:hover img{transform:scale(1.025)}
#gallery .gallery .gallery-caption{display:block!important;min-height:0!important;padding:14px 16px 4px!important;color:#26364a;font-size:.95rem;line-height:1.45;text-align:start}
#gallery .gallery .gallery-credit{display:inline-block;margin-top:3px}
#gallery .gallery .share-item-button{align-self:flex-start;margin:12px 16px 16px!important;border-radius:999px}
html[data-theme="dark"] #gallery .gallery .gallery-card{background:#142032;border-color:#314155}
html[data-theme="dark"] #gallery .gallery .gallery-image-button{background:#0d1826}
html[data-theme="dark"] #gallery .gallery .gallery-caption{color:#e7edf6}
html[data-theme="dark"] #gallery .gallery-carousel-controls button{background:#17263a;border-color:#40516a;color:#f5f7fb}
html[data-theme="dark"] #gallery .gallery-carousel-controls button:hover{background:#f36d21;border-color:#f36d21;color:white}
@media(max-width:900px){#gallery .gallery .gallery-card{flex-basis:calc((100% - 18px)/2);width:calc((100% - 18px)/2)}}
@media(max-width:600px){#gallery .gallery{gap:12px;scroll-padding-inline:2px}#gallery .gallery .gallery-card{flex-basis:84%;width:84%}#gallery .gallery .gallery-image-button img{height:240px!important}#gallery .gallery-carousel-controls button{width:44px;height:44px;min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){#gallery .gallery .gallery-image-button img,#gallery .gallery-carousel-controls button{transition:none}}
