/**
 * KMImageManager — Clean, Photo-First Image Manager UI
 * Minimal text, clear visual affordances, harmonized with E-KMTECH Precision Ledger.
 */

/* ==========================================================================
   1. INLINE PICKER (inside forms: Master Item, Company Logo, etc.)
   ========================================================================== */
.km-img-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.km-img-picker-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  background-color: #F8FAFC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-img-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.km-img-picker-thumb:hover::after {
  content: 'Lihat';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   2. MODAL SHELL
   ========================================================================== */
#kmImageManagerOverlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.56);
  padding: 16px;
}

#kmImageManagerOverlay.is-open {
  display: flex;
}

.km-im-dialog {
  width: 100%;
  max-width: 960px;
  max-height: calc(100vh - 32px);
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.km-im-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: #1D4ED8;
  color: #FFFFFF;
  flex-shrink: 0;
}

.km-im-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.km-im-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.km-im-context-pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.km-im-close {
  background: transparent;
  border: 0;
  color: #FF4D4F;
  padding: 4px 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 140ms ease, transform 140ms ease;
  flex-shrink: 0;
}

.km-im-close:hover {
  background: transparent;
  color: #FF7875;
  transform: scale(1.1);
}

/* Segmented Tabs */
.km-im-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
  overflow-x: auto;
}

.km-im-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.km-im-tab-btn:hover {
  background: #EFF6FF;
  color: #1D4ED8;
}

.km-im-tab-btn.active {
  background: #FFFFFF;
  color: #1D4ED8;
  border-color: #BFDBFE;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.km-im-tab-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
}

.km-im-tab-btn.active .km-im-tab-badge {
  background: #DBEAFE;
  color: #1E40AF;
}

.km-im-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 18px;
  min-height: 380px;
}

.km-im-pane {
  display: none;
}

.km-im-pane.active {
  display: block;
}

/* ==========================================================================
   3. TAB 1 — GALLERY (Photo-first, minimal text)
   ========================================================================== */
.km-im-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.km-im-search-wrap {
  position: relative;
  flex: 1 1 220px;
  min-width: 170px;
}

.km-im-search-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 12.5px;
  pointer-events: none;
}

.km-im-search-wrap input {
  padding-left: 30px;
}

#kmImageManagerOverlay select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-left: 10px;
  padding-right: 30px;
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75L9.5 4.25' stroke='%23475569' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.km-im-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 16px 14px;
}

.km-im-card {
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  contain: layout style paint;
}

.km-im-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #F4F6F9;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.km-im-card:hover .km-im-card-thumb {
  background: #EEF2F6;
  border-color: #CBD5E1;
}

.km-im-card.is-selected .km-im-card-thumb {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.km-im-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: transform 180ms ease;
}

.km-im-card:hover .km-im-card-thumb img {
  transform: scale(1.03);
}

/* Selected checkmark (only shown when selected) */
.km-im-badge-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1D4ED8;
  color: #FFFFFF;
  font-size: 10.5px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}

.km-im-card.is-selected .km-im-badge-check {
  display: flex;
}

/* Unified dark pill (no backdrop-filter for 60fps scrolling across many cards) */
.km-im-card-hover-acts {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) translateY(4px);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.km-im-card:hover .km-im-card-hover-acts,
.km-im-card.is-selected .km-im-card-hover-acts {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.km-im-card-act {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #F8FAFC;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease;
}

.km-im-card-act:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.km-im-card-act.act-webp:hover {
  background: #059669;
  color: #FFFFFF;
}

.km-im-card-act.act-del:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Clean borderless caption below thumbnail */
.km-im-card-info {
  padding: 6px 2px 0;
}

.km-im-card-name {
  font-size: 12px;
  font-weight: 500;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.km-im-card.is-selected .km-im-card-name {
  color: #1D4ED8;
  font-weight: 600;
}

.km-im-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 1px;
  font-size: 11px;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}

.km-im-card-fmt-dot {
  color: #059669;
  font-weight: 600;
}

.km-im-card-used {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #64748B;
}

/* Skeleton Loading Cards (exact tile geometry, zero layout shift) */
@keyframes kmImShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.km-im-card-skel {
  pointer-events: none;
  cursor: default;
}

.km-im-skel-box {
  background: linear-gradient(90deg, #F1F5F9 25%, #E6ECF3 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: kmImShimmer 1.35s ease-in-out infinite;
}

.km-im-skel-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.km-im-skel-line {
  height: 11px;
  border-radius: 4px;
  margin-top: 8px;
}

.km-im-skel-line.w-75 { width: 78%; }
.km-im-skel-line.w-45 { width: 46%; height: 9px; margin-top: 6px; }

.km-im-sentinel {
  height: 1px;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .km-im-skel-box { animation: none; }
}

.km-im-empty {
  text-align: center;
  padding: 46px 16px;
  color: #64748B;
}

.km-im-empty i {
  font-size: 34px;
  color: #CBD5E1;
  margin-bottom: 10px;
}

/* ==========================================================================
   4. TAB 2 — UPLOAD & WEBP STUDIO
   ========================================================================== */
.km-im-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 10px;
  background: #F8FAFC;
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.km-im-dropzone:hover,
.km-im-dropzone.is-dragover {
  border-color: #1D4ED8;
  background: #EFF6FF;
}

.km-im-dropzone-icon {
  font-size: 36px;
  color: #1D4ED8;
  margin-bottom: 10px;
}

.km-im-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.km-im-preview-stage {
  position: relative;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #0F172A;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.km-im-preview-img-wrap {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.km-crop-canvas-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  border-radius: 3px;
  touch-action: none;
}

.km-crop-canvas-wrap img {
  display: block;
  max-width: 100%;
  max-height: 292px;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.km-crop-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 0 0 1200px rgba(15, 23, 42, 0.58);
  cursor: move;
  box-sizing: border-box;
  touch-action: none;
  will-change: left, top, width, height;
}

/* Rule-of-thirds guides inside crop box */
.km-crop-box::before,
.km-crop-box::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.km-crop-box::before {
  top: 33.333%;
  bottom: 33.333%;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.38);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.38);
}

.km-crop-box::after {
  left: 33.333%;
  right: 33.333%;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.38);
  border-right: 1px dashed rgba(255, 255, 255, 0.38);
}

/* 8 Resize Handles */
.km-crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  touch-action: none;
}

.km-crop-handle::after {
  content: '';
  position: absolute;
  background: #FFFFFF;
  border: 1.5px solid #1D4ED8;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

.km-crop-handle[data-dir="nw"] { left: -7px; top: -7px; cursor: nwse-resize; }
.km-crop-handle[data-dir="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.km-crop-handle[data-dir="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; }
.km-crop-handle[data-dir="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }

.km-crop-handle[data-dir="nw"]::after,
.km-crop-handle[data-dir="ne"]::after,
.km-crop-handle[data-dir="sw"]::after,
.km-crop-handle[data-dir="se"]::after {
  inset: 2px;
}

.km-crop-handle[data-dir="n"] { left: 50%; top: -7px; transform: translateX(-50%); cursor: ns-resize; width: 24px; }
.km-crop-handle[data-dir="s"] { left: 50%; bottom: -7px; transform: translateX(-50%); cursor: ns-resize; width: 24px; }
.km-crop-handle[data-dir="w"] { top: 50%; left: -7px; transform: translateY(-50%); cursor: ew-resize; height: 24px; }
.km-crop-handle[data-dir="e"] { top: 50%; right: -7px; transform: translateY(-50%); cursor: ew-resize; height: 24px; }

.km-crop-handle[data-dir="n"]::after,
.km-crop-handle[data-dir="s"]::after {
  left: 3px; right: 3px; top: 4px; height: 6px;
}

.km-crop-handle[data-dir="w"]::after,
.km-crop-handle[data-dir="e"]::after {
  top: 3px; bottom: 3px; left: 4px; width: 6px;
}

/* Aspect Ratio Preset Strip */
.km-ratio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.km-ratio-btn {
  flex: 1 1 auto;
  padding: 4px 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.km-ratio-btn:hover {
  border-color: #93C5FD;
  color: #1D4ED8;
  background: #EFF6FF;
}

.km-ratio-btn.active {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.km-im-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #1E293B;
  color: #E2E8F0;
  font-size: 12px;
}

.km-im-panel {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  background: #FFFFFF;
}

.km-im-compress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  margin-bottom: 14px;
}

.km-im-compress-card .km-size-before {
  font-size: 12px;
  color: #64748B;
  text-decoration: line-through;
}

.km-im-compress-card .km-size-after {
  font-size: 14.5px;
  font-weight: 700;
  color: #065F46;
}

.km-im-compress-card .km-size-saved {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #059669;
  color: #FFFFFF;
  white-space: nowrap;
}

/* ==========================================================================
   5. TAB 3 — CAMERA CAPTURE
   ========================================================================== */
.km-cam-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #0F172A;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.km-cam-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.km-cam-stage video.is-mirrored {
  transform: scaleX(-1);
}

.km-cam-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.km-cam-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10B981;
}

.km-cam-frame-guide {
  position: absolute;
  inset: 14%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.km-cam-placeholder {
  text-align: center;
  color: #CBD5E1;
  padding: 24px;
}

.km-cam-controls {
  max-width: 600px;
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.km-cam-shutter {
  padding: 7px 22px;
  font-weight: 600;
  border-radius: 999px;
}

.km-cam-fallback-box {
  max-width: 600px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.km-im-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.km-im-footer-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.km-im-footer-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  object-fit: contain;
  flex-shrink: 0;
}

.km-im-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   7. RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 767.98px) {
  #kmImageManagerOverlay {
    padding: 0;
  }

  .km-im-dialog {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .km-im-context-pill {
    display: none;
  }

  .km-im-studio {
    grid-template-columns: 1fr;
  }

  .km-im-preview-img-wrap {
    height: 230px;
  }

  .km-crop-canvas-wrap img {
    max-height: 202px;
  }

  .km-im-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .km-cam-stage {
    aspect-ratio: 3 / 4;
    max-height: 52vh;
  }

  .km-im-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .km-im-footer-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   8. LIGHTBOX VIEWER (z-index above modal & gallery)
   ========================================================================== */
#kmLightboxOverlay {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  padding: 52px 20px 64px;
  user-select: none;
  -webkit-user-select: none;
}

#kmLightboxOverlay.is-open {
  display: flex;
}

.km-lb-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  pointer-events: none;
}

.km-lb-counter {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.8);
  font-variant-numeric: tabular-nums;
}

.km-lb-top-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.km-lb-icon-btn {
  background: transparent;
  border: 0;
  color: rgba(248, 250, 252, 0.85);
  font-size: 17px;
  padding: 4px 7px;
  cursor: pointer;
  line-height: 1;
  transition: color 130ms ease, transform 130ms ease;
}

.km-lb-icon-btn:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.km-lb-icon-btn.is-close {
  color: #FF4D4F;
  font-size: 20px;
}

.km-lb-icon-btn.is-close:hover {
  color: #FF7875;
}

.km-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.km-lb-stage img {
  max-width: 90vw;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 180ms ease;
}

.km-lb-stage img.is-zoomed {
  transform: scale(1.75);
  cursor: zoom-out;
}

.km-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
}

.km-lb-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.km-lb-nav.prev { left: 16px; }
.km-lb-nav.next { right: 16px; }

.km-lb-caption {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  text-align: center;
  pointer-events: none;
}

.km-lb-title {
  font-size: 13px;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82vw;
  margin: 0 auto;
}

.km-lb-meta {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}

@media (max-width: 767.98px) {
  .km-lb-nav {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .km-lb-nav.prev { left: 8px; }
  .km-lb-nav.next { right: 8px; }
}
