/* Alffis Photos — dark film-strip aesthetic, companion to blog.css.
   See docs/DATASHEET.md for the design-token reference. */

* { box-sizing: border-box; }

body.photos-body {
  margin: 0;
  background: #17140f;
  color: #e9e2d4;
  font-family: Verdana, Geneva, sans-serif;
  min-height: 100vh;
}

a { color: #e8a15c; }
a:hover { color: #ffca8a; }
::selection { background: #e8a15c; color: #17140f; }

/* Placeholder art base rule — deliberately placed early so more specific
   layout classes below (.masonry-placeholder, .lightbox-placeholder) can
   override align-items/justify-content without needing extra specificity. */
.placeholder-thumb { display: flex; align-items: center; justify-content: center; }

.photos-header-link { text-decoration: none; color: inherit; display: block; }
.photos-header { border-bottom: 3px solid #e8a15c; padding: 26px 40px; cursor: pointer; }
.photos-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.photos-title { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 36px; color: #f3ead9; }
.photos-tagline { font-size: 11px; font-family: 'Courier New', monospace; color: #a89a83; margin-top: 3px; }
.back-to-blog-link {
  font-size: 12.5px;
  font-family: 'Courier New', monospace;
  border: 1px solid #a89a83;
  color: #d8cbb4;
  padding: 7px 14px;
}

.photos-wrap { max-width: 1100px; margin: 0 auto; padding: 34px 40px 70px; }
.photos-empty-note { color: #a89a83; }

.albums-label {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #a89a83;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.album-card {
  cursor: pointer;
  border: 1px solid #3a3226;
  background: #201b14;
  text-decoration: none;
  color: inherit;
  display: block;
}
.album-cover { height: 190px; position: relative; overflow: hidden; }
.album-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-cover-placeholder { height: 100%; }
.album-info { padding: 14px 16px; }
.album-title { font-family: Georgia, serif; font-size: 18px; color: #f3ead9; }
.album-meta { font-size: 12px; font-family: 'Courier New', monospace; color: #a89a83; margin-top: 4px; }

.all-albums-link {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #d8cbb4;
  margin-bottom: 6px;
  text-decoration: none;
}
.album-detail-title { font-family: Georgia, serif; font-size: 26px; color: #f3ead9; margin: 0 0 2px; }
.album-detail-meta { font-size: 12px; font-family: 'Courier New', monospace; color: #a89a83; margin-bottom: 20px; }

.masonry { column-count: 4; column-gap: 14px; }
.masonry-tile {
  break-inside: avoid;
  margin-bottom: 14px;
  cursor: pointer;
  border: 1px solid #3a3226;
}
.masonry-img { width: 100%; display: block; }
.masonry-placeholder { display: flex; align-items: flex-end; padding: 8px; }
.masonry-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 6px;
}

.photos-footer {
  border-top: 3px solid #e8a15c;
  text-align: center;
  font-size: 11.5px;
  font-family: 'Courier New', monospace;
  color: #a89a83;
  padding: 16px;
}

/* Placeholder art stripe colors (the shared .placeholder-thumb base rule is
   defined near the top of this file, before .masonry-placeholder, so that
   .masonry-placeholder's bottom-aligned label position wins the cascade). */

.placeholder-stripe-0 { background: repeating-linear-gradient(135deg, #4a3a2a, #4a3a2a 12px, #3e2f21 12px, #3e2f21 24px); }
.placeholder-stripe-1 { background: repeating-linear-gradient(135deg, #2f3a45, #2f3a45 12px, #26303a 12px, #26303a 24px); }
.placeholder-stripe-2 { background: repeating-linear-gradient(135deg, #463228, #463228 12px, #3a281f 12px, #3a281f 24px); }
.placeholder-stripe-3 { background: repeating-linear-gradient(135deg, #33403a, #33403a 12px, #2a352f 12px, #2a352f 24px); }
.placeholder-stripe-4 { background: repeating-linear-gradient(135deg, #4a2f38, #4a2f38 12px, #3a252d 12px, #3a252d 24px); }
.placeholder-stripe-5 { background: repeating-linear-gradient(135deg, #3a3a2a, #3a3a2a 12px, #302f20 12px, #302f20 24px); }

.placeholder-height-0 { height: 190px; }
.placeholder-height-1 { height: 240px; }
.placeholder-height-2 { height: 160px; }
.placeholder-height-3 { height: 280px; }
.placeholder-height-4 { height: 210px; }
.placeholder-height-5 { height: 150px; }
.placeholder-height-6 { height: 260px; }

/* Lightbox */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 5, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.lightbox-hidden { display: none; }
.lightbox-panel { max-width: 780px; width: 90%; }
.lightbox-image-area {
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #5a4d3a;
  background: #201b14;
  overflow: hidden;
}
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-placeholder { width: 100%; height: 100%; }
.lightbox-placeholder-label {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
}
.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  flex-wrap: wrap;
  gap: 10px;
}
.lightbox-caption { font-size: 12px; font-family: 'Courier New', monospace; color: #a89a83; }
.lightbox-buttons { display: flex; gap: 10px; }
.lightbox-btn {
  cursor: pointer;
  font-size: 13px;
  color: #d8cbb4;
  border: 1px solid #5a4d3a;
  padding: 6px 14px;
  background: transparent;
  font-family: Verdana, Geneva, sans-serif;
}
.lightbox-btn-close { color: #e8a15c; border-color: #e8a15c; }

@media (max-width: 900px) {
  .masonry { column-count: 2; }
}
@media (max-width: 520px) {
  .masonry { column-count: 1; }
}
