/* Photography page — extends style.css dark theme */

/* Hero */
.photo-hero {
  padding: 120px 2rem 60px;
  text-align: center;
  background-color: var(--bg);
  background-image: radial-gradient(circle, #21262d 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
}

.photo-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.photo-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.photo-hero h1 i {
  color: var(--accent);
  margin-right: 0.4rem;
}

.photo-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Gallery Grid */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-item:hover,
.gallery-item:focus {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(88, 166, 255, 0.08);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) brightness(0.9);
  transition: transform 0.5s, filter 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .overlay,
.gallery-item:focus .overlay {
  opacity: 1;
}

.gallery-item .overlay h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.modal-nav:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-prev { left: 1.5rem; }
.modal-next { right: 1.5rem; }

/* Back Link */
.back-link {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  transition: color 0.2s;
  z-index: 100;
}

.back-link:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .photo-hero h1 { font-size: 1.75rem; }

  .gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .gallery-item img { height: 240px; }
}
