#gallery.cw-gallery{padding-top:76px;padding-bottom:76px;scroll-margin-top:100px;min-width:0}
.cw-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:30px}
#gallery .cw-gallery-head h2{font-size:clamp(32px,4.3vw,56px);line-height:1.06;letter-spacing:-.035em;margin:12px 0 18px}
#gallery .cw-intro{max-width:520px;margin:0;color:#526b75;line-height:1.6;font-size:17px}
.cw-nav{display:flex;align-items:center;gap:10px;flex-shrink:0;padding-bottom:4px}.cw-nav[hidden]{display:none}
.cw-count{font-size:14px;letter-spacing:.08em;font-variant-numeric:tabular-nums;min-width:76px;color:#526b75}
#gallery .cw-nav button{width:52px;height:52px;padding:0;border:1px solid #d8e3e5;border-radius:50%;background:#fff;color:#103544;font:28px/1 Arial,sans-serif;cursor:pointer;transition:background .18s,transform .18s}
#gallery .cw-nav .cw-next{background:#ffe34d;border-color:#ffe34d}
#gallery .cw-nav button:hover:not(:disabled){background:#ffec87;transform:translateY(-2px)}
#gallery .cw-nav button:disabled{opacity:.35;cursor:default}
.cw-track{display:flex;gap:22px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:2px;scroll-behavior:smooth;padding:3px 2px 20px;scrollbar-width:thin;scrollbar-color:#b4c6c8 #edf3f1;border-radius:26px}
.cw-track::-webkit-scrollbar{height:5px}.cw-track::-webkit-scrollbar-track{background:#edf3f1;border-radius:10px}.cw-track::-webkit-scrollbar-thumb{background:#b4c6c8;border-radius:10px}
#gallery .cw-frame{flex:0 0 calc((100% - 44px)/2.65);min-width:0;margin:0;scroll-snap-align:start}
#gallery .cw-frame a{display:block;position:relative;overflow:hidden;border-radius:26px;background:#edf2eb;isolation:isolate;aspect-ratio:4/5}
#gallery .cw-frame img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .45s ease;border-radius:0}
#gallery .cw-frame a:hover img{transform:scale(1.025)}
.cw-expand{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);color:#103544;font-size:24px;box-shadow:0 2px 12px #0001}
#gallery .cw-frame figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:16px 4px 7px;font-weight:750;font-size:18px;line-height:1.3}
#gallery .cw-frame figcaption small{font-size:12px;font-weight:500;letter-spacing:.1em;color:#779096}
.cw-gallery-footer{display:flex;justify-content:space-between;gap:20px;margin-top:16px;font-size:13px;line-height:1.5;color:#647c83}
#gallery :focus-visible{outline:3px solid #0a7180;outline-offset:4px}
@media(max-width:700px){#gallery.cw-gallery{padding-top:46px;padding-bottom:46px}.cw-gallery-head{display:block;margin-bottom:20px}#gallery .cw-gallery-head h2{font-size:36px}#gallery .cw-intro{font-size:15px}.cw-nav{margin-top:24px;justify-content:flex-end}.cw-count{margin-right:auto}#gallery .cw-nav button{width:46px;height:46px}.cw-track{gap:14px;border-radius:22px}#gallery .cw-frame{flex-basis:86%}#gallery .cw-frame a{border-radius:22px}#gallery .cw-frame figcaption{font-size:17px;padding-top:14px}.cw-gallery-footer{display:block;margin-top:14px}.cw-gallery-footer span{display:block}.cw-gallery-footer span+span{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.cw-track{scroll-behavior:auto}#gallery .cw-frame img,#gallery .cw-nav button{transition:none}}
