/* ============================================================
   GALLERY – HEADER
   ============================================================ */

.gallery-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.gallery-header h1 {
  color: var(--brand);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

/* Plava linija ispod naslova */
.gallery-header h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.gallery-header p {
  color: #555;
  margin-bottom: 30px;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
}

.caption {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-size: 40px;
  user-select: none;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover,
.next:hover,
.close:hover {
  color: var(--accent);
}

