@charset "utf-8";

/* =========================================================
   Whisker Witch — Cart (mobile-first)
   Only cart-page components: Portfolio
   ========================================================= */ 
/* --- PAGE LAYOUT TO MATCH CUSTOM ART PAGE --- */

      .portfolio-body .page-shell {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
      }

      .portfolio-body .parchment-wrapper {
        position: relative;
        flex: 1 0 auto;
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 110px; /* room for bottom scroll + breathing space */
      }

      .portfolio-body .parchment {
        position: absolute;
        inset: 0;
        height: 100%;
      }

      .portfolio-body .page-content.portfolio-page {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 1.8rem;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2.4rem 2rem 3.2rem;
      }

      @media (max-width: 640px) {
        .portfolio-body .page-content.portfolio-page {
          padding: 2rem 1.4rem 2.6rem;
        }
      }

      /* Align purple toolbar like other pages */
      .portfolio-body .magick-menu {
        margin: 0.4rem auto 1.4rem;
        max-width: 1120px;
        width: 100%;
      }

      /* Bottom scroll cap placement */
      .portfolio-body .scroll-cap--bottom {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -26px;
      }

      /* Shell container for heading + menu + grid */
      .portfolio-shell {
        max-width: 1120px;
        width: 100%;
        margin: 0 auto;
      }

      /* --- CHAPTER HEADING (matches custom_art.php) --- */

      .chapter-heading {
        text-align: center;
        margin-bottom: 1.4rem;
      }
      .chapter-label {
        font-family: 'Cinzel', serif;
        font-size: 0.85rem;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: #7b5532;
        margin-bottom: 0.35rem;
      }
      .chapter-title {
        font-family: 'Cinzel', serif;
        font-size: 1.9rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: #4b2c16;
        text-shadow:
          0 0 6px rgba(255,248,205,0.9),
          0 0 18px rgba(223,188,115,0.85);
        margin: 0;
      }
      .chapter-subtitle {
        margin-top: 0.5rem;
        font-size: 0.98rem;
        color: #5c3921;
        font-style: italic;
      }
      .chapter-divider {
        margin: 1.1rem auto 1.6rem;
        width: 60%;
        height: 1px;
        background: linear-gradient(to right,
          rgba(73,47,20,0),
          rgba(214,171,89,0.9),
          rgba(73,47,20,0));
      }

      /* --- INTRO + SUBNAV --- */

      .portfolio-intro {
        text-align: center;
        margin-bottom: 0.8rem;
        color: #5b3a29;
        font-size: 0.98rem;
      }

      .portfolio-subnav {
        text-align: center;
        margin: 0.4rem 0 1.6rem;
        font-size: 0.95rem;
        color: #7b6b5d;
      }

      .portfolio-subnav a {
        color: #6a3d9a;
        text-decoration: none;
        font-weight: 600;
      }
      .portfolio-subnav a:hover {
        text-decoration: underline;
      }

      /* --- SIDEBAR + GRID LAYOUT --- */

      .portfolio-layout {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
      }

      @media (max-width: 850px) {
        .portfolio-layout {
          flex-direction: column;
        }
      }

      /* Sidebar */
      .portfolio-filter {
        width: 230px;
        padding: 1.2rem 1.4rem;
        background: rgba(255,252,240,0.96);
        border: 1px solid rgba(190,150,90,0.9);
        border-radius: 10px;
        box-shadow:
          0 6px 14px rgba(0,0,0,0.2),
          0 0 14px rgba(223,188,115,0.5);
      }

      .portfolio-filter h3 {
        margin-top: 0;
        margin-bottom: 0.8rem;
        font-family: 'Cinzel', serif;
        font-size: 1.05rem;
        color: #4b2c16;
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }

      .portfolio-filter ul {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .portfolio-filter li {
        margin: 0.4rem 0;
      }

      .portfolio-filter a {
        text-decoration: none;
        color: #5b3a29;
        font-size: 0.9rem;
        padding: 4px 6px;
        display: block;
        border-radius: 6px;
        transition: background 0.2s ease;
      }

      .portfolio-filter a:hover {
        background: rgba(223,188,115,0.22);
      }

      .portfolio-filter a.active {
        background: rgba(106, 61, 154, 0.25);
        font-weight: 600;
        color: #3b225d;
        border-left: 3px solid #6a3d9a;
      }

      /* Grid wrapper */
      .portfolio-grid-area {
        flex: 1;
      }

      /* --- ART GRID / CARDS --- */

      .art-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
      }

      @media (max-width: 1000px) {
        .art-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 650px) {
        .art-grid {
          grid-template-columns: 1fr;
        }
      }

      .art-card {
        background: rgba(255, 252, 244, 0.98);
        border-radius: 12px;
        border: 1px solid rgba(190,150,90,0.9);
        box-shadow:
          0 4px 10px rgba(0,0,0,0.12),
          0 0 16px rgba(219,189,130,0.45);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      }

      .art-card:hover {
        transform: translateY(-4px);
        background: rgba(255, 255, 255, 0.99);
        box-shadow:
          0 10px 22px rgba(0,0,0,0.22),
          0 0 20px rgba(204,153,255,0.55);
      }

      .art-card-image-wrap {
        position: relative;
        overflow: hidden;
        background: radial-gradient(circle at 50% 0%, #36204f 0, #12091f 55%);
      }

      .art-card-image-wrap img {
        width: 100%;
        display: block;
        max-height: 260px;
        object-fit: cover;
        transition: transform 0.35s ease;
      }

      .art-card:hover .art-card-image-wrap img {
        transform: scale(1.04);
      }

      .art-card-tag {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background: rgba(106, 61, 154, 0.9);
        color: #fff;
        font-size: 0.75rem;
        padding: 3px 9px;
        border-radius: 999px;
        font-family: 'Cinzel', serif;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .art-card-body {
        padding: 12px 14px 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .art-title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: #3a2730;
        font-family: 'Cinzel', serif;
        letter-spacing: 0.04em;
      }

      .art-subtitle {
        margin: 0;
        font-size: 0.9rem;
        color: #7b6b5d;
        font-style: italic;
      }

      .art-meta {
        font-size: 0.85rem;
        color: #8a7a60;
      }

      .art-description {
        font-size: 0.9rem;
        color: #55422c;
        margin-top: 4px;
      }

      .art-card-footer {
        padding: 8px 14px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #e9ddc1;
        font-size: 0.85rem;
      }

      .art-card-footer a.view-link {
        color: #6a3d9a;
        text-decoration: none;
        font-weight: 700;
      }

      .art-card-footer a.view-link:hover {
        text-decoration: underline;
      }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Default / original artwork badge */
.badge-original {
  background: linear-gradient(to right, #c08c4a, #8a5b2a);
  color: #fff7e5;
  box-shadow: 0 0 8px rgba(192,140,74,0.45);
}

/* Prints available badge: cooler, more “shop-worthy” magick */
.badge-print {
  background: linear-gradient(to right, #4b1f7a, #7a3dd6);
  color: #fdfbff;
  box-shadow:
    0 0 8px rgba(122,61,214,0.55),
    0 0 14px rgba(199,162,255,0.45);
}


      .portfolio-empty {
        text-align: center;
        color: #7b6b5d;
        margin-top: 1.2rem;
      }

      .cta-commission {
        margin-top: 25px;
        text-align: center;
        font-size: 0.95rem;
        color: #4B3A22;
      }

      .cta-commission a {
        color: #6a3d9a;
        font-weight: bold;
        text-decoration: none;
      }
      .cta-commission a:hover {
        text-decoration: underline;
      }

      .portfolio-back-home {
        text-align: center;
        margin-top: 22px;
        font-size: 0.9rem;
      }
      .portfolio-back-home a {
        color: #5b346f;
        text-decoration: none;
      }
      .portfolio-back-home a:hover {
        text-decoration: underline;
      }
	  
	  .portfolio-filter-section {
  margin-bottom: 1.1rem;
}

.portfolio-filter-section + .portfolio-filter-section {
  border-top: 1px solid rgba(190,150,90,0.45);
  padding-top: 0.9rem;
}

.portfolio-grid-area {
  flex: 1;
  min-width: 0;
}

/* Lightbox caption styling */
.lb-data .lb-caption {
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fdf7ea;
}

.lb-data .lb-caption strong {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #ffe8b7;
}

.lb-data .lb-caption em {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #e4d7ff;
}

.lb-data .lb-caption .lb-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #d3c3ff;
}

.lb-data .lb-caption .lb-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #f8f2ff;
}

.lb-data .lb-caption .lb-prints {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(122, 61, 214, 0.25);
  color: #f5e9ff;
  border: 1px solid rgba(199,162,255,0.7);
}

.lb-data .lb-caption {
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fdf7ea;
}

.lb-data .lb-caption strong {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #ffe8b7;
}

.lb-data .lb-caption em {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: #e4d7ff;
}

.lb-data .lb-caption .lb-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #d3c3ff;
}

.lb-data .lb-caption .lb-desc {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #f8f2ff;
}

.lb-data .lb-caption .lb-prints {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(122, 61, 214, 0.25);
  color: #f5e9ff;
  border: 1px solid rgba(199,162,255,0.7);
}

/* =========================
   MOBILE FRIENDLY PATCH
   Portfolio page
   ========================= */

/* Prevent sideways scroll from absolute layers / seals */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Keep background layers from stealing taps */
.scroll-shadow,
.page-aura,
.page-shadow,
.parchment,
.scroll-cap {
  pointer-events: none;
}

/* Comfortable mobile sizing (also prevents iOS zoom on tap) */
.portfolio-body,
.portfolio-body a,
.portfolio-body button,
.portfolio-body input,
.portfolio-body select {
  font-size: 16px;
}

/* Make sure the grid area can shrink without forcing overflow */
.portfolio-grid-area {
  min-width: 0;
}

/* Sidebar filter: improve tap targets */
.portfolio-filter a {
  padding: 10px 10px;       /* bigger tap area */
  line-height: 1.2;
  border-radius: 10px;
}

/* Make the "active" indicator look good when links are taller */
.portfolio-filter a.active {
  border-left-width: 4px;
}

/* Headings wrap nicely on small screens */
@media (max-width: 640px) {
  .portfolio-body .page-content.portfolio-page {
    padding: 1.2rem 1rem 2.2rem !important;
  }

  .chapter-title {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }

  .chapter-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  /* Stack layout already switches at 850px; when stacked, make sidebar full width */
  .portfolio-filter {
    width: 100% !important;
    padding: 1rem 1rem;
  }

  /* Make filter sections feel like collapsible cards visually (no JS needed) */
  .portfolio-filter-section {
    margin-bottom: 0.9rem;
  }

  /* Reduce gap a bit so it doesn’t feel “stretched” on phones */
  .portfolio-layout {
    gap: 1.2rem;
  }

  /* Art cards: slightly tighter, better for small screens */
  .art-card-body {
    padding: 12px 12px 14px;
  }

  .art-title {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .art-description {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  /* Decorative seals can overlap content on short screens */
  .wax-seal {
    opacity: 0.35;
    transform: scale(0.85);
  }

  /* Keep bottom cap from hugging content */
  .portfolio-body .scroll-cap--bottom {
    bottom: -42px !important;
  }
}

/* Extra-small phones */
@media (max-width: 420px) {
  /* Optional: hide seals entirely if they still collide with content */
  .wax-seal { display: none !important; }

  .art-card-image-wrap img {
    max-height: 220px;
  }
}

/* iPhone safe-area support */
@supports (padding: max(0px)) {
  .portfolio-body .page-content.portfolio-page {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
@media (min-width: 851px){
  .portfolio-filter { position: sticky; top: 110px; }
}
@media (max-width: 768px) {
  .wax-seal {
    display: none !important;
  }
}
@media (max-width: 640px){
  .lb-data .lb-caption { font-size: 0.95rem; }
  .lb-data .lb-details { width: 100%; }
}