/* Old Photo Restoration aggregate page — loaded after style.css and home-trust.css */

/* Gallery: 15 before/after cases — masonry waterfall (reference style only) */
.restore-gallery{background:var(--surface-2)}
.restore-grid{column-count:3;column-gap:20px}
.restore-grid .story{background:var(--white);border:1px solid var(--line);border-radius:10px;overflow:hidden;display:inline-block;width:100%;margin:0 0 20px;break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid}
.restore-grid .story .compare{aspect-ratio:1/1}
.restore-grid .story .compare img{width:100%;height:100%;object-fit:cover}
/* Vary displayed image height to create the waterfall stagger — content unchanged */
.restore-grid .story:nth-child(6n+1) .compare{aspect-ratio:1/1.2}
.restore-grid .story:nth-child(6n+2) .compare{aspect-ratio:1/0.9}
.restore-grid .story:nth-child(6n+3) .compare{aspect-ratio:1/1.32}
.restore-grid .story:nth-child(6n+4) .compare{aspect-ratio:1/1}
.restore-grid .story:nth-child(6n+5) .compare{aspect-ratio:1/1.12}
.restore-grid .story:nth-child(6n+6) .compare{aspect-ratio:1/0.86}

/* Old-only cards: blurred original photo, no slider */
.restore-grid .story-blur .blur-photo{position:relative;aspect-ratio:1/1;overflow:hidden;background:#000}
.restore-grid .story-blur .blur-photo img{width:100%;height:100%;object-fit:cover;filter:blur(3px) grayscale(.3) contrast(.82) brightness(1.06)}
.restore-grid .story-blur .blur-tag{position:absolute;top:14px;left:14px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding:5px 12px;border-radius:99px;pointer-events:none}
/* Same stagger for old-only cards */
.restore-grid .story:nth-child(6n+1) .blur-photo{aspect-ratio:1/1.2}
.restore-grid .story:nth-child(6n+2) .blur-photo{aspect-ratio:1/0.9}
.restore-grid .story:nth-child(6n+3) .blur-photo{aspect-ratio:1/1.32}
.restore-grid .story:nth-child(6n+4) .blur-photo{aspect-ratio:1/1}
.restore-grid .story:nth-child(6n+5) .blur-photo{aspect-ratio:1/1.12}
.restore-grid .story:nth-child(6n+6) .blur-photo{aspect-ratio:1/0.86}
.restore-grid .story-body{padding:18px 20px 22px;flex:1}
.restore-grid .story-meta{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:700;margin-bottom:8px}
.restore-grid .story-body h3{font-size:17px;line-height:1.35;font-weight:700;margin:0 0 8px}
.restore-grid .story-body p{font-size:14px;color:var(--ink-soft);line-height:1.65;margin:0}

/* Original-safety notice + conversion hook, directly after the gallery */
.restore-safety{display:flex;align-items:center;gap:20px;background:var(--white);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:22px 24px;margin-top:44px}
.restore-safety .rs-icon{width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:#f3e9dc;color:var(--accent);display:flex;align-items:center;justify-content:center}
.restore-safety .rs-icon svg{width:24px;height:24px}
.restore-safety .rs-copy{flex:1}
.restore-safety .rs-copy b{display:block;font-size:16px;margin-bottom:5px}
.restore-safety .rs-copy p{margin:0;font-size:14px;color:var(--ink-soft);line-height:1.7}
.restore-safety .btn{flex:0 0 auto;white-space:nowrap}

.restore-gallery-cta{text-align:center;background:var(--ink);color:#fff;border-radius:12px;padding:34px 30px;margin-top:26px}
.restore-gallery-cta .gcta-title{font-family:var(--font-title);font-size:clamp(22px,2.4vw,30px);line-height:1.25;margin-bottom:10px;color:#fff}
.restore-gallery-cta p{color:#cfcbc2;font-size:15px;line-height:1.65;max-width:620px;margin:0 auto 20px}
.restore-gallery-cta .micro{display:block;margin-top:13px;font-size:12.5px;color:#b9b5ac}

.restore-inline-hook{margin-top:26px;text-align:center;font-size:15px;color:var(--ink-soft)}
.restore-inline-hook a{color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}

@media(max-width:980px){
  .restore-grid{column-count:2}
  .restore-safety{flex-wrap:wrap}
  .restore-safety .btn{width:100%}
}
@media(max-width:640px){
  .restore-grid{column-count:1}
}
