.pk-gallery {
  padding: clamp(58px, 7vw, 112px) 0 clamp(84px, 9vw, 150px);
  background: #000;
  color: #fff;
}

.purpose-heading {
  padding: 0 var(--gutter) clamp(32px, 4vw, 64px);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.pk-gallery__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pk-gallery__works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(68px, 7.1vw, 120px) 0;
}

.pk-work,
.pk-work h3,
.pk-work p,
.pk-viewer h2,
.pk-viewer p {
  margin: 0;
}

.pk-work--linen {
  grid-column: 1 / -1;
}

.pk-work__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pk-work__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #211e1b;
  object-fit: cover;
}

.pk-work--linen .pk-work__image {
  aspect-ratio: 2.6;
  object-position: 50% 52%;
}

.pk-work__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px 18px;
  padding: clamp(17px, 1.55vw, 28px) clamp(20px, 2.8vw, 50px) 0;
}

.pk-work h3 {
  grid-column: 1 / -1;
  color: #fff;
  font-size: clamp(19px, 1.65vw, 30px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.pk-work p,
.pk-work__action {
  font-size: clamp(13px, 1.08vw, 17px);
  line-height: 1.5;
}

.pk-work p {
  color: #a1a1a1;
}

.pk-work__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c7c7c7;
  white-space: nowrap;
}

.pk-work__action svg {
  width: .9em;
  height: .9em;
}

.pk-work__link:hover .pk-work__action,
.pk-work__link:focus-visible .pk-work__action {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.pk-work__link:focus-visible {
  outline: 3px solid var(--blue, #0071e3);
  outline-offset: -3px;
}

html:has(.pk-viewer[open]) {
  overflow: hidden;
}

.pk-viewer {
  box-sizing: border-box;
  width: min(94%, 1560px);
  max-width: none;
  max-height: 100%;
  margin: auto;
  padding: 0;
  border: 0;
  overflow: auto;
  color: #fff;
  background: #080808;
}

.pk-viewer::backdrop {
  background: rgb(0 0 0 / 95%);
}

.pk-viewer__inner {
  --viewer-padding: clamp(14px, 1.8vw, 30px);
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
}

.pk-viewer__header,
.pk-viewer__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px var(--viewer-padding);
}

.pk-viewer__header h2 {
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.pk-viewer button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.pk-viewer button:hover {
  background: #2c2c2c;
}

.pk-viewer button:focus-visible {
  outline: 2px solid #67b1ff;
  outline-offset: -2px;
}

.pk-viewer__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: min(96px, 30vh);
  background: #000;
  touch-action: pan-y pinch-zoom;
}

.pk-viewer__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pk-viewer__image + .pk-viewer__image {
  opacity: 0;
  transition: opacity 220ms cubic-bezier(.2, .75, .3, 1);
}

.pk-viewer__stage[data-view="1"] .pk-viewer__image + .pk-viewer__image {
  opacity: 1;
}

.pk-viewer__label,
.pk-viewer__arrows {
  display: flex;
  align-items: center;
}

.pk-viewer__description {
  padding-block: 6px;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.4;
}

.pk-viewer__label {
  gap: clamp(10px, 1.2vw, 18px);
}

.pk-viewer .pk-viewer__decision {
  margin-top: 4px;
  color: #c7c7c7;
}

.pk-viewer .pk-viewer__retry {
  width: auto;
  padding-inline: 8px;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.pk-viewer__retry[hidden] {
  display: none;
}

.pk-viewer__count {
  color: #aaa;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pk-viewer__arrows {
  gap: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .pk-viewer__image + .pk-viewer__image { transition: none; }
}

@media (max-width: 730px) {
  .pk-gallery__works {
    grid-template-columns: 1fr;
    row-gap: 54px;
  }

  .pk-work--linen .pk-work__image {
    aspect-ratio: 16 / 9;
  }

  .pk-viewer {
    width: 100%;
  }

  .pk-viewer__inner {
    max-height: 100vh;
    max-height: 100dvh;
  }

  .pk-viewer__footer {
    position: relative;
    padding-block: 0 8px;
  }

  .pk-viewer__description {
    padding-top: 0;
  }

  .pk-viewer__label {
    min-height: 44px;
    padding-right: 100px;
  }

  .pk-viewer__arrows {
    position: absolute;
    top: 0;
    right: var(--viewer-padding);
  }
}

@media (max-width: 345px) {
  .pk-work__caption {
    grid-template-columns: 1fr;
  }
}
