/* Homepage gallery only. Original images and the native viewer remain the owners. */
.gallery-section--mosaic .section-heading { margin-bottom: 30px; }
.gallery-section--mosaic .section-heading h2 { max-width: 780px; }
.gallery-section--mosaic .gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(135px, 13.5vw, 185px);
  gap: 18px;
}
.gallery-section--mosaic .gallery-mosaic > figure { min-width: 0; margin: 0; }
.gallery-mosaic > figure:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.gallery-mosaic > figure:nth-child(2) { grid-area: 1 / 3 / 2 / 4; }
.gallery-mosaic > figure:nth-child(3) { grid-area: 1 / 4 / 2 / 5; }
.gallery-mosaic > figure:nth-child(4) { grid-area: 2 / 3 / 3 / 4; }
.gallery-mosaic > figure:nth-child(5) { grid-area: 3 / 1 / 4 / 2; }
.gallery-mosaic > figure:nth-child(6) { grid-area: 3 / 2 / 4 / 3; }
.gallery-mosaic > figure:nth-child(7) { grid-area: 1 / 5 / 3 / 6; }
.gallery-mosaic > figure:nth-child(8) { grid-area: 3 / 3 / 4 / 4; }
.gallery-mosaic > figure:nth-child(9) { grid-area: 3 / 5 / 4 / 6; }
.gallery-mosaic > figure:nth-child(10) { grid-area: 2 / 4 / 4 / 5; }
.gallery-section--mosaic .gallery-open {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 18px;
  background: var(--wash, #edf2f4);
  box-shadow: 0 5px 18px rgb(21 50 67 / 8%);
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}
.gallery-section--mosaic .gallery-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 350ms ease;
}
.gallery-section--mosaic .gallery-open::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue, #006fc0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 4px 14px rgb(0 0 0 / 16%);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.gallery-section--mosaic .gallery-open:hover,
.gallery-section--mosaic .gallery-open:focus-visible { transform: translateY(-4px); box-shadow: 0 15px 32px rgb(21 50 67 / 17%); }
.gallery-section--mosaic .gallery-open:hover img,
.gallery-section--mosaic .gallery-open:focus-visible img { transform: scale(1.035); }
.gallery-section--mosaic .gallery-open:hover::after,
.gallery-section--mosaic .gallery-open:focus-visible::after { opacity: 1; transform: translateY(0); }
.gallery-section--mosaic .gallery-open:focus-visible { outline: 3px solid var(--blue, #006fc0); outline-offset: 4px; }
@media (max-width: 1100px) {
  .gallery-section--mosaic .gallery-mosaic { display: block; columns: 3; column-gap: 16px; }
  .gallery-section--mosaic .gallery-mosaic > figure { break-inside: avoid; margin: 0 0 16px; }
  .gallery-section--mosaic .gallery-open { height: auto; }
  .gallery-section--mosaic .gallery-open img { height: auto; object-fit: contain; }
}
@media (max-width: 760px) {
  .gallery-section--mosaic .section-heading { gap: 18px; margin-bottom: 22px; }
  .gallery-section--mosaic .section-heading h2 { font-size: clamp(32px, 7.5vw, 44px); }
  .gallery-section--mosaic .gallery-mosaic { columns: 2; column-gap: 12px; }
  .gallery-section--mosaic .gallery-mosaic > figure { margin-bottom: 12px; }
  .gallery-section--mosaic .gallery-mosaic > figure:first-child { column-span: all; }
  .gallery-section--mosaic .gallery-open { border-width: 2px; border-radius: 13px; }
  .gallery-section--mosaic .gallery-open::after { right: 9px; bottom: 9px; width: 32px; height: 32px; }
}
@media (hover: none) {
  .gallery-section--mosaic .gallery-open::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-section--mosaic .gallery-open,
  .gallery-section--mosaic .gallery-open img,
  .gallery-section--mosaic .gallery-open::after { transition: none; }
  .gallery-section--mosaic .gallery-open:hover,
  .gallery-section--mosaic .gallery-open:focus-visible,
  .gallery-section--mosaic .gallery-open:hover img,
  .gallery-section--mosaic .gallery-open:focus-visible img { transform: none; }
}

/* Authentic team-at-work photo. Presentation crop keeps the baked-in footer outside the frame. */
.about-photo.about-photo--team {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgb(21 50 67 / 9%);
}
.about-photo.about-photo--team > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  transform: scale(1.16);
  transform-origin: center top;
}
