/* Lightbox & IceLens Styles*/
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 18, 31, 0.98);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(30, 42, 58, 0.9);
  border: 2px solid var(--primary-glow);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  z-index: 10001;
}

.lightbox-close:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 42, 58, 0.9);
  border: 2px solid var(--primary-glow);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-info {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 42, 58, 0.95);
  border: 1px solid var(--primary-glow);
  border-radius: 12px;
  padding: 1rem 2rem;
  max-width: 600px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

.lightbox-info.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.lightbox-author {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lightbox-description {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.lightbox-counter {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: rgba(30, 42, 58, 0.9);
  border: 1px solid var(--primary-glow);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  font-weight: 600;
}

.stories-intro {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background: rgba(30, 42, 58, 0.6);
  border-radius: 16px;
  margin-bottom: 3rem;
  border: 1px solid var(--primary-glow);
}

.stories-intro h3 {
  color: var(--text-light);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.stories-intro p {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.stories-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--primary-glow);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
}

.story-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: var(--bg-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
}

.story-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-title {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}

.photographer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.story-text {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.story-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(135, 206, 235, 0.3);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--primary);
}