/* Photography / Gallery page styles */

/* Tabs */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Masonry grid */
.masonry {
  columns: 2;
  column-gap: 12px;
}

.masonry-item {
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  position: relative;
  transition: opacity 0.2s;
}

.masonry-item:hover { opacity: 0.85; }

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* Placeholder for missing images */
.photo-placeholder {
  background: var(--surface2);
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder .placeholder-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.5);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-overlay.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  padding: 0 24px;
}

.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* Instagram section */
.instagram-section {
  margin-top: 64px;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.instagram-section h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.instagram-handle {
  margin-bottom: 32px;
}

.instagram-handle a {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .masonry { columns: 1; }
  .tab-btn { padding: 10px 16px; font-size: 0.88rem; }
  .lightbox-nav { display: none; }
}
