/*
 * collectiondetails2.css
 * Page styles for frontend_collectiondetails2.php (v2 / enhanced template).
 * Extracted from the inline <style> blocks so the HTML payload stays small
 * and the rules are cacheable. Loaded after templatecollection.css.
 */

.container {
  max-width: 1600px;
}

/* ── Dark gradient on the site header for visibility over hero image ────── */
/* Many stops + low-contrast spread = smooth cinematic fade                  */
#header.site-header {
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.52) 15%,
    rgba(0, 0, 0, 0.42) 30%,
    rgba(0, 0, 0, 0.30) 50%,
    rgba(0, 0, 0, 0.16) 70%,
    rgba(0, 0, 0, 0.06) 88%,
    rgba(0, 0, 0, 0.00) 100%) !important;
}

/* Top info bar (shipping / phone row) — slightly darker to anchor the top */
#header .topnavback {
  background: rgba(0, 0, 0, 0.45) !important;
}

/* Force nav links and icons to white so they're readable on dark gradient */
#header .site-header a,
#header .site-header font,
#header .kl-nav-link,
#header .menu1 a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Remove the default solid white/grey header background panel */
#header .kl-header-bgw {
  opacity: 0 !important;
}

/* ── Full-width hero wall image ─────────────────────────────────────────── */
.pctm-hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.pctm-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100vh;
  min-height: 650px;
  max-height: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

@media (max-width: 1200px) {
  .pctm-hero {
    min-height: 70vh;
    max-height: 100vh;
    height: 100vh;
  }
}

@media (max-width: 768px) {
  .pctm-hero {
    min-height: 70vh;
    max-height: 100vh;
    height: 100vh;
  }
}

.pctm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.00) 70%);
  z-index: 2;
}

.pctm-hero picture,
.pctm-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pctm-hero .hero-content,
.pctm-hero .hero-title {
  position: relative;
  z-index: 3;
}

/* ── Artwork name label ─────────────────────────────────────────────────── */
.pctm-art-label {
  position: absolute;
  inset: 0;
  z-index: 4;
  /* radial gradient anchored at the bottom-right corner only */
  background: radial-gradient(
    ellipse 70% 55% at 108% 108%,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.20) 38%,
    rgba(0, 0, 0, 0) 65%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 86px 70px 0;
  pointer-events: none;
  animation: pctm-fadeslide 0.7s ease both;
}

.pctm-art-label-title {
  display: block;
  color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  text-align: right;
}

.pctm-art-label-artist {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  text-align: right;
}

.pctm-art-label a {
  pointer-events: all;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.pctm-art-label a:hover .pctm-art-label-artist {
  color: #fff;
}

@media (max-width: 900px) {
  .pctm-art-label {
    padding: 0 18px 20px 0;
  }
}

/* ── Loading overlay ────────────────────────────────────────────────────── */
#loading-div-background {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

#loading-div {
  width: 500px;
  height: 200px;
  background-color: #fff;
  box-shadow: 2px 2px 2px #f1f1f1;
  border: 0px solid #1468b3;
  text-align: center;
  color: #202020;
  position: absolute;
  left: 50%;
  top: 40%;
  margin-left: -150px;
  margin-top: -100px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  z-index: 99;
}

/* ── Sub-tabs (thickness / mount options) ───────────────────────────────── */
.tabnav {
  display: inline-block;
  padding: 10px 30px;
  margin: 0 10px 10px 0;
  border: 1px solid #6e6e6e;
  color: #6e6e6e;
}

.tabnav.active {
  font-weight: bold;
  border-color: #de256f;
}

.tabs li a:hover {
  background: #ccc;
}

.tab_content {
  display: none;
}

.tabSTnav {
  display: inline-block;
  padding: 10px 30px;
  margin: 0 10px 10px 0;
  border: 1px solid #6e6e6e;
  color: #6e6e6e;
}

.tabSTnav.active {
  font-weight: bold;
  border-color: #de256f;
}

.tabST_content {
  display: none;
}

/* ── Panel animations ───────────────────────────────────────────────────── */
/* fade-in + slide-down animation for info panels */
@keyframes pctm-fadeslide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pctm-panel-animate {
  animation: pctm-fadeslide 0.5s ease both;
}

/* same animation for left-column product panels */
.pctm-leftpanel-animate {
  animation: pctm-fadeslide 0.5s ease both;
}

/* ── Detail text block ──────────────────────────────────────────────────── */
.pctm-detail-inner {
  padding: 5px;
  max-width: 900px;
}

@media (min-width: 768px) {
  .pctm-detail-inner {
    padding: 75px;
  }
}

/* ── Mural unit tabs + measurement panel ────────────────────────────────── */
.mural-tab-bar {
  display: flex;
  gap: 3px;
  margin: 14px 0 0 0;
}

.mural-tab {
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #3da865;
  color: rgba(255, 255, 255, 0.65);
  border: none;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.mural-tab.active {
  background: #47b475;
  color: #fff;
  position: relative;
  z-index: 1;
}

.mural-panel {
  background: #47b475;
  border-radius: 0 8px 8px 8px;
  padding: 20px 24px 16px;
}

.mural-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mural-field label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  width: 52px;
  flex-shrink: 0;
}

.mural-field input[type=text],
.mural-field input[type=number] {
  padding: 6px 8px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  width: 70px;
  text-align: center;
  background: #fff;
  color: #333;
}

.mural-field .mural-unit {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
}

.mural-submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  background: #2e7d4f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s;
}

.mural-submit:hover {
  background: #236040;
}

/* ── Lazy-loaded images ─────────────────────────────────────────────────── */
.lazyimage-container {
  text-align: center;
}

.lazy-image {
  display: inline-block;
  margin: 0 auto;
}
