/* Work gallery and three-client layouts; shared site styles stay unchanged. */
.work-gallery {
  padding: 90px 0;
  background: #edf3e9;
  scroll-margin-top: 28px;
}
.work-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 42px;
  margin-bottom: 36px;
}
.work-gallery__header > * {
  min-width: 0;
}
.work-gallery__eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #49815a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
}
.work-gallery__header h2 {
  margin: 0;
  color: #153b2b;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.16;
}
.work-gallery__header h2 em {
  color: #418254;
}
.work-gallery__header > p {
  max-width: 360px;
  margin: 0 0 3px;
  color: #637169;
  font-size: 16px;
  line-height: 1.8;
}
.work-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work-gallery__card {
  min-width: 0;
  margin: 0;
  border: 1px solid #d6e2d1;
  background: #fff;
}
.work-gallery__photo {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e4ebe1;
  color: #fff;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.work-gallery__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.work-gallery__photo--contain {
  background: #fff;
}
.work-gallery__photo--contain img {
  object-fit: contain;
}
.work-gallery__photo:hover img {
  transform: scale(1.035);
}
.work-gallery__photo--contain:hover img {
  transform: none;
}
.work-gallery__photo--contain .work-gallery__view {
  display: none;
}
.work-gallery__photo:focus-visible {
  z-index: 1;
  outline: 3px solid #70aa65;
  outline-offset: 4px;
}
.work-gallery__view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #ffffff35;
  background: #103a2aec;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.work-gallery__view svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.work-gallery__card figcaption {
  padding: 20px 22px;
  color: #214b33;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.client-logo-grid.client-logo-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.client-logo-grid--three .client-logo-box {
  min-width: 0;
  padding-inline: 30px;
}
.client-logo-grid--three .client-logo-box img {
  object-fit: contain;
}
.client-logo-grid--three .client-logo-box span {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
html.work-gallery-modal-open {
  overflow: hidden;
}
.work-lightbox {
  width: min(1160px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: min(900px, calc(100vh - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #587c60;
  border-radius: 3px;
  background: #102e21;
  color: #fff;
  box-shadow: 0 24px 80px #0006;
}
.work-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.work-lightbox::backdrop {
  background: #04140ee6;
}
.work-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.work-lightbox__header > div {
  min-width: 0;
}
.work-lightbox__label {
  margin: 0 0 5px;
  color: #b7d8aa;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.work-lightbox__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.025em;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.work-lightbox__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #91b38a;
  background: #204a32;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.work-lightbox__button:hover {
  background: #366943;
}
.work-lightbox__button:focus-visible {
  outline: 3px solid #b9e2b2;
  outline-offset: 3px;
}
.work-lightbox__close {
  flex-shrink: 0;
}
.work-lightbox__image-frame {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071c13;
}
.work-lightbox__image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.work-lightbox__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}
.work-lightbox__previous {
  justify-self: start;
}
.work-lightbox__next {
  justify-self: end;
}
.work-lightbox__status {
  margin: 0;
  color: #d7e8d3;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.work-lightbox__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .work-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-gallery__header {
    gap: 30px;
  }
  .client-logo-grid--three .client-logo-box {
    padding-inline: 22px;
  }
}
@media (max-width: 780px) {
  .work-gallery {
    padding: 62px 0;
  }
  .work-gallery__header {
    display: block;
  }
  .work-gallery__header > p {
    max-width: 540px;
    margin-top: 22px;
  }
  .client-logo-grid.client-logo-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .work-gallery {
    padding: 54px 0;
  }
  .work-gallery__header {
    margin-bottom: 28px;
  }
  .work-gallery__header h2 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .work-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .work-gallery__card figcaption {
    padding: 18px 20px;
  }
  .client-logo-grid.client-logo-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-lightbox {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }
  .work-lightbox__header {
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .work-lightbox__header h2 {
    font-size: 18px;
  }
  .work-lightbox__button {
    padding-inline: 14px;
  }
  .work-lightbox__footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 16px 16px;
  }
  .work-lightbox__status {
    grid-row: 1;
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-gallery__photo img {
    transition: none;
  }
}
