/* =========================================================================
   TIMBER TRAILS — PHOTOGRAPHY GALLERY STYLESHEET
   Loaded in addition to variables.css + style.css + responsive.css +
   animations.css on the /photography page only.
   ========================================================================= */

/* -------------------------------------------------------------------------
   HERO — full canopy-gradient treatment (dark hero, matches the homepage
   masthead style) since this page is reached from a homepage topic card.
   ------------------------------------------------------------------------- */
.photo-hero {
  padding-block: calc(var(--space-3xl) + 2rem) var(--space-2xl);
  background: var(--gradient-canopy);
  color: var(--text-inverse);
}

.photo-hero .eyebrow { color: var(--color-sage); }
.photo-hero__title { color: var(--text-inverse); }

.photo-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: rgba(248, 248, 245, 0.8);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
}

.photo-hero__back:hover { color: var(--text-inverse); }

.photo-hero__title {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  max-width: 18ch;
  margin-bottom: var(--space-lg);
}

.photo-hero__dek {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(248, 248, 245, 0.82);
  max-width: 62ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
}

/* -------------------------------------------------------------------------
   GALLERY — an alternating, editorial-style photo essay layout rather than
   a dense grid, so each contribution reads with its full caption and credit.
   ------------------------------------------------------------------------- */
.photo-gallery { padding-block: var(--space-2xl) var(--space-3xl); }

.photo-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  margin: 0 0 var(--space-3xl);
}

.photo-entry:last-child { margin-bottom: 0; }

.photo-entry--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.photo-entry--reverse .photo-entry__image-wrap { order: 2; }
.photo-entry--reverse .photo-entry__caption { order: 1; }

.photo-entry__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-secondary);
}

.photo-entry__image {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-editorial);
}

.photo-entry:hover .photo-entry__image { transform: scale(1.03); }

.photo-entry__caption { padding-inline: var(--space-sm); }

.photo-entry__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.photo-entry__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.photo-entry__credit {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.photo-entry__credit a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-entry__location { text-transform: none; letter-spacing: normal; }

/* -------------------------------------------------------------------------
   EMPTY STATE — shown before the first contribution is added via the admin.
   ------------------------------------------------------------------------- */
.photo-gallery__empty {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.photo-gallery__empty p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

.photo-gallery__empty-sub {
  margin-top: var(--space-md);
  font-size: var(--fs-sm) !important;
  color: var(--text-muted) !important;
}

.photo-gallery__empty-sub a { color: var(--text-accent); }

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 780px) {
  .photo-hero__title { font-size: var(--fs-2xl); }

  .photo-entry,
  .photo-entry--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }

  .photo-entry--reverse .photo-entry__image-wrap,
  .photo-entry--reverse .photo-entry__caption {
    order: initial;
  }

  .photo-entry__caption { padding-inline: 0; }
}
