/* Shared base styles shared by every page. */
@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
  }
  body {
    overscroll-behavior: none;
  }
  main > :first-child {
    margin-top: 0 !important;
  }
  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  display: none;
}

/* PhotoSwipe v5 lightbox — retuned to the achromatic "white cube" system:
 * a near-white ground, hairline controls and unrounded corners (see DESIGN.md). */
.pswp {
  --pswp-bg: #ffffff;
  --pswp-icon-color: #1b1c1c;
  --pswp-icon-color-secondary: #5e5e5e;
  --pswp-icon-stroke-color: #1b1c1c;
  --pswp-preloader-color: #c4c7c7;
}

.pswp__button {
  border-radius: 0;
  transition: opacity 0.25s ease;
}

.pswp__button--close:hover,
.pswp__button--zoom:hover,
.pswp__button--arrow--prev:hover,
.pswp__button--arrow--next:hover {
  opacity: 1;
}

/* Custom caption element (registered in assets/js/gallery-lightbox.js). */
.pswp__gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 1.25rem 4rem;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5e5e5e;
  pointer-events: none;
}

@media (max-width: 768px) {
  .pswp__gallery-caption {
    padding: 1rem 1.5rem;
  }
}
