Gallery

.awdfa-gallery-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 15px 70px; } .awdfa-gallery-header { text-align: center; margin-bottom: 45px; } .awdfa-gallery-header .awdfa-sub-badge { display: inline-block; padding: 6px 16px; background: rgba(30, 86, 49, 0.1); color: #1e5631; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; border-radius: 20px; margin-bottom: 12px; } .awdfa-gallery-header h2 { font-size: 36px; font-weight: 800; color: #111; margin: 0 0 12px; } .awdfa-gallery-header p { font-size: 16px; color: #555; max-width: 650px; margin: 0 auto; line-height: 1.6; } .awdfa-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; } .awdfa-gal-item { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); background: #000; position: relative; aspect-ratio: 4 / 3; } .awdfa-gal-thumb { width: 100%; height: 100%; position: relative; cursor: pointer; } .awdfa-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; } .awdfa-gal-item:hover img { transform: scale(1.08); } .awdfa-gal-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); opacity: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; transition: opacity 0.3s ease; } .awdfa-gal-item:hover .awdfa-gal-overlay { opacity: 1; } .awdfa-gal-badge { align-self: flex-start; padding: 4px 10px; background: #ffd700; color: #000; font-size: 11px; font-weight: 700; border-radius: 12px; margin-bottom: 8px; text-transform: uppercase; } .awdfa-gal-title { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; } .awdfa-zoom-icon { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; } .awdfa-lightbox { display: none; position: fixed; z-index: 99999; inset: 0; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; padding: 20px; } .awdfa-lightbox.active { display: flex; } .awdfa-lightbox-content { max-width: 900px; max-height: 90vh; position: relative; display: flex; flex-direction: column; align-items: center; } .awdfa-lightbox-content img { max-width: 100%; max-height: 75vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); } .awdfa-lightbox-caption { color: #fff; font-size: 16px; font-weight: 600; margin-top: 15px; text-align: center; } .awdfa-close-btn { position: absolute; top: -40px; right: 0; color: #fff; font-size: 32px; cursor: pointer; } @media (max-width: 768px) { .awdfa-gallery-grid { grid-template-columns: 1fr; } .awdfa-gal-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); } } function openLightbox(url, title) { const lb = document.getElementById('awdfaLightbox'); document.getElementById('lightboxImg').src = url; document.getElementById('lightboxCaption').innerText = title; lb.classList.add('active'); } function closeLightbox(e) { if (!e || e.target.id === 'awdfaLightbox' || e.target.classList.contains('awdfa-close-btn')) { document.getElementById('awdfaLightbox').classList.remove('active'); } }