/* GALAN product modal — responsive slideshow (mobile / tablet / desktop) */
.galan-pm-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  align-items: center;
  justify-content: center;
}
.galan-pm-overlay.open { display: flex; }

.galan-pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.galan-pm-dialog {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galan-pm-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.galan-pm-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.galan-pm-img.galan-pm-loaded { opacity: 1; }

.galan-pm-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 44px; height: 44px;
  line-height: 40px;
  text-align: center;
  font-size: 30px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}
.galan-pm-close:hover { background: rgba(0, 0, 0, 0.6); }

.galan-pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  line-height: 42px;
  text-align: center;
  font-size: 28px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.galan-pm-nav:hover { background: rgba(0, 0, 0, 0.6); }
.galan-pm-prev { left: 12px; }
.galan-pm-next { right: 12px; }

.galan-pm-caption {
  margin-top: 12px;
  max-width: 90vw;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 0 40px;
  min-height: 1em;
}

.galan-pm-counter {
  position: absolute;
  top: 18px; left: 18px;
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 3;
}

.galan-pm-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px; height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: galan-pm-spin 0.8s linear infinite;
  z-index: 2;
}
@keyframes galan-pm-spin { to { transform: rotate(360deg); } }

/* Tablet & phone */
@media (max-width: 768px) {
  .galan-pm-stage { max-width: 100vw; max-height: 100vh; }
  .galan-pm-img { max-height: 72vh; }
  .galan-pm-nav { width: 54px; height: 54px; font-size: 32px; }
  .galan-pm-prev { left: 6px; }
  .galan-pm-next { right: 6px; }
  .galan-pm-close { top: 10px; right: 10px; width: 40px; height: 40px; line-height: 36px; font-size: 26px; }
  .galan-pm-caption { padding: 0 12px; }
}

/* Large desktop */
@media (min-width: 1024px) {
  .galan-pm-img { max-height: 84vh; }
}
