/* Each category keeps its real photo pairs together, with manual navigation. */
[data-gallery] .project-slide + .project-slide { margin-top: 32px; }
[data-gallery].is-enhanced .project-slide { margin-top: 0; }
.works-grid .work-card .comparison {
  height: auto;
  aspect-ratio: var(--photo-ratio, 4/3);
}
[data-gallery] .work-caption {
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
[data-gallery] .work-caption > div:first-child { min-width: 0; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #b7c6aa;
  border-radius: 4px;
  background: transparent;
  color: var(--green);
  font: 500 11px/1.4 var(--sans);
  transition: background .2s, border-color .2s;
}
.photo-actions button:hover { background: #e1e9d9; border-color: #78936a; }
.gallery-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-top: 19px;
  padding-top: 13px;
  border-top: 1px solid #cfdbc5;
}
.gallery-controls > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b7c6aa;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font: 400 22px/1 var(--sans);
  transition: background .2s, border-color .2s;
}
.gallery-controls > button:hover { background: #e1e9d9; border-color: #78936a; }
.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.gallery-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
}
.gallery-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid #78936a;
  border-radius: 50%;
  background: transparent;
  transition: background .2s, transform .2s;
}
.gallery-dot[aria-current="true"]::after { background: var(--green); transform: scale(1.35); }
.gallery-dot:hover::after { background: #78936a; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .gallery-controls { margin-top: 16px; }
  [data-gallery] .work-caption { gap: 11px; }
}
