.rp-project-gallery, .rp-project-gallery *{box-sizing:border-box;}
.rp-project-gallery{--rp-gallery-navy:#0f2a44;--rp-gallery-blue:#263d89;--rp-gallery-page:#f3f6fa;width:100%;max-width:100%;min-width:0;color:var(--rp-gallery-navy);font-family:inherit;padding-block:58px;background:var(--rp-gallery-page);}
.rp-project-gallery [hidden]{display:none !important;}
.rp-project-gallery .rp-project-gallery__container{width:100%;max-width:1120px;margin-inline:auto;padding-inline:18px;}
.rp-project-gallery h2{margin:0 0 26px;color:var(--rp-gallery-navy);font-family:inherit;font-size:clamp(1.55rem, 2.7vw, 2.2rem);font-weight:800;line-height:1.2;}
.rp-project-gallery .rp-project-gallery__grid{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:22px;}
.rp-project-gallery .rp-project-gallery__card{min-width:0;overflow:hidden;border:1px solid #dae2eb;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgb(15 42 68 / 5%);}
.rp-project-gallery .rp-project-gallery__preview{display:block;position:relative;width:100%;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:#eaf0f6;color:#fff;cursor:pointer;text-transform:none;}
.rp-project-gallery .rp-project-gallery__thumbnail{display:block;width:100%;height:auto;aspect-ratio:4 / 3;max-height:none;margin:0;object-fit:contain;object-position:center;}
.rp-project-gallery .rp-project-gallery__image-hint{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:7px 11px;background:rgb(15 42 68 / 92%);color:#fff;font-size:13px;font-weight:600;line-height:1.4;}
.rp-project-gallery .rp-project-gallery__card-content{padding:20px;}
.rp-project-gallery h3{margin:0 0 18px;font-family:inherit;font-size:19px;line-height:1.4;font-weight:800;color:var(--rp-gallery-navy);overflow-wrap:anywhere;}
.rp-project-gallery .rp-project-gallery__button{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:46px;max-width:100%;margin:0;padding:11px 15px;border:1px solid var(--rp-gallery-navy);border-radius:10px;background:#fff;color:var(--rp-gallery-navy);font:inherit;font-size:15px;font-weight:700;line-height:1.35;text-align:center;text-decoration:none;text-transform:none;cursor:pointer;box-shadow:none;}
.rp-project-gallery .rp-project-gallery__button:hover{background:#eef3f8;color:var(--rp-gallery-navy);}
.rp-project-gallery .rp-project-gallery__button svg, .rp-project-gallery .rp-project-gallery__image-hint svg{flex:0 0 20px;}
.rp-project-gallery .rp-project-gallery__more{display:flex;margin:26px auto 0;}
.rp-project-gallery button:focus-visible, .rp-project-gallery .rp-project-gallery__stage:focus-visible{outline:3px solid var(--rp-gallery-blue);outline-offset:4px;}
.rp-project-gallery button{touch-action:manipulation;}
.rp-project-gallery .rp-project-gallery__preview:focus-visible{outline-offset:-4px;}
.rp-project-gallery .rp-project-gallery__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.rp-project-gallery .rp-project-gallery__dialog{width:min(1180px, calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(800px, calc(100dvh - 32px), calc(62.5vw + 86px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #cad4e0;border-radius:16px;color:var(--rp-gallery-navy);background:#fff;box-shadow:0 24px 70px rgb(0 0 0 / 35%);overflow:hidden;}
.rp-project-gallery .rp-project-gallery__dialog:not([open]){display:none;}
.rp-project-gallery .rp-project-gallery__dialog::backdrop{background:rgb(5 19 34 / 82%);}
.rp-project-gallery .rp-project-gallery__modal{display:flex;flex-direction:column;min-width:0;height:100%;}
.rp-project-gallery .rp-project-gallery__modal-header{display:flex;flex:0 0 auto;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:2px 10px;border-bottom:1px solid #dce4ed;}
.rp-project-gallery .rp-project-gallery__modal-title{margin:0;font-weight:700;font-size:17px;line-height:1.4;overflow-wrap:anywhere;}
.rp-project-gallery .rp-project-gallery__control{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:44px;padding:4px 15px;border:1px solid #b2c0ce;border-radius:10px;margin:0;background:#fff;color:var(--rp-gallery-navy);font:inherit;font-size:15px;font-weight:700;line-height:1.3;cursor:pointer;text-transform:none;}
.rp-project-gallery .rp-project-gallery__dialog button:focus-visible{outline-offset:-3px;}
.rp-project-gallery .rp-project-gallery__control:hover{background:#edf2f7;color:var(--rp-gallery-navy);}
.rp-project-gallery .rp-project-gallery__control:disabled{opacity:.45;cursor:default;background:#fff;}
.rp-project-gallery .rp-project-gallery__close > span[aria-hidden]{font-size:25px;line-height:1;}
.rp-project-gallery .rp-project-gallery__zoom-toolbar{display:flex;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;padding:0;}
.rp-project-gallery .rp-project-gallery__zoom-in, .rp-project-gallery .rp-project-gallery__zoom-out{min-width:46px;padding:4px 8px;font-size:23px;}
.rp-project-gallery .rp-project-gallery__zoom-level{min-width:52px;font-size:14px;font-weight:700;text-align:center;}
.rp-project-gallery .rp-project-gallery__stage{position:relative;flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;padding:2px;background:#f3f6fa;overflow:hidden;touch-action:none;}
.rp-project-gallery .rp-project-gallery__stage:focus-visible{outline-offset:-4px;}
.rp-project-gallery .rp-project-gallery__stage--zoomed{cursor:grab;}
.rp-project-gallery .rp-project-gallery__stage--dragging{cursor:grabbing;}
.rp-project-gallery .rp-project-gallery__full-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-select:none;}
.rp-project-gallery .rp-project-gallery__stage--zoomed .rp-project-gallery__full-image{will-change:transform;}
.rp-project-gallery .rp-project-gallery__load-message{position:absolute;inset:auto 18px 14px;margin:0;padding:8px 12px;border-radius:8px;background:rgb(255 255 255 / 95%);color:var(--rp-gallery-navy);text-align:center;font-size:14px;}
.rp-project-gallery .rp-project-gallery__modal-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:2px 10px;border-top:1px solid #dce4ed;}
.rp-project-gallery .rp-project-gallery__navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;}
.rp-project-gallery .rp-project-gallery__counter{margin:0;font-size:15px;font-weight:700;text-align:center;}
@media(max-width:959px){
.rp-project-gallery .rp-project-gallery__grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media (max-width: 639px), (pointer: coarse) {
.rp-project-gallery{padding-block:38px;}
.rp-project-gallery .rp-project-gallery__container{padding-inline:18px;}
.rp-project-gallery .rp-project-gallery__grid{grid-template-columns:minmax(0, 1fr);gap:18px;}
.rp-project-gallery .rp-project-gallery__card-content{padding:18px;}
.rp-project-gallery .rp-project-gallery__button{width:100%;}
.rp-project-gallery:not([data-gallery-ready='true']) .rp-project-gallery__card:nth-child(n + 2){display:none;}
.rp-project-gallery[data-mobile-more='true']:not([data-gallery-ready='true']) .rp-project-gallery__more{display:flex !important;}
}
@media (max-width: 767px), (pointer: coarse) {
.rp-project-gallery .rp-project-gallery__dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);}
.rp-project-gallery .rp-project-gallery__modal-header{gap:9px;}
.rp-project-gallery .rp-project-gallery__modal-title{font-size:15px;align-self:center;}
.rp-project-gallery .rp-project-gallery__control{padding:4px 10px;font-size:14px;}
.rp-project-gallery .rp-project-gallery__modal-footer{flex-direction:column;padding:2px 8px;gap:4px;}
.rp-project-gallery .rp-project-gallery__navigation{width:100%;gap:8px;}
.rp-project-gallery .rp-project-gallery__zoom-toolbar{display:none !important;}
.rp-project-gallery .rp-project-gallery__full-image{transform:none !important;}
}
@media (orientation: landscape) and (max-width: 767px), (orientation: landscape) and (pointer: coarse) {
.rp-project-gallery .rp-project-gallery__dialog{width:min(calc(100vw - 16px), calc(80dvh - 92.8px));}
.rp-project-gallery .rp-project-gallery__close-label, .rp-project-gallery .rp-project-gallery__prev > span:last-child, .rp-project-gallery .rp-project-gallery__next > span:first-child{display:none;}
.rp-project-gallery .rp-project-gallery__control{min-width:44px;}
}
@media (prefers-reduced-motion: reduce) {
.rp-project-gallery *, .rp-project-gallery *::before, .rp-project-gallery *::after { scroll-behavior: auto !important; }
}