/* ============================================
   MANNOX DJ Team - Gallery Page Styles
   ============================================ */

/* Gallery Page */
.gallery-page {
  justify-content: flex-start;
}

/* Gallery Grid */
.gallery-main {
  flex: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
}

/* Gallery Item */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
  opacity: 0.85;
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Gallery Detail Overlay */
.gallery-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.gallery-detail.hidden {
  display: none;
}

.gallery-detail-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.gallery-detail-close:hover {
  opacity: 0.7;
}

.gallery-detail img {
  max-width: 90%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* ============================================
   Responsive Design - Gallery Page
   ============================================ */

/* Tablet */
@media screen and (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Mobile */
@media screen and (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-detail {
    padding: 20px;
  }

  .gallery-detail-close {
    top: 10px;
    right: 15px;
    font-size: 32px;
  }
}
