/* ===== GALLERY LAYOUT ===== */
.gallery-layout {
  display: flex;
  gap: 40px;
  padding: 60px 20px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== SIDEBAR ===== */
.gallery-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-links a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  border-left: 2px solid transparent;
}

.sidebar-links a:hover {
  color: var(--text);
  background: rgba(78, 205, 196, 0.1);
  border-left-color: var(--cyan);
}

.sidebar-links a.active {
  color: var(--cyan);
  background: rgba(78, 205, 196, 0.1);
  border-left-color: var(--cyan);
}

/* Year filter buttons */
.year-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.year-btn {
  padding: 8px 12px;
  background: rgba(26, 35, 64, 0.4);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-align: left;
}

.year-btn:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: rgba(78, 205, 196, 0.2);
  color: var(--text);
}

.year-btn.active {
  background: rgba(78, 205, 196, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== GALLERY MAIN ===== */
.gallery-main {
  flex: 1;
  min-width: 0;
}

.gallery-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.gallery-section:last-child {
  margin-bottom: 0;
}

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

.gallery-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.15);
}

.gallery-icon {
  font-size: 1.5rem;
}

.gallery-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--silver);
}

.gallery-year {
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(78, 205, 196, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.gallery-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* ===== PHOTO GRID ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 20px;
}

.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 35, 64, 0.4);
  border: 1px solid rgba(78, 205, 196, 0.1);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 205, 196, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s var(--ease-out);
}

.photo-card:hover img {
  transform: scale(1.02);
}

.photo-caption {
  padding: 16px 20px;
  background: rgba(10, 14, 26, 0.8);
}

.photo-caption-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.photo-caption-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.lightbox-close:hover {
  color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .gallery-sidebar {
    display: none;
  }

  .gallery-layout {
    padding: 60px 20px 100px;
  }
}

@media (max-width: 768px) {
  .lightbox {
    padding: 20px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}
