/* ============================================
   ORGANIZACIJE — STYLES
   ============================================ */

/* Intro */
.org-intro {
  margin-bottom: 48px;
  max-width: 720px;
}
.org-intro-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  line-height: 1.15;
}
.org-intro-text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}

/* Org kartice */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 32px;
}
.org-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.org-card-img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}
.org-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.org-card-hours {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-top: -10px;
  margin-bottom: -10px;
}
.org-card-audience {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.org-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}
.org-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  background: transparent;
  border: 2px solid var(--secondary);
  padding: 6px 18px;
  border-radius: 120px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.org-btn:hover {
  background: var(--secondary);
  color: #fff;
}

/* Projekti lista */
.projekti-list { display: flex; flex-direction: column; }
.projekt-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px dotted var(--blue);
  align-items: start;
}
.projekt-item:last-of-type { border-bottom: none; }
.projekt-info h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.projekt-info p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}
.proj-btn {
  align-self: flex-start;
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  background: transparent !important;
}
.proj-btn:hover {
  background: var(--secondary) !important;
  color: #fff !important;
}

/* Galerija projektov */
.projekt-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* --- L-oblika: 3+ fotografij --- */
.projekt-gallery-grid.gallery-multi {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 2 / 1;
}
/* Prva fotografija: cela leva stran */
.projekt-gallery-grid.gallery-multi a:first-child {
  grid-row: 1 / -1;
}

/* --- 2 fotografiji: ena ob drugi --- */
.projekt-gallery-grid.gallery-pair a {
  aspect-ratio: 1;
}

/* --- 1 fotografija: čez celo širino --- */
.projekt-gallery-grid.gallery-single {
  grid-template-columns: 1fr;
}
.projekt-gallery-grid.gallery-single a {
  aspect-ratio: 16 / 9;
}

/* Skupne lastnosti */
.projekt-gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-hero);
}
.projekt-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.projekt-gallery-grid a:hover img { transform: scale(1.04); }

.proj-gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font);
  pointer-events: none;
}
.projekt-gallery-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-hero);
  border-radius: 8px;
}

/* Projekti lightbox */
.proj-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.proj-lightbox.open { display: flex; }
.proj-lb-img-wrap {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}
.proj-lb-close,
.proj-lb-prev,
.proj-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: var(--font);
  line-height: 1;
}
.proj-lb-close:hover,
.proj-lb-prev:hover,
.proj-lb-next:hover { background: rgba(255,255,255,0.22); }
.proj-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; }
.proj-lb-prev,
.proj-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 36px; }
.proj-lb-prev { left: 20px; }
.proj-lb-next { right: 20px; }
.proj-lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-family: var(--font);
  pointer-events: none;
}

@media (max-width: 900px) {
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .projekt-item { grid-template-columns: 1fr; }
  .projekt-gallery-grid.gallery-multi { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: unset; }
  .projekt-gallery-grid.gallery-multi a:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .projekt-gallery-grid.gallery-multi a:not(:first-child) { aspect-ratio: 1; }
}
@media (max-width: 600px) {
  .org-grid { grid-template-columns: 1fr; }
}
