/* ==========================================================
   PHOTOGRAPHY PAGE — kellyvohs.com
   Photo posts from vohs.substack.com RSS feed.
   ========================================================== */

/* Header now uses shared .page-header from components.css */

/* --- Post list --- */
.photo-posts {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-2xl);
}

/* --- Individual photo post --- */
.photo-post {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-gray-border);
}

.photo-post:first-child {
  border-top: 1px solid var(--color-gray-border);
}

/* Lead image — always visible */
.photo-post__image {
  width: 100%;
  height: auto;
  display: block;
}

.photo-post__caption {
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-muted);
}

.photo-post__sep {
  margin: 0 0.4em;
}

.photo-post__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Preview — clipped with fade (same as writing page) --- */
.photo-post__preview {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-fg);
  margin-top: var(--space-sm);
  max-height: 7.2em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* Hide images in preview */
.photo-post__preview img,
.photo-post__preview figure,
.photo-post__preview .captioned-image-container {
  display: none;
}

/* Hide preview when expanded (lead image stays visible) */
.photo-post--open .photo-post__preview {
  display: none;
}

/* --- Full body — hidden by default --- */
.photo-post__body {
  display: none;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-fg);
  margin-top: var(--space-sm);
}

.photo-post--open .photo-post__body {
  display: block;
}

.photo-post__body p {
  margin-bottom: 1.5em;
}

.photo-post__body img {
  width: 100%;
  height: auto;
  display: block;
  margin: var(--space-md) 0;
}

.photo-post__body a {
  border-bottom: 1px solid var(--color-gray-border);
  transition: border-color var(--duration) var(--ease-out);
}

.photo-post__body a:hover {
  border-color: var(--color-fg);
}

.photo-post__body h2,
.photo-post__body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.photo-post__preview hr,
.photo-post__body hr {
  border: none;
  height: 1px;
  background: var(--color-gray-border);
  margin: var(--space-lg) 0;
}

.photo-post__body blockquote {
  border-left: 2px solid var(--color-gray-border);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-gray-mid);
}

.photo-post__body figure {
  margin: var(--space-md) 0;
}

.photo-post__body figcaption {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-gray-muted);
  text-align: center;
  margin-top: var(--space-xs);
}

/* Hide Substack widgets and expand buttons */
.photo-post__preview .subscription-widget-wrap,
.photo-post__preview .subscribe-widget,
.photo-post__preview .captioned-button-wrap,
.photo-post__preview .button-wrapper,
.photo-post__body .subscription-widget-wrap,
.photo-post__body .subscribe-widget,
.photo-post__body .captioned-button-wrap,
.photo-post__body .button-wrapper,
.photo-post__preview .image-link-expand,
.photo-post__body .image-link-expand {
  display: none;
}

/* --- Error / loading --- */
.photo-posts .feed-error {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-gray-mid);
}

.photo-posts .feed-error__message {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.photo-posts .feed-error__link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-gray-mid);
  padding-bottom: 2px;
  transition: border-color var(--duration) var(--ease-out);
}

.photo-posts .feed-error__link:hover {
  border-color: var(--color-fg);
}
