/*
Theme Name: BW Portfolio
Description: Minimalist black & white photography portfolio theme
Version: 2.0
Author: Your Name
*/

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #111;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Typography === */
h1, h2, h3, h4 {
  color: #111;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* === Layout === */
.site-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.site-logo a {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.current {
  color: #2c3e6b;
  opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #111;
  margin: 5px 0;
  transition: 0.3s;
}

/* === Masonry Grid === */
.masonry-grid {
  columns: 4;
  column-gap: 8px;
  padding-bottom: 80px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry-item:hover .overlay {
  opacity: 1;
}

.masonry-item .overlay .title {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masonry-item .overlay .meta {
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  margin-top: 2px;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  color: #999;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #2c3e6b;
  opacity: 1;
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #ddd;
}

/* === Single Series Detail === */
.series-detail {
  padding: 24px 0 80px;
}

.series-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
}

.series-detail-header {
  margin-bottom: 32px;
}

.series-detail-header h1 {
  margin-bottom: 10px;
  font-size: 32px;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2), 2px 3px 6px rgba(0,0,0,0.12);
}

.series-meta {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.03em;
}

.sep-dot {
  margin: 0 8px;
}

.series-content {
  margin-bottom: 40px;
}

.series-gallery-item {
  margin-bottom: 32px;
}

.series-gallery-item img {
  width: 100%;
}

.series-gallery-item .caption {
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

/* Share buttons */
.series-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 48px;
}

.share-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}

.share-btn {
  font-size: 12px;
  color: #666;
  padding: 5px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s;
  letter-spacing: 0.03em;
}

.share-btn:hover {
  color: #2c3e6b;
  border-color: #2c3e6b;
  opacity: 1;
}

/* Prev/Next nav */
.series-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-size: 14px;
}

.nav-label {
  display: block;
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.series-nav a {
  color: #444;
  transition: color 0.3s;
}

.series-nav a:hover {
  color: #111;
  opacity: 1;
}

/* === Sidebar === */
.series-sidebar {
  padding-top: 8px;
}

.sidebar-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2c3e6b;
  margin-bottom: 14px;
  font-weight: 600;
}

.sidebar-bio {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.sidebar-details {
  list-style: none;
  padding: 0;
}

.sidebar-details li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #444;
}

.detail-label {
  color: #999;
}

.sidebar-link {
  display: block;
  font-size: 13px;
  color: #2c3e6b;
  padding: 6px 0;
  transition: color 0.3s;
}

.sidebar-link:hover {
  color: #1a2a4d;
  opacity: 1;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 1px;
}

.author-tagline {
  display: block;
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.sidebar-author .sidebar-link {
  display: inline;
  font-size: 12px;
  margin-right: 10px;
}

.sidebar-series-link {
  display: block;
  font-size: 13px;
  color: #2c3e6b;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.3s;
}

.sidebar-series-link:hover {
  color: #1a2a4d;
  opacity: 1;
}

/* === About Page === */
.about-page {
  padding: 40px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.about-page img {
  margin-bottom: 32px;
}

.about-page p {
  margin-bottom: 20px;
  line-height: 1.9;
}

/* === Contact Page === */
.contact-page {
  padding: 40px 0 80px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-page h1 {
  margin-bottom: 24px;
}

.contact-links {
  list-style: none;
  font-size: 15px;
}

.contact-links li {
  margin-bottom: 12px;
}

.contact-links a {
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: #111;
  border-color: #111;
  opacity: 1;
}

/* === Footer === */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #ccc;
  text-align: center;
  letter-spacing: 0.05em;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    padding: 0 16px;
  }

  .site-header {
    padding: 20px 0;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 62px;
    right: 16px;
    background: #fff;
    padding: 20px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 14px;
    z-index: 100;
  }

  .site-nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .masonry-grid {
    columns: 2;
    column-gap: 6px;
  }

  .masonry-item {
    margin-bottom: 6px;
  }

  .series-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .series-sidebar {
    border-top: 1px solid #eee;
    padding-top: 24px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 18px; }

  .series-nav {
    font-size: 12px;
  }
}












/* === Homepage Timeline Feed === */
.home-feed {
  padding-bottom: 80px;
}

.feed-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
}

.feed-header h1 {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.feed-subtitle {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #aaa;
  font-style: italic;
  margin: 0;
}

/* Sections grid */
.feed-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}

.feed-section-head {
  margin-bottom: 16px;
}

.feed-section-head h2 {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Timeline */
.feed-timeline {
  position: relative;
  padding-left: 20px;
}

/* Curved line using SVG-like path effect */
.feed-timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, #ddd 0%, #ccc 30%, #ddd 50%, #ccc 70%, #ddd 100%);
}

.tl-item {
  display: block;
  position: relative;
  margin-bottom: 28px;
  text-decoration: none;
}

/* Vary card sizes with nth-child */
.tl-item:nth-child(3n+1) .tl-card { width: 100%; }
.tl-item:nth-child(3n+2) .tl-card { width: 78%; }
.tl-item:nth-child(3n+3) .tl-card { width: 90%; }

/* Stagger left offset for organic feel */
.tl-item:nth-child(3n+2) { padding-left: 8px; }
.tl-item:nth-child(3n+3) { padding-left: 3px; }

.tl-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: #ccc;
  border-radius: 50%;
  border: 2px solid #f5f5f5;
  transition: background 0.3s;
  z-index: 1;
}

.tl-item:hover .tl-dot {
  background: #111;
}

.tl-year {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.tl-card {
  overflow: hidden;
}

.tl-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s;
}

.tl-item:hover .tl-card img {
  opacity: 0.85;
}

.tl-card h4 {
  font-family: 'Fira Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin: 8px 0 0;
  line-height: 1.4;
  transition: color 0.3s;
}

.tl-item:hover .tl-card h4 {
  color: #888;
}

/* Responsive */
@media (max-width: 1024px) {
  .feed-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .feed-sections {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feed-timeline {
    padding-left: 12px;
  }

  .tl-dot {
    left: -16px;
    width: 5px;
    height: 5px;
  }

  .tl-card h4 {
    font-size: 11px;
  }

  .tl-item {
    margin-bottom: 16px;
  }
}
