/* ============================================
   Ravine — Specific Styles
   ============================================ */

/* Page background: full white */
.ravine-page {
  background: #fff;
  min-height: 100vh;
}

/* Hero elements - dark text for white background */
.ravine-page .sq-hero h1,
.ravine-page .sq-hero .sq-tagline,
.ravine-page .sq-hero .sq-meta {
  color: #1a1a1a;
}

.ravine-page .sq-hero .sq-reg {
  color: #666;
}

/* Story section - white background with dark text */
.ravine-page .sq-section {
  background: transparent;
}

.ravine-page .sq-story p,
.ravine-page .sq-closing p {
  color: #1a1a1a;
}

/* Back navigation - dark text for white background */
.ravine-page .sq-back {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.05);
}

.ravine-page .sq-back:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* 2-column grid */
.ravine-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.ravine-grid-item {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ravine-grid-item:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.ravine-grid-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Hero centered image */
.ravine-hero-img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* Manifest image */
.ravine-manifest-img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 8px;
}

/* Product gallery - white background, 4 columns, clickable with lightbox */
.ravine-product-gallery {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.ravine-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ravine-product-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ravine-product-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ravine-product-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

/* Lightbox */
.ravine-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.ravine-lightbox.active {
  display: flex;
}

.ravine-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.ravine-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ravine-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ravine-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ravine-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ravine-lightbox-prev {
  left: 20px;
}

.ravine-lightbox-next {
  right: 20px;
}

.ravine-lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* 5-column grid */
.ravine-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.ravine-grid-5col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .ravine-grid-2col {
    grid-template-columns: 1fr;
  }

  .ravine-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ravine-product-grid {
    grid-template-columns: 1fr;
  }
}
