body.jocely-artwork-page {
  background: #0a0a0c;
}

body.jocely-artwork-page .aurel_content_wrapper,
body.jocely-artwork-page .aurel_content {
  max-width: none !important;
  padding: 0 !important;
}

.jocely-artwork-detail {
  --jad-bg: #0a0a0c;
  --jad-surface: #141416;
  --jad-surface-soft: #101012;
  --jad-text: #f5f1eb;
  --jad-muted: #aaa5a1;
  --jad-line: rgba(255, 255, 255, 0.13);
  --jad-accent: #ff4f8b;
  width: 100%;
  overflow: hidden;
  color: var(--jad-text);
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--jad-accent) 10%, transparent), transparent 28rem),
    var(--jad-bg);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.jocely-artwork-detail *,
.jocely-artwork-detail *::before,
.jocely-artwork-detail *::after {
  box-sizing: border-box;
}

.jocely-artwork-detail img {
  display: block;
  width: 100%;
}

.jocely-artwork-detail a {
  color: inherit;
  text-decoration: none;
}

.jocely-artwork-detail button {
  font: inherit;
}

.jad-hero,
.jad-description,
.jad-room,
.jad-video,
.jad-related {
  width: min(calc(100% - 64px), 1320px);
  margin-right: auto;
  margin-left: auto;
}

.jad-hero {
  padding: 164px 0 130px;
}

.jad-breadcrumb {
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--jad-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.jad-breadcrumb a {
  transition: color 200ms ease;
}

.jad-breadcrumb a:hover {
  color: var(--jad-text);
}

.jad-breadcrumb span:nth-child(even) {
  color: var(--jad-accent);
}

.jad-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.72fr);
  gap: clamp(64px, 8vw, 128px);
  align-items: start;
}

.jad-viewer,
.jad-info {
  min-width: 0;
}

.jad-main-media {
  position: relative;
  min-height: 660px;
  padding: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--jad-line);
  border-radius: 4px 44px 4px 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent),
    var(--jad-surface);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.4);
}

.jad-main-image {
  width: 100%;
  height: 590px;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--jad-text);
  background: transparent;
  cursor: zoom-in;
}

.jad-main-image > img {
  height: 100%;
  object-fit: contain;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.jad-main-image:hover > img {
  transform: scale(1.025);
}

.jad-main-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 5, 7, 0.68);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.jad-main-image > span i {
  margin-left: 8px;
  color: var(--jad-accent);
  font-size: 13px;
  font-style: normal;
}

.jad-status {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 17px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 12, 0.78);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.jad-status::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  content: "";
  background: #37c783;
  box-shadow: 0 0 12px #37c783;
}

.jad-status-reservee::before { background: #f2b84b; box-shadow: 0 0 12px #f2b84b; }
.jad-status-vendue::before,
.jad-status-collection::before { background: #929298; box-shadow: none; }

.jad-image-placeholder {
  width: 100%;
  height: 590px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 72%, #136d82, transparent 28%),
    radial-gradient(circle at 74% 28%, color-mix(in srgb, var(--jad-accent) 70%, transparent), transparent 31%),
    #111114;
}

.jad-image-placeholder span {
  font-family: Georgia, serif;
  font-size: 82px;
  font-style: italic;
  transform: rotate(-7deg);
}

.jad-thumbnails {
  margin-top: 16px;
  padding: 0 4px 4px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jad-thumbnail {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--jad-line);
  border-radius: 7px;
  background: var(--jad-surface);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.jad-thumbnail img {
  height: 100%;
  object-fit: cover;
}

.jad-thumbnail:hover,
.jad-thumbnail.is-active {
  border-color: var(--jad-accent);
  opacity: 1;
  transform: translateY(-2px);
}

.jad-info {
  position: sticky;
  top: 132px;
  padding-top: 30px;
}

.jad-series,
.jad-eyebrow {
  margin: 0 0 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--jad-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jad-series span,
.jad-eyebrow span {
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--jad-accent);
}

.jocely-artwork-detail .jad-info h1 {
  margin: 0;
  color: var(--jad-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(64px, 6vw, 104px);
  font-weight: 570;
  letter-spacing: -0.075em;
  line-height: 0.9;
  overflow-wrap: break-word;
}

.jad-lead {
  margin: 34px 0 0;
  color: var(--jad-muted);
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
}

.jad-facts {
  margin: 54px 0 0;
  border-top: 1px solid var(--jad-line);
}

.jad-facts > div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--jad-line);
}

.jad-facts dt {
  color: #77777c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.jad-facts dd {
  margin: 0;
  color: var(--jad-text);
  font-size: 14px;
}

.jad-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.jad-button {
  min-height: 52px;
  padding: 0 19px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jad-line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.jad-button-primary {
  border-color: var(--jad-accent);
  color: #0a0a0c !important;
  background: var(--jad-accent);
}

.jad-button:hover {
  border-color: var(--jad-text);
  color: #0a0a0c !important;
  background: var(--jad-text);
  transform: translateY(-2px);
}

.jad-description {
  padding: 130px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(70px, 10vw, 170px);
  border-top: 1px solid var(--jad-line);
}

.jocely-artwork-detail .jad-description h2,
.jocely-artwork-detail .jad-section-heading h2,
.jocely-artwork-detail .jad-related h2 {
  margin: 0;
  color: var(--jad-text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.jad-rich-text {
  color: var(--jad-muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.jad-rich-text > :first-child {
  margin-top: 0;
}

.jad-rich-text > :last-child {
  margin-bottom: 0;
}

.jad-rich-text p:first-child::first-letter {
  margin: 0.14em 0.12em 0 0;
  float: left;
  color: var(--jad-text);
  font-family: Georgia, serif;
  font-size: 4.2em;
  line-height: 0.7;
}

.jad-room,
.jad-video {
  padding: 130px 0;
  border-top: 1px solid var(--jad-line);
}

.jad-section-heading {
  max-width: 780px;
}

.jad-section-heading > p:last-child {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--jad-muted);
}

.jad-room-presets {
  margin: 58px 0 24px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.jad-room-preset {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--jad-line);
  border-radius: 999px;
  color: var(--jad-muted);
  background: var(--jad-surface-soft);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 220ms ease;
}

.jad-room-preset > span {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.jad-room-preset:hover,
.jad-room-preset.is-active {
  border-color: var(--jad-accent);
  color: #0a0a0c;
  background: var(--jad-accent);
}

.jad-room-preset.is-active > span {
  background: currentColor;
}

.jad-room-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border: 1px solid var(--jad-line);
  background: #222;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.5);
}

.jad-room-background {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.jad-room-background.is-changing {
  opacity: 0.28;
}

.jad-room-artwork {
  position: absolute;
  z-index: 2;
  top: 34%;
  left: 52%;
  width: 25%;
  max-width: 58%;
  max-height: 57%;
  object-fit: contain;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 3px 8px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: width 500ms cubic-bezier(0.19, 1, 0.22, 1), height 500ms cubic-bezier(0.19, 1, 0.22, 1), opacity 220ms ease;
}

.jad-room-size {
  position: absolute;
  z-index: 3;
  right: 15px;
  bottom: 15px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 11, 0.64);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.jad-video {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: center;
}

.jad-video-frame {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--jad-line);
  background: var(--jad-surface);
}

.jad-video-frame iframe,
.jad-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.jad-video-frame > a {
  padding: 18px 24px;
  border: 1px solid var(--jad-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jad-video-frame > a span {
  margin-left: 16px;
  color: var(--jad-accent);
}

.jad-related {
  padding: 130px 0 150px;
  border-top: 1px solid var(--jad-line);
}

.jad-related-heading {
  display: flex;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
}

.jad-related-heading > a {
  padding-bottom: 8px;
  color: var(--jad-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jad-related-heading > a span {
  margin-left: 12px;
  color: var(--jad-accent);
}

.jad-collection-description {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--jad-muted);
  font-size: 15px;
  line-height: 1.7;
}

.jad-related-grid.jad-collection-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.jad-related-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.jad-related-card > div {
  height: 390px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--jad-line);
  background: var(--jad-surface);
}

.jad-related-card img {
  height: 100%;
  object-fit: contain;
  transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.jad-related-card:hover img {
  transform: scale(1.045);
}

.jad-related-card > p {
  margin: 17px 0 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--jad-text);
  font-size: 17px;
  font-weight: 600;
}

.jad-related-card > p span {
  color: var(--jad-accent);
}

.jad-related-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #173e4a, #2d1324);
}

.jad-lightbox[hidden] {
  display: none;
}

.jad-lightbox {
  position: fixed;
  z-index: 999999;
  inset: 0;
  padding: 60px;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(18px);
}

.jad-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.jad-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #111114;
  cursor: pointer;
}

.jad-lightbox-close span {
  position: absolute;
  top: 23px;
  left: 14px;
  width: 20px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}

.jad-lightbox-close span:last-child {
  transform: rotate(-45deg);
}

body.jad-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .jad-hero,
  .jad-description,
  .jad-room,
  .jad-video,
  .jad-related {
    width: min(calc(100% - 48px), 1320px);
  }

  .jad-hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .jad-info {
    position: static;
    width: min(100%, 760px);
    padding-top: 0;
  }

  .jad-description {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .jad-video {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .jad-hero,
  .jad-description,
  .jad-room,
  .jad-video,
  .jad-related {
    width: min(calc(100% - 32px), 1320px);
  }

  .jad-hero {
    padding: 120px 0 88px;
  }

  .jad-breadcrumb {
    margin-bottom: 34px;
  }

  .jad-main-media {
    min-height: 420px;
    padding: 18px;
    border-radius: 3px 28px 3px 3px;
  }

  .jad-main-image,
  .jad-image-placeholder {
    height: min(112vw, 500px);
  }

  .jocely-artwork-detail .jad-info h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .jad-facts > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .jad-actions {
    flex-direction: column;
  }

  .jad-button {
    width: 100%;
  }

  .jad-description,
  .jad-room,
  .jad-video,
  .jad-related {
    padding: 88px 0;
  }

  .jocely-artwork-detail .jad-description h2,
  .jocely-artwork-detail .jad-section-heading h2,
  .jocely-artwork-detail .jad-related h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .jad-room-presets {
    margin-top: 44px;
  }

  .jad-room-scene {
    width: calc(100% + 32px);
    margin-left: -16px;
  }

  .jad-room-size {
    right: 8px;
    bottom: 8px;
  }

  .jad-video-frame {
    min-height: 240px;
  }

  .jad-related-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .jad-related-grid {
    grid-template-columns: 1fr;
  }

  .jad-related-card > div {
    height: 420px;
  }

  .jad-lightbox {
    padding: 42px 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jocely-artwork-detail *,
  .jocely-artwork-detail *::before,
  .jocely-artwork-detail *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
