/* Responsive work galleries: full photographs, never cropped or distorted. */
.nbpc-back-to-top {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #fff;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background .22s ease;
}

.nbpc-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nbpc-back-to-top:hover,
.nbpc-back-to-top:focus-visible {
  background: #454545;
}

.collaboration-grid.nbpc-title-center > h2 {
  text-align: center;
}

.collaboration-grid > div {
  align-items: start;
}

.collaboration-grid article img {
  object-fit: contain;
}

.nbpc-back-to-top:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.mobile-hero.nbpc-swipe-ready .mobile-slide {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-hero.nbpc-swipe-ready .mobile-slide.nbpc-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .work-article-opening.is-editorial {
    width: calc(100% - 8vw);
    padding-top: 60px;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .work-article-opening.is-editorial .work-article-header {
    max-width: 100%;
    padding: 0;
  }

  .work-article-opening.is-editorial .work-article-header h1 {
    max-width: 100%;
    font-size: clamp(68px, 11vw, 104px);
    overflow-wrap: anywhere;
  }

  .work-gallery-masonry {
    display: block !important;
    column-count: 2;
    column-gap: 14px;
  }

  .work-gallery-column {
    display: contents !important;
  }

  .work-gallery-item {
    margin: 0 0 14px;
    break-inside: avoid;
  }
}

@media (max-width: 767px) {
  .nbpc-back-to-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 14px;
    font-size: 22px;
  }

  .work-article,
  .work-article-opening,
  .work-article-gallery {
    max-width: 100%;
  }

  .work-article-opening.is-editorial .work-article-header h1 {
    max-width: 100%;
    font-size: clamp(52px, 16vw, 68px);
    overflow-wrap: anywhere;
  }

  .work-gallery-masonry {
    display: block !important;
    grid-template-columns: none !important;
    column-count: 1 !important;
  }

  .work-gallery-column {
    display: contents !important;
  }

  .work-gallery-item {
    width: 100%;
    margin: 0 0 14px;
    break-inside: avoid;
  }

  .work-gallery-open,
  .work-gallery-item img {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nbpc-back-to-top { transition: none; }
  .mobile-hero.nbpc-swipe-ready .mobile-slide { transition: none !important; }
}
