/* ===== MNC Galerija – Styles ===== */
/* Barve prilagodi po želji */
:root {
  --g-navy: #0b2a43;
  --g-navy-light: #1a3d5c;
  --g-green: #2e8b2d;
  --g-green-glow: #3aaf39;
  --g-bg: #eef2f5;
  --g-card: #ffffff;
  --g-border: #d6dce3;
  --g-text: #0b2a43;
  --g-text-muted: #5e7287;
  --g-radius: 1rem;
  --g-shadow: 0 8px 24px rgba(11, 42, 67, 0.08);
}

.gallery-section {
  padding: 4rem 1rem;
  background: var(--g-bg);
  font-family: 'DM Sans', system-ui, sans-serif;
}

.gallery-container {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--g-navy);
  margin: 0 0 0.5rem;
}

.gallery-subtitle {
  color: var(--g-text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* === Carousel === */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--g-radius);
  overflow: hidden;
  background: var(--g-card);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
  cursor: pointer;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.carousel-image.fade-out {
  opacity: 0;
  transform: scale(1.03);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(11, 42, 67, 0.7), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Nav buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--g-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 2;
}

.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carousel-btn-left { left: 0.75rem; }
.carousel-btn-right { right: 0.75rem; }

/* Dots */
.carousel-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.carousel-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: none;
  background: var(--g-border);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--g-green);
  width: 1.75rem;
}

/* Thumbnails */
.carousel-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.carousel-thumb {
  width: 4rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
}

.carousel-thumb.active {
  border-color: var(--g-green);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(46, 139, 45, 0.25);
}

.carousel-thumb:hover {
  opacity: 1;
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 42, 67, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-height: 82vh;
  max-width: 90vw;
  border-radius: var(--g-radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: var(--g-card);
  color: var(--g-navy);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: rgba(255,255,255,0.9);
  color: var(--g-navy);
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-btn-left { left: 1rem; }
.lightbox-btn-right { right: 1rem; }

/* Responsive */
@media (max-width: 640px) {
  .gallery-title { font-size: 1.5rem; }
  .carousel-thumb { width: 3rem; height: 2.25rem; }
  .carousel-btn { width: 2rem; height: 2rem; font-size: 1.2rem; }
}
