/* ruby-gallery — Rayna Yang's World as a walk through a gallery (2026-12-06).
   Loaded after built/screen.css. Activate the original "ruby" theme to revert. */

:root {
  --wall: #eee8de;
  --wall-shade: #e4dccf;
  --ink: #26211d;
  --ink-soft: #6d635a;
  --mat: #fdfbf7;
  --frame-dark: #2b2521;
  --frame-oak: #9b7b56;
  --label: #ffffff;
  --accent: #a4553a;
  --ghost-accent-color: #a4553a;
  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --hang-shadow: 0 2px 3px rgba(40, 28, 16, .18), 0 18px 34px -14px rgba(40, 28, 16, .45);
  --hang-shadow-hover: 0 3px 5px rgba(40, 28, 16, .20), 0 30px 54px -20px rgba(40, 28, 16, .55);
}

/* ---------- the wall ---------- */
body,
body:not(.post-template):not(.page-template) {
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255, 252, 245, .9), transparent 60%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-shade) 100%);
  background-attachment: fixed;
  color: var(--ink);
}
.site-content, .gh-site, .gh-head { background: transparent; }

/* ---------- masthead ---------- */
.gh-head-logo {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 3.4rem !important;
  letter-spacing: .01em;
  color: var(--ink);
}
.gh-head-menu .nav a, .gh-head-link {
  font-size: 1.15rem;
  letter-spacing: .2em;
  color: var(--ink-soft);
}
.gh-head-menu .nav a:hover, .gh-head-link:hover { color: var(--accent); opacity: 1; }
.gh-head-btn.gh-primary-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  letter-spacing: .16em;
  font-size: 1.1rem;
}
.gh-head-btn.gh-primary-btn:hover { background: var(--accent); color: #fff; opacity: 1; }

.home-template .site-main::before {
  content: "The Collection";
  display: block;
  margin: 4px 0 6px;
  text-align: center;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.home-template .site-main::after { content: none; }
.home-template .post-feed::before {
  content: "Drawings & paintings by Rayna Yang, newest first";
  grid-column: 1 / -1;
  margin: 0 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--ink-soft);
}

/* ---------- hanging the works ---------- */
.gh-inner { max-width: 1380px; }
.post-feed {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 72px;
  row-gap: 96px;
  align-items: start;
}
.post-feed .gallery-piece {
  position: relative;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
/* soft spotlight from a ceiling track light */
.post-feed .gallery-piece::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -18%;
  right: -18%;
  top: -140px;
  height: 85%;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgba(255, 251, 241, .85), rgba(255, 251, 241, 0) 100%);
  pointer-events: none;
}
.post-feed .post-link { display: block; height: auto; color: inherit; }
.post-feed .post-link:hover { opacity: 1; }

.frame {
  margin: 0;
  padding: 18px;
  background: var(--mat);
  border: 7px solid var(--frame-dark);
  box-shadow: var(--hang-shadow), inset 0 0 0 1px rgba(0, 0, 0, .04), inset 0 2px 6px rgba(0, 0, 0, .10);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease;
}
.post-feed .gallery-piece:nth-child(3n+2) .frame { border-color: var(--frame-oak); }
.frame .post-image {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.post-feed .post-link:hover .frame {
  transform: translateY(-5px);
  box-shadow: var(--hang-shadow-hover), inset 0 0 0 1px rgba(0, 0, 0, .04), inset 0 2px 6px rgba(0, 0, 0, .10);
}

/* ---------- the little white wall label ---------- */
.wall-label {
  position: relative;
  width: 78%;
  max-width: 300px;
  margin: 26px 0 0 auto;
  padding: 14px 16px 15px;
  background: var(--label);
  text-align: left;
  box-shadow: 0 1px 1px rgba(40, 28, 16, .10), 0 6px 14px -8px rgba(40, 28, 16, .35);
}
.wall-label .post-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--ink);
}
.wall-label .label-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wall-label .label-artist { font-weight: 700; color: var(--ink); }
.wall-label .label-tag { color: var(--accent); }
.wall-label .label-desc {
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid #ece6dc;
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1.55;
  color: #4b433c;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-feed .post-link:hover .wall-label .post-title { color: var(--accent); }

/* theme leftovers */
.post-feed .featured .post-link::before { display: none; }
.post-feed .post-wrapper, .post-feed .post-footer { display: none; }

/* ---------- standing in front of one work ---------- */
.gallery-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 56px;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 4vw;
}
.gallery-view-art { position: relative; }
.gallery-view-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -16%; right: -16%; top: -160px; height: 80%;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgba(255, 251, 241, .85), rgba(255, 251, 241, 0) 100%);
}
.gallery-view .gh-article-image {
  margin: 0;
  padding: 22px;
  background: var(--mat);
  border: 9px solid var(--frame-dark);
  box-shadow: var(--hang-shadow), inset 0 2px 6px rgba(0, 0, 0, .10);
  grid-column: auto;
}
.gallery-view .gh-article-image img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.wall-label--single { width: 100%; max-width: 300px; margin: 0 0 8px; padding: 18px 20px 20px; }
.wall-label--single .post-title { font-size: 2.6rem; }
.wall-label--single .label-desc { display: none; }

.post-template .gh-content,
.page-template .gh-content { margin-top: 72px; }
.post-template .gh-content::before {
  content: "About this work";
  display: block;
  grid-column: main-start / main-end;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gh-content > p, .gh-content > ul, .gh-content > ol {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.75;
  color: #3a332d;
}
.gh-content a { color: var(--accent); }
.page-template .gh-article-title { font-family: var(--serif); font-style: italic; font-weight: 400; }

.post-navigation .navigation-label { letter-spacing: .16em; color: var(--ink-soft); }
.post-navigation .navigation-title { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* "You might also like" = the next room */
.related-wrapper { background: rgba(255, 253, 248, .45); border-top: 1px solid rgba(40, 28, 16, .08); }
.related-title { text-align: center; letter-spacing: .3em; color: var(--ink-soft); }
.related-posts .post-feed { grid-template-columns: repeat(4, 1fr); column-gap: 40px; row-gap: 56px; }
.related-posts .post-feed::before { content: none; }
.related-posts .frame { padding: 12px; border-width: 5px; }
.related-posts .wall-label { width: 92%; padding: 10px 12px; }
.related-posts .wall-label .post-title { font-size: 1.5rem; }
.related-posts .wall-label .label-desc { display: none; }

.gh-foot, .site-footer { background: transparent; color: var(--ink-soft); }

/* ---------- smaller rooms ---------- */
@media (max-width: 1199px) {
  .post-feed { grid-template-columns: repeat(2, 1fr); column-gap: 48px; row-gap: 72px; }
  .related-posts .post-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .gallery-view { grid-template-columns: 1fr; gap: 28px; }
  .wall-label--single { max-width: 420px; margin: 0 0 0 auto; }
}
@media (max-width: 767px) {
  .post-feed, .related-posts .post-feed { grid-template-columns: 1fr; row-gap: 64px; }
  .frame { padding: 12px; border-width: 5px; }
  .wall-label { width: 86%; }
  .gh-head-logo { font-size: 2.6rem !important; }
  .home-template .post-feed::before { font-size: 1.45rem; }
  .gallery-view .gh-article-image { padding: 12px; border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame { transition: none; }
  .post-feed .post-link:hover .frame { transform: none; }
}
