/*
  Private Available Works catalogue.
  Scoped intentionally: all selectors are under .dr-available-works / .body--available-works.
*/

.body--available-works .content.main__content {
  background: #fff;
}

.dr-available-works,
.dr-available-works * {
  box-sizing: border-box;
}

.dr-available-works {
  width: min(100% - 48px, 1440px);
  margin: clamp(26px, 4vh, 54px) auto clamp(80px, 10vh, 140px);
  color: #111;
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

.dr-aw-header {
  max-width: 760px;
  margin: 0 0 clamp(28px, 3.8vw, 46px);
}

.dr-aw-kicker {
  margin: 0 0 7px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.dr-aw-title,
.dr-aw-detail__title {
  margin: 0;
  font-family: "big-caslon-fb", "Big Caslon", "Libre Caslon Text", "Adobe Caslon Pro", "Book Antiqua", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #111;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dr-aw-title {
  font-size: clamp(30px, 4vw, 42px);
}

.dr-aw-intro {
  max-width: 620px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.62;
  color: rgba(0, 0, 0, 0.68);
}

.dr-aw-intro > :first-child {
  margin-top: 0;
}

.dr-aw-intro > :last-child {
  margin-bottom: 0;
}

.dr-aw-status-with-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dr-aw-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.dr-aw-status-dot--reserved {
  background: #ffd400;
}

.dr-aw-status-dot--sold {
  background: #ff1f1f;
}

.dr-aw-status-dot--available {
  background: transparent;
}

.dr-aw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.8vw, 68px) clamp(28px, 3.6vw, 54px);
  align-items: start;
}

.dr-aw-card {
  min-width: 0;
}

.dr-aw-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.dr-available-works--index .dr-aw-card__link,
.dr-available-works--index .dr-aw-card__link:visited,
.dr-available-works--index .dr-aw-card__link:hover,
.dr-available-works--index .dr-aw-card__link:focus,
.dr-available-works--index .dr-aw-card__link:focus-visible,
.dr-available-works--index .dr-aw-card__link:active,
.dr-available-works--index .dr-aw-card__link *,
.dr-available-works--index .dr-aw-card__link:hover *,
.dr-available-works--index .dr-aw-card__link:focus-visible *,
.dr-available-works--index .dr-aw-card__link:active * {
  color: inherit;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

.dr-aw-card__link:hover .dr-aw-card__image,
.dr-aw-card__link:focus-visible .dr-aw-card__image {
  opacity: 0.92;
}

.dr-aw-card__figure {
  margin: 0;
}

.dr-aw-card__image-box {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #fff;
}

.dr-aw-card__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 160ms ease;
}

.dr-aw-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.028);
}

.dr-aw-card__caption {
  width: min(100%, 32em);
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.43;
  color: rgba(0, 0, 0, 0.72);
}

.dr-aw-card__status-line,
.dr-aw-detail__status-line {
  min-height: 0;
  margin: 5px 0 0;
  line-height: 1;
}

.dr-aw-meta-row--mobile-only {
  display: none;
}

.dr-aw-meta-row {
  margin: 0;
  overflow-wrap: break-word;
}

.dr-aw-meta-row--artist {
  color: rgba(0, 0, 0, 0.82);
}

.dr-aw-meta-row--title {
  color: #111;
}

.dr-aw-meta-row--medium,
.dr-aw-meta-row--dimensions,
.dr-aw-meta-row--framed-dimensions {
  color: rgba(0, 0, 0, 0.66);
}

.dr-aw-meta-row--price {
  margin-top: 5px;
  color: rgba(0, 0, 0, 0.78);
}

.dr-aw-empty {
  margin: 34px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.dr-aw-back {
  margin: 0 0 clamp(22px, 3.4vh, 40px);
  font-size: 12px;
  line-height: 1.4;
}

.dr-aw-back a {
  color: rgba(0, 0, 0, 0.58);
  text-decoration: none;
}

.dr-aw-back a:hover,
.dr-aw-back a:focus-visible {
  color: #111;
  text-decoration: underline;
}

.dr-available-works--detail {
  width: min(100% - 48px, 1260px);
  margin-top: clamp(24px, 4vh, 46px);
}

.dr-aw-detail__main-block {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.dr-aw-detail__main-figure,
.dr-aw-detail__additional-figure {
  margin: 0;
}

.dr-aw-detail__main-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(82vh, 900px);
  object-fit: contain;
}

.dr-aw-detail__info {
  width: 100%;
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.52;
  color: rgba(0, 0, 0, 0.76);
}


.dr-aw-detail__caption {
  margin-top: 20px;
  color: rgba(0, 0, 0, 0.64);
}

.dr-aw-detail__caption > :first-child {
  margin-top: 0;
}

.dr-aw-detail__caption > :last-child {
  margin-bottom: 0;
}

.dr-aw-detail__additional {
  display: grid;
  gap: clamp(44px, 7vh, 86px);
  margin-top: clamp(56px, 8vh, 104px);
}

.dr-aw-detail__additional-figure {
  display: flex;
  justify-content: center;
}

.dr-aw-detail__additional-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1100px);
  max-height: min(80vh, 860px);
  object-fit: contain;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media screen and (max-width: 1024px) {
  .dr-aw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .dr-available-works,
  .dr-available-works--detail {
    width: min(100% - 28px, 100%);
    margin-top: 28px;
  }

  .dr-aw-title {
    font-size: clamp(26px, 8.4vw, 34px);
  }

  .dr-aw-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .dr-aw-card__image-box {
    aspect-ratio: 1 / 1;
  }

  .dr-aw-card__caption,
  .dr-aw-detail__info {
    font-size: 12.5px;
  }

  .dr-aw-detail__main-image {
    max-height: none;
  }
}

/* Mobile catalogue list view: compact overview, desktop grid unchanged. */
@media screen and (max-width: 640px), screen and (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .dr-available-works--index .dr-aw-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dr-available-works--index .dr-aw-card__figure {
    display: grid;
    grid-template-columns: clamp(145px, 44vw, 210px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .dr-available-works--index .dr-aw-card__image-box {
    width: 100%;
    height: clamp(145px, 44vw, 210px);
    aspect-ratio: auto;
    align-items: flex-start;
    justify-content: center;
  }

  .dr-available-works--index .dr-aw-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .dr-available-works--index .dr-aw-card__caption {
    width: auto;
    margin-top: 0;
    padding-top: 1px;
    font-size: 12px;
    line-height: 1.36;
  }

  .dr-available-works--index .dr-aw-meta-row--desktop-only,
  .dr-available-works--index .dr-aw-meta-row--framed-dimensions {
    display: none;
  }

  .dr-available-works--index .dr-aw-meta-row--mobile-only {
    display: block;
  }

  .dr-available-works--index .dr-aw-meta-row--price {
    margin-top: 4px;
  }
}

/* Mobile Available Work detail: full-bleed main image, readable metadata. */
@media screen and (max-width: 640px), screen and (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .dr-available-works--detail .dr-aw-detail__main-block {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .dr-available-works--detail .dr-aw-detail__main-figure {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .dr-available-works--detail .dr-aw-detail__main-image {
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  .dr-available-works--detail .dr-aw-detail__info {
    max-width: none;
    margin-top: 17px;
    font-size: 14.5px;
    line-height: 1.48;
  }
}
