.before-after-gallery { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(42px, 7vw, 82px) 0 80px; }
.gallery-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.gallery-eyebrow { color: #397a68; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.gallery-intro h1 { margin: 12px 0 14px; color: #193a56; font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; }
.gallery-intro p { max-width: 640px; margin: 0 auto; color: #6d7b86; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-card { min-width: 0; overflow: hidden; border: 1px solid #e2ebe6; border-radius: 22px; background: #fff; box-shadow: 0 14px 38px rgba(27, 55, 43, .07); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(27, 55, 43, .12); }
.gallery-image-wrap { position: relative; display: grid; min-height: 220px; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; background: #edf2ef; }
.gallery-image-button { width: 100%; padding: 0; border: 0; color: inherit; text-align: left; cursor: zoom-in; }
.gallery-image-button:focus-visible { outline: 3px solid #43856c; outline-offset: -4px; }
.gallery-image-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox { position: fixed; z-index: 11000; inset: 0; display: grid; place-items: center; padding: 24px; }
.gallery-lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(12, 24, 21, .92); cursor: zoom-out; }
.gallery-lightbox-dialog { position: relative; z-index: 1; display: grid; max-width: 100%; max-height: 100%; place-items: center; outline: none; }
.gallery-lightbox-dialog > img { display: block; width: auto; height: auto; max-width: min(94vw, 1700px); max-height: 90vh; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.gallery-lightbox-close { position: absolute; z-index: 2; top: -18px; right: -18px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: #fff; color: #193a56; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.24); }
body.gallery-lightbox-open { overflow: hidden; }
.gallery-card-copy { padding: 20px 22px 23px; }
.gallery-category { color: #397a68; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gallery-card-copy h2 { margin: 6px 0 0; color: #203d34; font-size: 20px; font-weight: 750; line-height: 1.3; }
.gallery-card-copy p { margin: 8px 0 0; color: #728078; font-size: 14px; line-height: 1.6; }
.gallery-empty { padding: 64px 24px; border: 1px dashed #cfded5; border-radius: 22px; background: #f7faf8; text-align: center; }
.gallery-empty > span { color: #397a68; font-size: 28px; }
.gallery-empty h2 { margin: 12px 0 8px; color: #203d34; font-size: 22px; }
.gallery-empty p { margin: 0; color: #728078; }
.gallery-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 54px; padding: clamp(24px, 4vw, 38px); border-radius: 24px; background: #193a56; color: white; }
.gallery-cta > div > span { color: #b7d8c5; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.gallery-cta h2 { max-width: 610px; margin: 8px 0 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.gallery-cta a { flex: 0 0 auto; display: inline-flex; gap: 14px; align-items: center; padding: 14px 19px; border-radius: 99px; background: #43856c; color: #fff; font-weight: 750; text-decoration: none; }
.gallery-cta a:hover { background: #509778; color: #fff; }
@media (max-width: 700px) { .before-after-gallery { width: min(100% - 28px, 560px); padding-top: 38px; padding-bottom: 48px; } .gallery-intro { margin-bottom: 27px; } .gallery-grid { grid-template-columns: 1fr; gap: 16px; } .gallery-card { border-radius: 18px; } .gallery-card-copy { padding: 16px 17px 19px; } .gallery-card-copy h2 { font-size: 18px; } .gallery-cta { flex-direction: column; align-items: stretch; margin-top: 34px; border-radius: 18px; } .gallery-cta a { justify-content: center; } }
@media (max-width: 700px) { .gallery-lightbox { padding: 14px; } .gallery-lightbox-dialog > img { max-width: 96vw; max-height: 86vh; border-radius: 8px; } .gallery-lightbox-close { top: -12px; right: -7px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .gallery-card { transition: none; } }
