/* =======================================
   WRAPPER GENERAL
   ======================================= */

.ssgl-gallery-wrapper {
  position: relative;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 16px;
}

/* =======================================
   GRID FRONT-END – COLOANE REALE
   ======================================= */

.ss-gallery-grid {
  display: grid;
  gap: var(--gap, 18px);
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}

/* Pe ecrane mai mici poți forța mai puține coloane, dacă vrei */
@media (max-width: 1024px) {
  .ss-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ss-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ss-gallery-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* =======================================
   CARD FRONT-END
   ======================================= */

.ssgl-item {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}

.ssgl-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}

.ssgl-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.ssgl-item:hover img {
  transform: scale(1.06);
}

/* =======================================
   SVG LINE – FULL WIDTH, SMOOTH
   ======================================= */

.ssgl-scroll-line-wrapper {
  position: absolute;
  top: -40px;
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2; /* peste imagini pe front-end */
}

.ssgl-scroll-line {
  width: 100%;
  height: 100%;
}

.ssgl-scroll-line path {
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* imaginile rămân sub linie în stacking */
.ss-gallery {
  position: relative;
  z-index: 1;
}

/* =======================================
   EDITOR STYLES – PREVIEW STATIC
   ======================================= */

.ssgl-editor-empty {
  border: 1px dashed #c3c4c7;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.ssgl-editor-empty p {
  margin-bottom: 12px;
  font-weight: 600;
}

.ssgl-editor-wrapper {
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 12px;
}

/* bara de sus în editor */
.ssgl-editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ssgl-editor-info {
  font-size: 12px;
  opacity: 0.7;
}

/* grid editor – doar preview, fără hover/click/anim */
.ss-gallery-editor-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: var(--gap, 18px);
}

.ssgl-editor-item {
  border-radius: 10px;
  overflow: hidden;
}

.ssgl-editor-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;        /* nu fură click-ul blocului */
  transition: none !important; /* fără hover */
}

/* în editor ascundem SVG-ul complet */
.editor-styles-wrapper .ssgl-scroll-line-wrapper {
  display: none !important;
}

/* =======================================
   LIGHTBOX (dacă îl folosești)
   ======================================= */

.glightbox-clean .gslide-media {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc {
  color: #fff !important;
}
