/* Gallery cards and gallery panel: no expanding grid items. */
.crp-gallery-test{margin:28px 0;padding:24px;border:1px solid #e6e5e3;border-radius:16px;background:#fff;min-width:0}
.crp-gallery-test-title>span{display:block;font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#a51929;font-weight:600}
.crp-gallery-test-title h2{margin:5px 0 7px;font-size:25px;line-height:1.25}
.crp-gallery-test-title p{color:#696969;margin:0 0 20px;font-size:14px}
.crp-gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,185px),1fr));gap:16px;align-items:stretch}
.crp-gal-item{border:1px solid #e7e7e7;border-radius:12px;overflow:hidden;background:#fff;min-width:0;box-shadow:0 1px 5px rgba(0,0,0,.035);transition:box-shadow .2s,transform .2s}
.crp-gal-item:hover{box-shadow:0 7px 22px rgba(0,0,0,.11);transform:translateY(-2px)}
.crp-gal-cover{cursor:pointer;display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%;padding:0!important;margin:0!important;background:#fff!important;border:0!important;border-radius:0!important;color:#252525!important;text-align:left!important;font:inherit!important;box-shadow:none!important}
.crp-gal-cover-picture{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f1f1f1}
.crp-gal-cover-picture img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.crp-gal-item:hover .crp-gal-cover-picture img{transform:scale(1.035)}
.crp-gal-cover-info{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:4px;padding:13px 13px 10px;width:100%}
.crp-gal-cover-info small{color:#a41622;font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.crp-gal-cover-info strong{font-size:15px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.crp-gal-cover-info>span{color:#777;font-size:12px}
.crp-gal-cover-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 13px 13px;color:#981622;font-size:12px;font-weight:650}
.crp-gal-photos[hidden],.crp-gal-modal[hidden],.crp-gal-lightbox[hidden]{display:none!important}
.crp-gal-modal{position:fixed;inset:0;z-index:999990;background:rgba(22,22,25,.75);padding:24px;display:flex;align-items:center;justify-content:center;overscroll-behavior:contain}
.crp-gal-modal-panel{width:min(980px,100%);height:auto;max-height:min(90vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 22px 70px rgba(0,0,0,.3)}
.crp-gal-modal-head{padding:20px 24px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.crp-gal-modal-eyebrow{font-size:10px;letter-spacing:.1em;color:#a41622;text-transform:uppercase}
.crp-gal-modal-title{margin:4px 0!important;font-size:22px!important;line-height:1.3!important}
.crp-gal-modal-count{font-size:13px;color:#777;margin:0!important}
.crp-gal-modal-close{flex:none;cursor:pointer;background:#f2f2f2!important;color:#222!important;border:0!important;border-radius:50%!important;width:38px;height:38px;padding:0!important;font-size:27px!important;line-height:1!important}
.crp-gal-modal-grid{padding:20px 24px 24px;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;min-height:0}
.crp-gal-photo{display:block;cursor:zoom-in;overflow:hidden;border-radius:9px;background:#f1f1f1;aspect-ratio:4/3}
.crp-gal-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.crp-gal-photo:hover img{transform:scale(1.035)}
.crp-gal-cover:focus-visible,.crp-gal-photo:focus-visible,.crp-gal-modal-close:focus-visible{outline:2px solid #a41622;outline-offset:3px}
.crp-gal-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.95);display:flex;align-items:center;justify-content:center}
.crp-gal-lightbox img{max-width:calc(100vw - 130px);max-height:88vh;object-fit:contain}
.crp-gal-lightbox button{border:0!important;background:#ffffff20!important;color:#fff!important;font-size:36px!important;cursor:pointer;position:absolute;padding:8px 17px!important;border-radius:8px!important}
.crp-gal-close{right:18px;top:18px}.crp-gal-prev{left:10px}.crp-gal-next{right:10px}.crp-gal-counter{position:absolute;bottom:15px;color:#fff}
@media(max-width:600px){.crp-gallery-test{padding:16px}.crp-gal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.crp-gal-cover-info{padding:10px 10px 6px}.crp-gal-cover-info strong{font-size:13px}.crp-gal-cover-action{padding:8px 10px 11px}.crp-gal-modal{padding:0}.crp-gal-modal-panel{max-height:100dvh;height:100dvh;border-radius:0}.crp-gal-modal-head{padding:16px}.crp-gal-modal-grid{padding:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.crp-gal-lightbox img{max-width:calc(100vw - 76px)}.crp-gal-lightbox button{font-size:28px!important;padding:4px 10px!important}}
