/*
 * SHOWPLACE.ART — Theme: Gallery
 * ─────────────────────────────────────────────────────────────────────────────
 * Modern, minimalist, bright. Clean gallery feel.
 * Serif display fonts, sans-serif for UI chrome.
 * Two subtle accent colours: warm terracotta + near-black on white.
 */

:root {
  --gallery-accent: #8a5c4e;   /* warm terracotta */
  --gallery-border: #e4e4e4;
}

.powered-by {
  color: #999;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  padding: 0 10%;
  max-width: 1200px;
  text-align: right;
}
a.powered-by-link {
  color: #999;
  font-weight: normal;
}

@media (max-width: 768px) {
  .powered-by {
    text-align: center;
    padding: 0;
  }
}

/* ── Page ────────────────────────────────────────────────────────────────── */

.sp-preview {
  background: #ffffff;
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Navigation (top) ────────────────────────────────────────────────────── */

.sp-nav {
  background: #ffffff;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 10%;
  margin-top: 24px;
}

.sp-nav-logo {
  color: #1a1a1a;
  font-size: 32px;
}

.sp-nav-links {
  gap: 12px 28px;
}

.sp-nav-link {
  color: #777777;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-nav-link:hover {
  color: #1a1a1a;
}

/* ── Navigation (sidebar) ────────────────────────────────────────────────── */

.sp-sidebar-nav {
  background: #ffffff;
  text-align: right;
}

.sp-sidebar-logo {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
}

/* ── Hero section ────────────────────────────────────────────────────────── */

.sp-hero {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 25px 10%;
}

.sp-hero-text {
  padding-right: 16px;
}

.sp-hero-title {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.sp-hero-meta {
  color: #999999;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-hero-price {
  color: var(--gallery-accent);   /* warm terracotta accent */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-hero-cta {
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-hero-cta:hover {
  background: var(--gallery-accent);
}

/* ── Gallery / grid backgrounds ──────────────────────────────────────────── */

.sp-gallery-wrap,
.sp-grid-section,
.sp-masonry-wrap,
.sp-slideshow-main {
  background: #ffffff;
}

.sp-masonry-wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding: 20px 10%;
}

.sp-grid-section {
  padding: 50px 10%;
  max-width: 1200px;
  margin-inline: auto;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Artwork cards ───────────────────────────────────────────────────────── */

.artwork-card {
  background: transparent;
}

.artwork-image {
  border-radius: 0;
  box-shadow: 0 8px 10px -10px #333;
}

.artwork-image img {
  transition: opacity 0.3s ease;
}

.artwork-card:hover .artwork-image img {
  opacity: 0.84;
}

.artwork-info {
  padding: 20px 0;
}

.artwork-title {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
}

.artwork-meta {
  font-size: 11px;
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: inline-block;
}

.artwork-price {
  font-size: 11px;
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: inline-block;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid #e4e4e4;
}

/* ── Masonry items ───────────────────────────────────────────────────────── */

.sp-masonry-item img {
  transition: opacity 0.3s ease;
}

.sp-masonry-item:hover img {
  opacity: 0.84;
}

/* ── Slideshow caption ───────────────────────────────────────────────────── */

.sp-slide-info {
  border: 1px solid #ccc;
  padding: 16px;
  font-size: 14px;
}

.sp-slide-title {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 18px;
}

.sp-slide-meta {
  display: none;
}

.sp-slide-caption {
  display: none;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */

.sp-page-btn {
  color: #1a1a1a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-page-btn:hover:not(:disabled) {
  color: var(--gallery-accent);
}

.sp-page-info,
.sp-page-counter {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-load-more {
  color: #bbbbbb;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Inner pages (contact / product) ────────────────────────────────── */

.sp-page-title,
.sp-product-title {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 400;
}

.sp-page-subtitle,
.sp-enquiry-subject {
  color: #777777;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.sp-product-blurb {
  color: #777777;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.sp-alert {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 0;
}

.sp-product-meta-label {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-product-meta-value {
  color: #1a1a1a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

.sp-product-sold {
  color: #aaaaaa;
}

.sp-contact-form {
  max-width: 700px;
  margin-inline: auto;
}
.sp-contact-form .sp-page-title {
  display: none;
}

.sp-form-label {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-form-input,
.sp-form-textarea {
  border-color: #ccc;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
}

.sp-form-input:focus,
.sp-form-textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.sp-form-textarea {
  height: 200px;
}

.sp-form-input-error {
  border-color: #c0392b;
}

.sp-form-error {
  color: #c0392b;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.sp-form-btn {
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sp-form-btn:hover {
  background: var(--gallery-accent);
}

.sp-alert-success {
  background: #f9f7f5;
  border: 1px solid #e4e4e4;
  color: #2d6b2d;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-slide-view-link {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.sp-slide-view-link:hover {
  color: #1a1a1a;
}

.sp-back-link {
  color: #aaaaaa;
  font-size: 12px;
  font-family: sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-back-link:hover {
  color: #1a1a1a;
}

/* ── Product page — gallery card layout ──────────────────────────────────── */

.sp-product-page .sp-page-content {
  max-width: 1200px;
  padding: 32px 10%;
}

/* Side-by-side card: image left, details right */
.sp-product-page .sp-product-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
}

/* Image panel */
.sp-product-page .sp-product-image {
  flex: 0 0 66%;
  margin-bottom: 0;
}

.sp-hero-image {
  overflow: visible;
}

.sp-hero-image img,
.sp-product-page .sp-product-image img,
.sp-slide img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.5);
}

/* Details panel */
.sp-product-page .sp-product-details {
  flex: 1;
  padding: 24px;
  border: 1px solid #ccc;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Gallery-label typography */
.sp-product-page .sp-product-title {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.sp-product-page .sp-product-meta {
  gap: 0;
}

.sp-product-page .sp-product-meta-row {
  padding: 10px 0;
  border-bottom: 1px solid #f0eeeb;
  gap: 12px;
}

.sp-product-page .sp-product-meta-row:last-child {
  border-bottom: none;
}

.sp-product-page .sp-product-meta-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  min-width: 56px;
}

.sp-product-page .sp-product-meta-value {
  font-size: 12px;
}

.sp-product-page .sp-product-blurb {
  font-size: 13px;
  line-height: 1.5;
  color: #888888;
  text-align: justify;
}

.sp-product-page .sp-form-btn {
  font-size: 10px;
  padding: 10px 22px;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

/* ── Collections (header + homepage preview) ───────────────────────────── */
.sp-collections-preview {
  max-width: 1200px;
  padding: 25px 10%;
  margin: 25px auto 0 auto;
  border-top: 1px solid var(--gallery-border);
  border-bottom: 1px solid var(--gallery-border);
}

.sp-collection-title {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.sp-collection-blurb {
  color: #777777;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.sp-collections-preview-title,
.sp-all-artworks-title {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sp-collection-card-thumb {
  background: #f0f0f0;
}
.sp-collection-card-thumb img {
  box-shadow: 0 8px 10px -10px rgba(0, 0, 0, 0.5);
}

.sp-collection-card-name {
  color: #1a1a1a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 400;
}

.sp-collection-card-count {
  color: #aaaaaa;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  display: block;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .sp-nav {
    padding: 0 16px;
  }
  .sp-nav-links {
    margin-top: 12px;
    gap: 12px;
  }
  .sp-nav-link {
    padding-right: 12px;
    border-right: 1px solid #eee;
  }
  .sp-nav-link:last-child {
    border-right: none;
  }

  .sp-slide-info {
    width: 100%;
  }

  .sp-product-page .sp-page-content {
    padding: 0 20px 56px;
  }

  .sp-product-page .sp-product-card {
    flex-direction: column;
  }

  .sp-product-page .sp-product-image {
    flex: unset;
  }

  .sp-product-page .sp-product-details {
    border-top: 1px solid #e4e4e4;
    padding: 28px 24px;
    justify-content: flex-start;
    width: 100%;
  }

  .sp-hero {
    padding: 20px 16px;
  }
  .sp-hero-image img {
    width: 100%;
    height: auto;
    max-height: initial;
  }
  .sp-hero-text {
    padding: 20px 0;
  }
  .sp-hero-image {
    height: auto;
    width: 100%;
  }

  .sp-collections-preview {
    padding: 20px 16px;
  }

  .sp-grid-section {
    padding: 20px 16px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sp-nav {
    height: auto;
    padding: 16px;
  }
}