/* =========================================================
   artwork.css — shared styles for all artwork detail pages
   ========================================================= */

/* Background */
#bg {
  background-image: url('../images/bg/bg2026.webp');
  filter: brightness(0.35) saturate(0.55);
}

/* Page wrapper */
.aw-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 24px 100px;
}

/* Breadcrumb */
.aw-breadcrumb {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 36px;
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.aw-breadcrumb a {
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
}
.aw-breadcrumb a:hover { color: rgba(255,255,255,0.65); }
.aw-breadcrumb span { margin: 0 8px; }

.aw-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.76rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.aw-back:hover { color: rgba(255,255,255,0.65); }

/* Main grid */
.aw-grid {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  align-items: start;
}

/* Image column */
.aw-image-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Standard (opaque) zoomable images */
.aw-zoomable {
  cursor: zoom-in;
  transition: transform 0.30s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.30s ease;
}
.lqip-img.aw-zoomable {
  transition: filter 0.8s ease, transform 0.30s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.30s ease;
}
/* Layout rules only apply inside the artwork image column */
.aw-image-col .aw-zoomable {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.75);
}
.aw-zoomable:hover {
  transform: scale(1.03);
}
.aw-image-col .aw-zoomable:hover {
  box-shadow: 0 16px 64px rgba(0,0,0,0.88);
}

/* Circular transparent images — drop-shadow handles the edge */
.aw-circular {
  cursor: zoom-in;
  transition: transform 0.30s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.30s ease;
}
.aw-image-col .aw-circular {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.80));
}
.aw-circular:hover {
  transform: scale(1.03);
}
.aw-image-col .aw-circular:hover {
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.92));
}

/* Secondary images grid — all thumbnails, in-situ and process shots */
.aw-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aw-thumbs .aw-zoomable {
  box-shadow: 0 4px 20px rgba(0,0,0,0.65);
}
.aw-thumbs .aw-zoomable:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 40px rgba(0,0,0,0.85);
}
.aw-thumbs .aw-circular {
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.70));
}
.aw-thumbs .aw-circular:hover {
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.88));
}

/* Details column */
.aw-details {
  position: sticky;
  top: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 28px 28px 32px;
  backdrop-filter: blur(10px);
}

.aw-eyebrow {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,220,120,0.55);
  margin-bottom: 10px;
}

.aw-title {
  font-family: 'Nosferatu', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

.aw-year {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.aw-sold-badge {
  display: inline-block;
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 3px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.aw-price {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 1.55rem;
  color: rgba(255,220,120,0.90);
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.aw-meta {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.8;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.aw-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 20px 0;
}

.aw-desc {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.80;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  margin-bottom: 24px;
}
.aw-desc p { margin: 0 0 1em; }
.aw-desc p:last-child { margin-bottom: 0; }

.aw-buy {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.90rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,220,120,0.92);
  background: rgba(255,220,120,0.08);
  border: 1px solid rgba(255,220,120,0.28);
  border-radius: 6px;
  padding: 13px 20px;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  margin-bottom: 10px;
}
.aw-buy:hover {
  background: rgba(255,220,120,0.14);
  border-color: rgba(255,220,120,0.50);
  color: #fff;
}

.aw-enquire {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 11px 20px;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  cursor: pointer;
}
.aw-enquire:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.80);
}

/* Lightbox */
.aw-lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.aw-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.aw-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 16px 80px rgba(0,0,0,0.95);
  object-fit: contain;
  cursor: zoom-out;
}
.aw-lightbox.circular img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.95));
}

/* Lightbox prev / next buttons (injected by artwork.js) */
.aw-lb-prev,
.aw-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  z-index: 1;
}
.aw-lb-prev { left: 20px; }
.aw-lb-next { right: 20px; }
.aw-lb-prev:hover,
.aw-lb-next:hover {
  background: rgba(0,0,0,0.72);
  border-color: rgba(255,255,255,0.30);
  color: #fff;
}

/* Lightbox image counter — "2 / 4" */
.aw-lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
  pointer-events: none;
  white-space: nowrap;
}

/* Active thumbnail — gold ring shows which image is shown as hero */
.aw-thumbs .aw-thumb-active {
  outline: 2px solid rgba(255,220,120,0.70);
  outline-offset: 2px;
}

/* ==============================================
   Print & edition pages
   ============================================== */
.aw-print-sizes {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
  font-family: 'IMFellEnglish', Georgia, serif;
}
.aw-print-sizes tr { border-bottom: 1px solid rgba(255,255,255,0.07); }
.aw-print-sizes tr:last-child { border-bottom: none; }
.aw-print-sizes td {
  padding: 8px 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.50);
  vertical-align: middle;
  line-height: 1.4;
}
.aw-print-sizes .aw-ps-label {
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  padding-right: 14px;
  white-space: nowrap;
}
.aw-print-sizes .aw-ps-price {
  text-align: right;
  color: rgba(255,220,120,0.88);
  font-size: 1.05rem;
  white-space: nowrap;
}
.aw-unframed {
  font-family: 'IMFellEnglish', Georgia, serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  margin: 10px 0 22px;
}
.aw-buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.aw-buy-row .aw-buy {
  font-size: 0.78rem;
  padding: 11px 8px;
  margin-bottom: 0;
}
.aw-buy.aw-buy-soon {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 720px) {
  .aw-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aw-details { position: static; }
  .aw-wrap { padding: 40px 16px 80px; }
}
