/*
 * Project page (Aixor redesign 2026-10-05): the gallery tiles and the full-screen viewer, carried
 * over from the previous build (assets/js/slider.js drives them), on Aixor's radius and spacing.
 */
.pj-gallery .section-header { padding: 90px 72px 60px; }
.pj-gallery .pj-grid { padding: 0 72px 90px; }
.pj-tile { border-radius: 16px; background: #1a1a1a; }
.ax-fullband.pj-band .pj-open { display: block; width: 100%; height: 100%; }
@media (max-width: 1439px) { .pj-gallery .section-header { padding: 60px 42px 40px; } .pj-gallery .pj-grid { padding: 0 42px 60px; } }
@media (max-width: 809px) { .pj-gallery .section-header { padding: 50px 22px 32px; } .pj-gallery .pj-grid { padding: 0 22px 50px; } }

/* ---- band: one full-bleed photograph between the text and the grid (home band) ---- */
.pj-band .pj-open { display: block; width: 100%; height: 100%; }

/* ---- gallery: equal 4:3 frames in complete rows of three or two (Burkhard) ----
   A six-track grid: a third spans two tracks, a half three, a lone photo all six. */
.pj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.pj-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--rd-night); }
.pj-tile.is-third { grid-column: span 2; }
.pj-tile.is-half { grid-column: span 3; }
.pj-tile.is-whole { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.pj-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.pj-tile:hover img { transform: scale(1.04); }
.pj-open { cursor: zoom-in; }
.pj-open:focus-visible { outline: 2px solid var(--rd-or); outline-offset: 4px; }
.pj-band .pj-open:focus-visible { outline-offset: -6px; }
/* The twelfth tile when there are more: how many more, over a scrim (the viewer holds them all). */
.pj-tile__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 12, .62);
  color: var(--rd-bone);
  font-size: var(--t-heading);
  line-height: var(--t-heading-lh);
  font-weight: 300;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  transition: background .25s;
}
.pj-tile:hover .pj-tile__more { background: rgba(13, 13, 12, .5); }

/* ---- viewer: every photograph, whole, one at a time (assets/js/slider.js) ---- */
html.pj-locked { overflow: hidden; }
.pj-view {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--rd-night-3);
  color: var(--rd-bone);
  overflow: hidden;
}
.pj-view[open] { display: grid; grid-template-rows: 88px minmax(0, 1fr) 32px; }
.pj-view::backdrop { background: var(--rd-night-3); }
.pj-view__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--rd-gut);
  border-bottom: 1px solid var(--rd-line);
}
.pj-view__count { margin: 0; font-size: var(--t-ui); line-height: var(--t-ui-lh); color: var(--rd-ash); font-variant-numeric: tabular-nums; }
.pj-view__now { color: var(--rd-bone); }
.pj-view__track {
  display: flex;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pj-view__track::-webkit-scrollbar { display: none; }
.pj-view__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 32px calc(var(--rd-gut) + 80px) 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.pj-view__slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pj-view__btn, .pj-view__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--rd-line);
  border-radius: 0;
  background: var(--rd-night-3);
  color: var(--rd-bone);
  cursor: pointer;
  transition: border-color .2s;
}
.pj-view__btn { position: absolute; top: calc(50% + 44px); z-index: 2; margin-top: -28px; }
.pj-view__prev { left: var(--rd-gut); }
.pj-view__next { right: var(--rd-gut); }
.pj-view__btn svg { width: 20px; height: 20px; display: block; }
.pj-view__prev svg { transform: scaleX(-1); }
.pj-view__btn:hover:not([disabled]), .pj-view__close:hover { border-color: var(--rd-or); }
.pj-view__btn:focus-visible, .pj-view__close:focus-visible, .pj-view__track:focus-visible { outline: 2px solid var(--rd-or); outline-offset: 3px; }
.pj-view__btn[disabled] { opacity: .3; cursor: default; }
/* The close mark: two 1px strokes in the text colour, drawn rather than a borrowed icon. */
.pj-view__close span { position: relative; display: block; width: 20px; height: 20px; }
.pj-view__close span::before, .pj-view__close span::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 9px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.pj-view__close span::after { transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .pj-grid { gap: 16px; }
  .pj-view__slide { padding-inline: var(--rd-gut); }
  .pj-view__btn { top: auto; bottom: 24px; margin-top: 0; }
  .pj-view[open] { grid-template-rows: 72px minmax(0, 1fr) 104px; }
  .pj-view__slide { padding-top: 24px; }
}
@media (max-width: 767px) {
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pj-tile.is-third, .pj-tile.is-half { grid-column: span 1; }
  .pj-grid.is-odd > .pj-tile:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .pj-view__btn, .pj-view__close { width: 48px; height: 48px; }
  .pj-view[open] { grid-template-rows: 72px minmax(0, 1fr) 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-tile img { transition: none; }
  .pj-tile:hover img { transform: none; }
}
