/* Fine Art project view — chrome comes from ../commercial/apollo.css */

/* RP monogram beside the Fine Art title */
.logo.text.logo-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  vertical-align: middle;
}
.logo.text .logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* Thumbnail home: grid only — no series row */
.index-thumbs { display: none; }
body.view-index .index-thumbs.galleries { display: grid; }
body.view-index #projectPages,
body.view-index .project {
  display: none !important;
}
body.view-index .series-nav {
  display: none !important;
}

/* Series view: full-width photo (no left column) */
body.view-project .index-thumbs { display: none !important; }
body.view-project #projectPages { display: block; }

.project { display: none; }
.project.active { display: block; }
.project-meta { margin-bottom: 18px; max-width: 420px; }
.project-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.project-description { font-size: 12px; line-height: 1.55; color: #555; white-space: pre-wrap; }
.project-description p { margin: 0; }

/* Stage hugs the large photo so corner arrows sit on the image box (Commercial layout) */
.project .gallery-view .stage {
  position: relative;
  text-align: center;
  margin: 0 auto 18px;
  overflow: visible;
}
.project .gallery-view .stage.photo-stage {
  width: fit-content;
  max-width: 100%;
}
.project .gallery-view .stage .image-list {
  margin: 0;
  width: fit-content;
  max-width: 100%;
}
.image-list .image { display: none; margin: 0; }
.image-list .image.active { display: block; width: fit-content; max-width: 100%; }
.image-list img {
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*
 * Commercial cursor buttons (same rules as commercial/apollo.css).
 * Duplicated here so Fine Art still shows them if an older apollo.css is served.
 * Position: lower-left / lower-right of .stage.photo-stage, above the thumbs.
 */
.project .gallery-view .stage.photo-stage .photo-prev,
.project .gallery-view .stage.photo-stage .photo-next {
  position: absolute;
  top: auto;
  bottom: 8px;
  transform: none;
  z-index: 2;
  border: 2px solid #000;
  background: rgba(255, 255, 255, 0.88);
  color: #000;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project .gallery-view .stage.photo-stage .photo-prev { left: 8px; right: auto; }
.project .gallery-view .stage.photo-stage .photo-next { right: 8px; left: auto; }
.project .gallery-view .stage.photo-stage .photo-prev:hover,
.project .gallery-view .stage.photo-stage .photo-next:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

/* Series image thumbs */
.project .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  justify-content: center;
}
.project .thumbs button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
  width: 64px;
  height: 64px;
  overflow: hidden;
}
.project .thumbs button.active,
.project .thumbs button:hover { opacity: 1; }
.project .thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

/*
 * Bottom stack on series pages:
 * 1) horizontal series names (#seriesNav)
 * 2) Back to Fine Art
 * Site menu (Commercial / Fine Art / About / Contact) lives in .site-nav under the title.
 * Thumbnail index: hide the whole bottom bar (nothing to show).
 */
body.view-index .bottom-bar { display: none; }
body.view-project .bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.series-nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  max-width: 1100px;
}
body.view-project .series-nav {
  display: flex;
}
.series-nav li { margin: 0; }
.series-nav a {
  display: inline-block;
  color: var(--nav);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  padding: 2px 0;
  white-space: nowrap;
}
.series-nav a:hover { color: var(--brand); opacity: 1; }
.series-nav a.active {
  color: var(--brand);
  font-weight: 400;
}

/* Back to Fine Art only on series views (in the bottom bar) */
.bottom-bar .bottom-back { display: none; }
body.view-project .bottom-bar .bottom-back { display: inline-block; }

@media (max-width: 760px) {
  .logo.text .logo-mark { width: 40px; height: 40px; }
  body.view-index .index-thumbs.galleries {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .series-nav { gap: 4px 12px; }
  .series-nav a { font-size: 10px; }
  .project .gallery-view .stage.photo-stage .photo-prev,
  .project .gallery-view .stage.photo-stage .photo-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
    bottom: 4px;
  }
  .project .gallery-view .stage.photo-stage .photo-prev { left: 4px; }
  .project .gallery-view .stage.photo-stage .photo-next { right: 4px; }
}
