.gallery-simple {
  margin-top: 30px;
}

#auto-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

/* KLIK-BLOKOVI */
.dog-gallery-section {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
}

.dog-gallery-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.dog-gallery-toggle:hover {
  background: var(--bg-warm);
}

.dog-gallery-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dog-gallery-toggle-text strong {
  font-size: 28px;
  line-height: 1.1;
}

.dog-gallery-toggle-text small {
  font-size: 14px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dog-gallery-toggle-icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
}

.dog-gallery-content {
  padding: 0 22px 22px 22px;
}

.dog-gallery-section.is-collapsed .dog-gallery-content {
  display: none;
}

/* GRID GALERIJE */
.dog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 6px;
}

.gallery-box {
  grid-column: span 4;
  background: var(--bg-warm);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.gallery-box-tall {
  grid-row: span 2;
}

.gallery-box-wide {
  grid-column: span 8;
}

.gallery-box img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX */
.custom-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 2, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}

.custom-lightbox.open {
  display: flex;
}

.custom-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
}

.custom-lightbox-image {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.custom-lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: var(--text-primary);
  font-size: 15px;
  opacity: 0.9;
}

.custom-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.custom-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
}

.custom-lightbox-nav.prev {
  left: 18px;
}

.custom-lightbox-nav.next {
  right: 18px;
}

.custom-lightbox-close:hover,
.custom-lightbox-nav:hover {
  background: rgba(255,255,255,0.22);
}

@media (max-width: 900px) {
  .gallery-box,
  .gallery-box-wide {
    grid-column: span 6;
  }

  .dog-gallery-toggle-text strong {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .dog-gallery-content {
    padding: 0 14px 14px 14px;
  }

  .dog-gallery-toggle {
    padding: 16px 14px;
  }

  .dog-gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-box,
  .gallery-box-wide,
  .gallery-box-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-box img {
    min-height: 220px;
    max-height: 320px;
  }

  .dog-gallery-toggle-text strong {
    font-size: 22px;
  }

  .dog-gallery-toggle-text small {
    font-size: 12px;
  }

  .custom-lightbox-image {
    max-width: 94vw;
    max-height: 76vh;
  }

  .custom-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .custom-lightbox-nav.prev {
    left: 10px;
  }

  .custom-lightbox-nav.next {
    right: 10px;
  }
}