/* A consistent comparison gallery, using the existing before and after photos. */
.home .work-gallery { border-color: #33352e; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.gallery-heading .eyebrow { color: #d2b27b; margin-bottom: 22px; }
.gallery-heading h2 { max-width: 640px; }
.gallery-heading > p { max-width: 300px; margin: 0 0 3px; color: #b7b7ae; font-size: 16px; line-height: 1.75; }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.gallery-card { flex: 0 1 calc((100% - 52px) / 3); min-width: 0; margin: 0; overflow: hidden; border: 1px solid #33352e; background: #111; }
.gallery-card-link { display: block; }
.gallery-card-link:focus-visible { outline: 3px solid #d2b27b; outline-offset: -4px; }
.gallery-card:focus-within, .gallery-card:hover { border-color: #8c7754; }
.gallery-comparison { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3px; background: #111; }
.gallery-view { position: relative; min-width: 0; aspect-ratio: 3 / 5; overflow: hidden; background: #080808; }
.gallery-view svg { display: block; width: 100%; height: 100%; }
.gallery-state { position: absolute; z-index: 1; top: 12px; left: 10px; padding: 5px 8px; border: 1px solid #ffffff30; background: #0b0b0bd9; color: #fff; font-size: 9px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.gallery-state-after { background: #d2b27b; border-color: #d2b27b; color: #111; }
.gallery-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px 21px; border-top: 1px solid #33352e; }
.gallery-card h3 { margin: 0; color: #f5f3ed; font-size: 23px; line-height: 1.25; }
.gallery-category { color: #baa377; font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
@media (max-width:1100px) {
  .gallery-card { flex-basis: calc((100% - 26px) / 2); }
}
@media (max-width:700px) {
  .gallery-heading { display: block; margin-bottom: 30px; }
  .gallery-heading .eyebrow { margin-bottom: 20px; }
  .gallery-heading > p { max-width: 360px; margin-top: 22px; font-size: 15px; }
  .gallery-grid { gap: 22px; }
  .gallery-card { flex-basis: 100%; }
  .gallery-card figcaption { padding: 18px; }
  .gallery-card h3 { font-size: 24px; }
}
