@import url('https://press.daisychainbiannual.com/assets/css/dc-typography.css');

:root {
  --dc-lightbox-black: #231F20;
  --dc-lightbox-white: #FCFBFE;
  --dc-lightbox-arrow-size: 18px;
  --dc-lightbox-control-size: 44px;
  --dc-lightbox-caption-gap: 8px;
  --dc-lightbox-caption-size: clamp(10px, 1.2vw, 12px);
  --dc-lightbox-caption-line-height: 1.25;
  --dc-lightbox-caption-letter-spacing: 0.12em;
}

/* Shared Daisy Chain image lightbox.
   Product-card integration can be added later without changing this file's API. */

.dc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--dc-lightbox-white);
}

.dc-lightbox.is-open {
  display: block;
}

.dc-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.dc-lightbox-artwork {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: auto;
}

.dc-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  cursor: zoom-out;
}

.dc-lightbox-caption {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: var(--dc-lightbox-caption-gap) 0 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dc-lightbox-black);
  font-family: 'DC Sans Condensed', Helvetica, Arial, sans-serif;
  font-size: var(--dc-lightbox-caption-size);
  font-weight: 400;
  line-height: var(--dc-lightbox-caption-line-height);
  letter-spacing: var(--dc-lightbox-caption-letter-spacing);
  text-align: left;
}

.dc-lightbox.has-caption .dc-lightbox-caption {
  display: block;
}

.dc-lightbox-caption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.dc-lightbox-control {
  display: flex;
  position: absolute;
  z-index: 2147483001;
  width: var(--dc-lightbox-control-size);
  height: var(--dc-lightbox-control-size);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: 0;
  color: var(--dc-lightbox-black);
  cursor: pointer;
}

.dc-lightbox-close {
  top: 8px;
  right: 8px;
  width: 56px;
  height: 56px;
  background: transparent;
  font-family: 'DC Sans Condensed', Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  color: var(--dc-lightbox-black);
}

.dc-lightbox-previous,
.dc-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(35,31,32,.15);
  border-radius: 50%;
  background: rgba(252,251,254,.90);
}

.dc-lightbox-previous {
  left: 12px;
}

.dc-lightbox-next {
  right: 12px;
}

.dc-lightbox-previous:hover,
.dc-lightbox-next:hover {
  border-color: rgba(35,31,32,.35);
}

.dc-lightbox-arrow {
  display: block;
  width: var(--dc-lightbox-arrow-size);
  height: var(--dc-lightbox-arrow-size);
  max-width: var(--dc-lightbox-arrow-size);
  max-height: var(--dc-lightbox-arrow-size);
  margin: 0;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
}

.dc-lightbox-previous .dc-lightbox-arrow {
  transform: rotate(180deg);
}

.dc-lightbox[data-single-image="true"] .dc-lightbox-previous,
.dc-lightbox[data-single-image="true"] .dc-lightbox-next {
  display: none;
}

/* Optional extension mount.
   Product-card purchase controls can attach here later. */
.dc-lightbox-extension {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2147483002;
  width: auto;
  max-width: 100vw;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* JS computes the image height when a caption is present so image + caption
   remain centered as one unit. This variable is intentionally shared. */
.dc-lightbox.has-caption .dc-lightbox-image {
  max-height: var(--dc-lightbox-image-max-height, 100dvh);
}

@media (max-width: 480px) {
  :root {
    --dc-lightbox-caption-gap: 6px;
  }

  .dc-lightbox-caption {
    font-size: 10px;
  }
}
