* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: #172033; font-family: 'DM Sans', sans-serif; }
.gallery-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 90px; }
.gallery-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: #1674b8; font-size: 12px; font-weight: 700; letter-spacing: 2.6px; }
h1 { margin: 0 0 14px; font-family: 'Manrope', sans-serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -1.8px; }
.gallery-heading p { margin: 0; color: #687386; font-size: 16px; line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-card { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; background: #dce4ed; box-shadow: 0 8px 24px rgba(23, 32, 51, .08); cursor: zoom-in; }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.photo-card:hover img { transform: scale(1.045); }
.photo-card figcaption { position: absolute; inset: auto 0 0; padding: 34px 18px 17px; color: #fff; font-size: 15px; font-weight: 700; background: linear-gradient(transparent, rgba(7, 18, 35, .78)); pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 64px 24px 28px; background: rgba(5, 10, 20, .94); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-image { display: block; max-width: min(1100px, 92vw); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 70px rgba(0, 0, 0, .45); }
.lightbox-caption { margin: 0; color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.lightbox-close { position: absolute; top: 15px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }
body.lightbox-active { overflow: hidden; }
@media (max-width: 800px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .gallery-page { padding-top: 55px; } }
@media (max-width: 520px) { .gallery-page { width: min(100% - 28px, 440px); padding: 42px 0 60px; } .photo-grid { grid-template-columns: 1fr; gap: 16px; } .photo-card { aspect-ratio: 4 / 3; } .gallery-heading p { font-size: 14px; } .lightbox { padding: 60px 12px 22px; } .lightbox-image { max-width: 96vw; max-height: 76vh; } .lightbox-close { top: 10px; right: 12px; } }
