/* MAIN CONTENT */
main.gallery-content {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 80px;
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.page-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  line-height: 1.6;
}

/* GALLERY GRID */
.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: rgba(30, 30, 30, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.image-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 5px;
}

.image-number {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* FULLSCREEN LIGHTBOX - SIMPLIFIED */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.98);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

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

.lightbox-image {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  animation: zoomIn 0.4s ease;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
  pointer-events: none;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.lightbox-btn:active {
  transform: scale(0.95);
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* GALLERY PAGE RESPONSIVE */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .lightbox-btn { width: 50px; height: 50px; font-size: 20px; }
}

@media (max-width: 768px) {
  .page-title { font-size: 36px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
  .lightbox-nav { padding: 0 15px; }
  .lightbox-btn { width: 45px; height: 45px; font-size: 18px; }
  .close-btn { top: 15px; right: 15px; width: 45px; height: 45px; }
}

@media (max-width: 480px) {
  .page-title { font-size: 30px; }
  .page-subtitle { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .lightbox-image { max-width: 95%; }
}