.rk-frame-gallery { margin-block: 32px; min-width: 0; }
.rk-frame-gallery h2 { margin: 0 0 16px; }
.rk-frame-gallery__stage { position: relative; overflow: hidden; border-radius: 16px; background: #20232a; aspect-ratio: 16 / 9; }
.rk-frame-gallery__stage a { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.rk-frame-gallery__photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.rk-frame-gallery__arrow, .rk-frame-gallery__count { position: absolute; background: #20232a; color: white; }
.rk-frame-gallery__arrow { top: 50%; transform: translateY(-50%); border: 1px solid #fff; border-radius: 50%; width: 44px; height: 44px; padding: 0 0 4px; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.rk-frame-gallery__prev { left: 12px; }
.rk-frame-gallery__next { right: 12px; }
.rk-frame-gallery__count { right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 20px; font-size: 14px; }
.rk-frame-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin-top: 8px; max-width: 100%; }
.rk-frame-gallery__thumbs button { flex: 0 0 84px; padding: 2px; border: 2px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.rk-frame-gallery__thumbs button[aria-current="true"] { border-color: #986400; }
.rk-frame-gallery__thumbs img { display: block; width: 100%; height: 54px; object-fit: cover; border-radius: 5px; }
.rk-frame-gallery :focus-visible { outline: 2px solid #986400; outline-offset: 2px; }
@media (max-width: 540px) {
  .rk-frame-gallery__stage { aspect-ratio: 4 / 3; }
  .rk-frame-gallery__prev { left: 8px; }
  .rk-frame-gallery__next { right: 8px; }
}

#completed-projects .rk-frame-gallery__photo { object-fit: contain !important; }
