/* gallery.css */
.hero {
    background: #ffffff;
    padding: 3rem 5%;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.hero h2 { color: var(--primary); font-size: 2.2rem; font-weight: 800; }
.hero h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}
.hero p { color: var(--text-muted); margin-top: 10px; font-size: 1rem; font-weight: 500; }

.container { max-width: 1200px; margin: 3rem auto; padding: 0 1.5rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.photo-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}
.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.05); }

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 60, 93, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.photo-card:hover .photo-overlay { opacity: 1; }

.view-btn {
    background: #ffffff;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- LIGHTBOX MODAL --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 42, 66, 0.98);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.modal-img {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.1);
}
.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    font-weight: 200;
    transition: 0.3s;
}
.close-modal:hover { color: var(--accent); transform: rotate(90deg); }

@media (max-width: 992px) {
    .hero h2 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}
