/* ==========================================================
   Enlight Runway 1331 - Gallery Stylesheet
   ========================================================== */

/* Masonry Gallery Layout */
.photo-grid {
  column-count: 3;
  column-gap: 24px;
  margin-top: 36px;
  margin-bottom: 40px;
}

.photo-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  background: #f0f2f5;
  break-inside: avoid;
  margin-bottom: 24px;
  display: block;
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.03);
}

.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.8) 0%, rgba(15, 17, 21, 0) 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.photo-item:hover .photo-item-overlay {
  opacity: 1;
}

.photo-item-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tangerine-light);
  margin-bottom: 4px;
}

.photo-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

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

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

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 500;
  max-width: 800px;
}

.lightbox-counter {
  font-size: 0.82rem;
  color: var(--tangerine-light);
  margin-bottom: 4px;
  font-weight: 600;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 179, 56, 0.8);
  color: #111;
  transform: scale(1.1);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 6px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

@media (max-width: 1024px) {
  .photo-grid {
    column-count: 2;
    column-gap: 20px;
  }
  .photo-item {
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .photo-grid {
    column-count: 1;
    column-gap: 0;
  }
  .photo-item {
    margin-bottom: 18px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}
