/* =========================
   GALLERY CSS (navbar-safe)
========================= */

:root{
  --bg: #27221E;
  --off: #f2efe7;
  --text: rgba(255,255,255,.90);
  --muted: rgba(255,255,255,.70);
  --accent: #ba9663;
  --ss-bronze: #ba9663;
  --line: rgba(186,150,99,.55);
  --ivory: #f4f1eb; 

  --ss-font: 'STIX Two Text', serif;

}
body{
    background: var(--bg);
    font-family: var(--ss-font),sans-serif;

}
/* Wrapper ispod navbara */
.gallery-wrapper {
  padding: 3rem 0;
  background: var(--bg);
  min-height: calc(80vh);
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 60px);
}

.gallery-header {
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 3rem;
}

.gallery-header h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text);
}

.gallery-header .line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0 auto 1.5rem;
}

.gallery-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Grid galerije - fiksno 3 kolone */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  margin-top: 3rem;
}

/* Kartica projekta */
.project-card {
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(186,150,99,.15);
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  border-color: rgba(186,150,99,.35);
}

/* Slika */
.project-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

/* Overlay na slici */
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(39,34,30,0.3) 50%,
    rgba(39,34,30,0.85) 100%
  );
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
  opacity: 0.7;
}

/* Sadržaj kartice */
.project-content {
  padding: 1.5rem;
}

.project-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-content h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.project-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 13px;
  color: rgba(255,255,255,.50);
  padding-top: 1rem;
  border-top: 1px solid rgba(186,150,99,.15);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ss-section-divider{
    height: 0.25rem; /* 4px */
    width: 100%;
    background-color: var(--ss-dark);
    background-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(186,150,99,.45) 15%,
      rgba(186,150,99,.95) 40%,
      rgba(186,150,99,.95) 60%,
      rgba(186,150,99,.45) 85%,
      transparent 100%
    );
  }

/* Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-wrapper {
    padding: 2rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 240px;
  }

  .project-content {
    padding: 1.25rem;
  }
}