.kmRewardGallery { position:relative; width:100%; min-width:0; color:inherit; }
.kmRewardGalleryOverlays { position:absolute; inset:0; pointer-events:none; }
.kmRewardGalleryOverlays [data-bs-toggle="tooltip"] { pointer-events:auto; }
.kmRewardGalleryOverlays ~ .kmRewardGalleryExpand { bottom:40px; }
.kmRewardGalleryOverlays ~ .kmRewardGalleryCounter { bottom:44px; }
.kmRewardGalleryFallback { display:block; width:100%; height:auto; }
.kmRewardGalleryStage { position:relative; background:var(--falcon-100, #f2f4f7); }
.kmRewardGalleryTrack { display:flex; align-items:stretch; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; border-radius:inherit; }
.kmRewardGalleryTrack::-webkit-scrollbar { display:none; }
.kmRewardGallerySlide { position:relative; flex:0 0 100%; min-width:0; scroll-snap-align:start; border:0; padding:0; background:transparent; cursor:zoom-in; }
.kmRewardGallerySlide img { display:block; width:100%; height:auto; object-fit:contain; }
.kmRewardGallerySlide:not(:first-child) img { position:absolute; inset:0; height:100%; }
.kmRewardGalleryControl { display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid #c3ccd6; border-radius:50%; background:#fff; color:#253448; font-size:22px; cursor:pointer; touch-action:manipulation; }
.kmRewardGalleryControl:disabled { opacity:.5; cursor:default; }
.kmRewardGalleryArrow { position:absolute; top:50%; transform:translateY(-50%); }
.kmRewardGalleryPrevious { left:8px; }
.kmRewardGalleryNext { right:8px; }
.kmRewardGalleryExpand { position:absolute; bottom:8px; left:8px; font-size:18px; }
.kmRewardGalleryCounter { position:absolute; bottom:12px; right:12px; padding:4px 10px; border-radius:20px; background:#253448; color:#fff; font-size:13px; pointer-events:none; }
.kmRewardGalleryThumbs { display:flex; gap:8px; padding:10px; overflow-x:auto; background:var(--falcon-white, #fff); }
.kmRewardGalleryThumb { flex:0 0 56px; width:56px; height:56px; border:2px solid #c3ccd6; border-radius:6px; padding:2px; background:#fff; cursor:pointer; touch-action:manipulation; }
.kmRewardGalleryThumb[aria-current="true"] { border-color:var(--falcon-primary, #2c7be5); box-shadow:0 0 0 1px var(--falcon-primary, #2c7be5); }
.kmRewardGalleryThumb img { width:100%; height:100%; object-fit:contain; }
.kmRewardGallery button:focus-visible, .kmRewardGalleryDialog button:focus-visible { outline:3px solid var(--falcon-primary, #2c7be5); outline-offset:3px; }
.kmRewardGalleryDialog { width:min(960px, 94vw); max-width:94vw; max-height:94vh; max-height:94dvh; border:0; border-radius:12px; padding:16px; background:#fff; color:#253448; }
.kmRewardGalleryDialog::backdrop { background:rgba(15,23,42,.8); }
.kmRewardGalleryDialogHeader { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.kmRewardGalleryDialogTitle { min-width:0; margin:0; font-size:18px; font-weight:600; overflow-wrap:anywhere; }
.kmRewardGalleryDialog .kmRewardGallerySlide img { position:static; height:calc(90vh - 170px); height:calc(90dvh - 170px); min-height:120px; aspect-ratio:auto; }
.kmRewardGalleryDialog .kmRewardGallerySlide { cursor:default; }
.kmRewardImageCount { position:absolute; bottom:8px; right:8px; padding:3px 8px; border-radius:12px; background:#253448; color:#fff; font-size:12px; }
.kmEditProjectPledgesV2 .kmRewardImage { position:relative; }
.kmRewardEditorImages { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.kmRewardEditorTile { min-width:0; border:1px solid #d8e2ef; border-radius:6px; padding:8px; background:#fff; }
.kmRewardEditorTile label { display:block; }
.kmRewardEditorTile > img, .kmRewardFormUploader .divImagePreview { display:block; width:100%; height:120px; object-fit:contain; margin-bottom:8px; }
.kmRewardFormUploader .kmRewardUploadActions { display:flex; flex-wrap:wrap; gap:8px; }
.kmRewardFormUploader .btn { min-height:44px; }
.kmRewardFormUploader .kmFileSelector { margin:8px 0; max-width:100%; }
.kmRewardFormUploader .kmRewardUploadError { margin:8px 0 0; color:#a12525; }
.kmRewardFormUploader [hidden], .kmRewardEditorTile > img[hidden] { display:none !important; }
@media (min-width:1200px) { .kmRewardEditorImages { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:575px) {
  .kmRewardGalleryDialog { width:100vw; max-width:100vw; height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; margin:0; border-radius:0; padding:12px; }
  .kmRewardGalleryDialog .kmRewardGallerySlide img { height:calc(100vh - 180px); height:calc(100dvh - 180px); }
}
@media (prefers-reduced-motion:reduce) { .kmRewardGalleryTrack { scroll-behavior:auto; } }
