@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

.rigel-foto {
  --rf-green: #1f2d24;
  --rf-cream: #f7f5f1;
  --rf-gold: #c9a86a;
  --rf-ink: #121816;
  --rf-muted: rgba(18, 24, 22, 0.62);
  --rf-max: 1180px;
  --rf-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rf-serif: "Cormorant Garamond", Georgia, serif;
  width: 100%;
  min-height: 60vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(201, 168, 106, 0.12), transparent 55%),
    linear-gradient(180deg, #faf8f4 0%, #f3f0ea 48%, #ebe7df 100%);
  color: var(--rf-ink);
  font-family: var(--rf-sans);
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.rigel-foto__hero {
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 1.25rem;
}

.rigel-foto__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 45, 36, 0.55);
}

.rigel-foto__title {
  margin: 0;
  font-family: var(--rf-serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--rf-green);
}

.rigel-foto__lead {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--rf-muted);
}

.rigel-foto__tabs {
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rigel-foto__tab {
  appearance: none;
  border: 1px solid rgba(31, 45, 36, 0.14);
  background: rgba(255, 255, 255, 0.55);
  color: var(--rf-green);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rigel-foto__tab:hover {
  border-color: rgba(201, 168, 106, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

.rigel-foto__tab.is-active,
.rigel-foto__tab[aria-selected="true"] {
  background: var(--rf-green);
  border-color: var(--rf-green);
  color: var(--rf-cream);
}

.rigel-foto__panel {
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.rigel-foto__panel[hidden] {
  display: none !important;
}

.rigel-foto__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.rigel-foto__card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 45, 36, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rigel-foto__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31, 45, 36, 0.12);
}

.rigel-foto__link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a2420;
}

.rigel-foto__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.rigel-foto__card:hover .rigel-foto__link img {
  transform: scale(1.04);
}

.rigel-foto__caption {
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rf-green);
}

.rigel-foto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: rgba(10, 14, 12, 0.9);
  backdrop-filter: blur(6px);
}

.rigel-foto-lightbox[hidden] {
  display: none !important;
}

.rigel-foto-lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.rigel-foto-lightbox__caption {
  margin: 0;
  color: rgba(247, 245, 241, 0.88);
  font-size: 0.95rem;
  text-align: center;
  max-width: 40rem;
}

.rigel-foto-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 245, 241, 0.85);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.rigel-foto-lightbox__close:hover {
  color: #fff;
}

body.rigel-fotogalerija-standalone {
  margin: 0;
  background: #f3f0ea;
}

body.rigel-fotogalerija-standalone .rigel-site-chrome {
  min-height: 0;
}

@media (max-width: 900px) {
  .rigel-foto__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rigel-foto__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .rigel-foto__tabs::-webkit-scrollbar {
    display: none;
  }

  .rigel-foto__tab {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 0.55rem 0.95rem;
  }

  .rigel-foto__grid {
    grid-template-columns: 1fr;
  }
}
