/* ===========================================================
   Genius Creative — gallery & artwork presentation
   Filters, artwork frames and painting cards, painting detail
   pages, and the photo journal masonry.
   =========================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 0 4px;
}
@media (max-width: 620px) { .filter-sep { display: none; } }

.filter-select {
  padding: 9px 34px 9px 18px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b7b0c2'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
}
.filter-select:hover { color: var(--text); border-color: var(--text-dim); }
.filter-select:focus { border-color: var(--gold); color: var(--text); }
.filter-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.filter-select option { background: var(--bg-card); color: var(--text); }
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
}
.filter-btn:hover { color: var(--text); border-color: var(--text-dim); }
.filter-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.filter-btn.active { color: var(--bg); background: var(--gold); border-color: var(--gold); }

/* ---------- Artwork frames & painting cards ---------- */

.piece { display: flex; flex-direction: column; }

.piece .label {
  padding: 16px 2px 0;
}

.piece .label .t { font-family: var(--serif); font-size: 1rem; color: var(--text); }
.piece .label .m { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.03em; margin-top: 3px; }

/* Real painting photography — natural aspect ratio, never cropped */
.artwork { background: #000; }
.artwork img { display: block; width: 100%; height: auto; }

/* only photography-journal frames and the painting-detail hero image zoom on click */
.photo-columns .artwork img,
.painting-detail .artwork img {
  cursor: zoom-in;
}
.photo-columns .artwork img:focus-visible,
.painting-detail .artwork img:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* a painting card (gallery grid, artist page, featured work) links to its detail page */
a.piece {
  display: flex;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.piece:hover { opacity: 0.85; }

/* ---------- Painting detail page ---------- */

.painting-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.painting-media { position: sticky; top: 96px; }
.painting-info .painting-artist { font-size: 1.05rem; color: var(--text); margin-bottom: 0.2em; }
.painting-info .painting-artist a { color: var(--gold); }
.painting-info .painting-artist a:hover { text-decoration: underline; }
.painting-info .painting-dims { font-size: 0.85rem; letter-spacing: 0.03em; color: var(--text-dim); margin-bottom: 1.6em; }
@media (max-width: 860px) {
  .painting-detail { grid-template-columns: 1fr; gap: 32px; }
  .painting-media { position: static; }
}

/* ---------- Photo journal (masonry) ---------- */

.photo-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}
.photo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,6,8,0.9) 0%, rgba(6,6,8,0.35) 45%, rgba(6,6,8,0.15) 70%, rgba(6,6,8,0.55) 100%);
}
.photo-hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}
.photo-hero h1 { font-size: clamp(3rem, 8vw, 6rem); margin-bottom: 0.2em; }
.photo-hero .lede { font-size: 1.05rem; max-width: 520px; }

.photo-columns {
  column-count: 3;
  column-gap: 18px;
}
.photo-columns > * {
  break-inside: avoid;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .photo-columns { column-count: 2; }
}
@media (max-width: 620px) {
  .photo-columns { column-count: 1; }
  .photo-hero { min-height: 72vh; }
}
