 .pxGallery {
    --pxg-accent: #1a1a1a;
    --pxg-arrow-bg: rgba(255, 255, 255, 0.9);
    --pxg-dot: rgba(0, 0, 0, 0.25);
    --pxg-dot-active: var(--pxg-accent);
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    -webkit-tap-highlight-color: transparent;
  }
 
  .pxGallery-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
    aspect-ratio: 16 / 9;
  }
 
  .pxGallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    touch-action: pan-y;
    will-change: transform;
  }
 
  /* Shows 3 slides at a time; --pxg-visible / --pxg-gap drive the math.
     Overridden at smaller breakpoints below. */
  .pxGallery {
    --pxg-visible: 3;
    --pxg-gap: 12px;
  }
 
  .pxGallery-track {
    gap: var(--pxg-gap);
  }
 
  .pxGallery-slide {
    flex: 0 0 calc((100% - (var(--pxg-visible) - 1) * var(--pxg-gap)) / var(--pxg-visible));
    width: calc((100% - (var(--pxg-visible) - 1) * var(--pxg-gap)) / var(--pxg-visible));
    height: 100%;
    position: relative;
  }
 
  @media (max-width: 900px) {
    .pxGallery { --pxg-visible: 2; }
  }
 
  @media (max-width: 560px) {
    .pxGallery { --pxg-visible: 1; }
  }
 
  .pxGallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
  }
 
  .pxGallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  }
 
  .pxGallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--pxg-arrow-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, background 0.15s ease;
  }
 
  .pxGallery-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .pxGallery-arrow:active { transform: translateY(-50%) scale(0.96); }
  .pxGallery-arrow svg { width: 18px; height: 18px; stroke: var(--pxg-accent); }
  .pxGallery-arrow--prev { left: 12px; }
  .pxGallery-arrow--next { right: 12px; }
 
  .pxGallery-arrow:disabled { opacity: 0.35; cursor: default; }
 
  .pxGallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
 
  .pxGallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--pxg-dot);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
  }
 
  .pxGallery-dot--active {
    background: var(--pxg-dot-active);
    transform: scale(1.25);
  }
 
  .pxGallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font: 500 12px/1 system-ui, sans-serif;
    padding: 5px 10px;
    border-radius: 999px;
  }
 
  @media (max-width: 640px) {
    .pxGallery-arrow { width: 36px; height: 36px; }
    .pxGallery-arrow svg { width: 15px; height: 15px; }
  }