/* ============================================
   Photo Blog — Dark Theme
   Font: Fira Sans Condensed
   ============================================ */

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

html { font-size: 16px; }
body {
  font-family: "Fira Sans Condensed", sans-serif;
  color: #888;
  background: #111;
  font-size: 0.9em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #888; text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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

#wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   Navigation (Left sidebar)
   ============================================ */
#nav {
  width: 220px;
  min-width: 220px;
  padding: 25px 20px 20px 25px;
  border-right: 1px solid #222;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #111;
}

#nav h1 {
  font-size: 1.15em;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 30px;
}

#nav h1 a { color: #ccc; }
#nav h1 a:hover { color: #fff; }

.nav-brand {
  display: block;
  margin-bottom: 35px;
}

.nav-brand a {
  display: block;
  margin-bottom: 20px;
}

.site-logo {
  width: auto;
  height: 32px;
  display: block;
}

.nav-brand h1 {
  margin-bottom: 0;
}

.nav-list { list-style: none; }
.nav-list li {
  margin-bottom: 8px;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-list li a { color: #666; font-weight: 300; }
.nav-list li a:hover { color: #fff; }
.nav-list li.current a { color: #ccc; font-weight: 500; }

/* ============================================
   Content area
   ============================================ */
#content {
  flex: 1;
  padding: 40px 40px 100px;
  max-width: calc(100vw - 220px);
  background: #111;
}

.page-title {
  font-size: 1.8em;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ccc;
  margin-bottom: 30px;
}

.category-desc {
  margin-bottom: 30px;
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.6;
  color: #777;
}

.empty-state {
  color: #555;
  font-style: italic;
  padding: 40px 0;
  font-size: 1.1em;
}

/* ============================================
   Albums Strip — Full-Width Cards
   ============================================ */
.albums-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.album-strip-card {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.6s ease;
}

.album-strip-img-wrap {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  background: #1a1a1a;
}

.album-strip-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.album-strip-noimg {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #444;
  font-size: 3em;
}

/* Gradient overlay */
.album-strip-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.album-strip-card:hover .album-strip-img-wrap::after {
  opacity: 0.85;
}

.album-strip-card:hover {
  transform: scale(1.008);
}

.album-strip-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 50px;
  z-index: 2;
  pointer-events: none;
}

.album-strip-info h2 {
  font-size: 2.5em;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.album-strip-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

/* ============================================
   Album / Gallery Page
   ============================================ */
.album-header {
  margin-bottom: 30px;
}

.album-title {
  font-size: 1.8em;
  font-weight: 300;
  color: #ccc;
  margin-bottom: 8px;
}

.album-location-badge,
.album-date {
  display: inline-block;
  font-size: 0.9em;
  color: #666;
  margin-right: 15px;
  margin-bottom: 10px;
}

.album-desc {
  font-size: 1.1em;
  font-weight: 300;
  line-height: 1.6;
  color: #777;
  margin-top: 10px;
  max-width: 600px;
}

/* Gallery Grid — CSS Grid, left-to-right */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  grid-auto-rows: 200px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  background: #1a1a1a;
  overflow: hidden;
}

.gallery-item.portrait {
  grid-row: span 2;
}

@media (min-width: 1200px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1600px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.gallery-item:hover img {
  opacity: 0.85;
}

/* Image protection overlay */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  background: rgba(0,0,0,0.7);
  color: #ddd;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .img-caption {
  opacity: 1;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
  touch-action: none;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5em;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  padding: 20px 15px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-caption {
  color: #888;
  font-size: 0.95em;
  margin-top: 15px;
  text-align: center;
  max-width: 80%;
}

/* ============================================
   About Page
   ============================================ */
.about-content p {
  color: #888;
}
.about-item {
  border-bottom-color: #222;
}
.about-label {
  color: #555;
}
.about-item a {
  color: #aaa;
}
.about-item a:hover {
  color: #fff;
}

/* ============================================
   Footer
   ============================================ */
#footer {
  position: fixed;
  bottom: 0;
  left: 220px;
  right: 0;
  padding: 10px 40px;
  font-size: 0.8em;
  color: #444;
  background: #111;
  border-top: 1px solid #1a1a1a;
  z-index: 100;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 800px) {
  #wrapper { flex-direction: column; }
  #nav {
    width: 100%;
    min-width: auto;
    height: auto;
    position: static;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #222;
  }
  #nav h1 { margin-bottom: 15px; }
  .nav-list { display: flex; flex-wrap: wrap; gap: 10px; }
  .nav-list li { margin-bottom: 0; }
  #content {
    padding: 20px;
    max-width: 100%;
  }
  #footer {
    position: static;
    left: 0;
    padding: 10px 20px;
  }
  .album-strip-img-wrap { max-height: 60vh; }
  .album-strip-info { padding: 25px 30px; }
  .album-strip-info h2 { font-size: 1.8em; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .album-strip-img-wrap { max-height: 50vh; }
  .album-strip-info { padding: 20px; }
  .album-strip-info h2 { font-size: 1.5em; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}