.gallery{padding:2rem;max-width:1200px;margin:0 auto}.gallery h1{text-align:center;margin-bottom:2rem}.gallery-section+.gallery-section{margin-top:3rem}.gallery-section h2{margin:0 0 1rem;font-size:1.6rem;text-align:center}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;padding:1rem}.gallery-item{overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 4px 6px rgba(0,0,0,.1);transition:transform .3s ease,box-shadow .3s ease}.gallery-item figure{margin:0;display:flex;flex-direction:column;height:100%}.gallery-item .lightbox-trigger{display:block;min-height:0;position:relative;overflow:hidden}.gallery-item .lightbox-trigger::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(15,23,42,.3),rgba(15,23,42,0));opacity:0;transition:opacity .35s ease;pointer-events:none}.gallery-item:hover{transform:translateY(-5px);box-shadow:0 12px 24px rgba(0,0,0,.18)}.gallery-item .gallery-image{width:100%;height:260px;object-fit:cover;display:block;transform:scale(1);filter:saturate(1);transition:transform .45s ease,filter .45s ease}.gallery-item:focus-within .gallery-image,.gallery-item:hover .gallery-image{transform:scale(1.06);filter:saturate(1.08) contrast(1.03)}.gallery-item:focus-within .lightbox-trigger::after,.gallery-item:hover .lightbox-trigger::after{opacity:1}.gallery-item figcaption{background:#fff;color:#1f2937;padding:.9rem 1rem;border-top:1px solid #e5e7eb;transition:background-color .3s ease,border-color .3s ease}.gallery-item:focus-within figcaption,.gallery-item:hover figcaption{background:#f8fafc;border-top-color:#d1d9e6}.gallery-item h3{margin:0 0 .5rem 0;font-size:1.2rem;transition:color .3s ease}.gallery-item:focus-within h3,.gallery-item:hover h3{color:#0f4c81}.gallery-item p{margin:0;font-size:.9rem;line-height:1.4;color:#4b5563}@media (max-width:768px){.gallery-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.gallery-item .gallery-image{height:220px}}@media (max-width:480px){.gallery{padding:1rem}.gallery-grid{grid-template-columns:1fr}}