.darauche-product-gallery {
  width: 100%;
  display: grid;
  gap: 10px;
}

.darauche-gallery-stage {
  position: relative;
  width: 100%;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  touch-action: pan-y;
}

.darauche-gallery-main-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
}

.darauche-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.78);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.darauche-gallery-prev { left: 10px; }
.darauche-gallery-next { right: 10px; }

.darauche-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.darauche-gallery-counter:empty { display: none; }

.darauche-gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
}

.darauche-gallery-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.darauche-gallery-thumb.is-active {
  border-color: #269af5;
}

.darauche-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.darauche-gallery-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 6, 12, 0.98);
  color: #fff;
}

.darauche-gallery-lightbox::backdrop {
  background: rgba(3, 6, 12, 0.92);
}

.darauche-gallery-lightbox-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.darauche-gallery-lightbox-stage {
  position: relative;
  width: min(100%, 1200px);
  height: 100%;
  display: grid;
  place-items: center;
  padding: 62px 18px 32px;
  touch-action: pan-y;
}

.darauche-gallery-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.darauche-gallery-lightbox-close {
  position: fixed;
  z-index: 6;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(18, 25, 38, 0.9);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.darauche-gallery-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 25, 38, 0.9);
  color: #fff;
  font-weight: 700;
}

.darauche-gallery-lightbox-counter:empty { display: none; }

@media (max-width: 760px) {
  .darauche-gallery-stage,
  .darauche-gallery-main-image {
    min-height: 300px;
  }

  .darauche-gallery-main-image {
    max-height: 54vh;
  }

  .darauche-gallery-thumb {
    flex-basis: 62px;
    width: 62px;
    height: 62px;
  }

  .darauche-gallery-lightbox-stage {
    padding-left: 8px;
    padding-right: 8px;
  }

  .darauche-gallery-lightbox .darauche-gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 31px;
  }
}
