/* General Styles */
body {
    margin: 0;
    font-family: 'Noto Serif', serif;
    color: #333;
}

/* Header */
#header {
    background-image: url('./logo/casaFuera.jpeg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: rgb(0, 0, 0);
    padding: 1rem;
}

#imgHeader {
    height: 13rem;
    width: 13rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

#menuHeader {
    margin-top: 1rem;
}

#menuHeader h2 {
    margin: 0.5rem 0;
}

/* Navigation */
nav {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    color: white;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

/* Content */
#contenido {
    padding: 2rem;
}

.section {
    margin-bottom: 2rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat( 4, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
}

.lightbox:target {
    display: flex;
}

/* Info Section */
.info {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    #header {
        height: auto;
        padding: 2rem 1rem;
    }
    #menuHeader{
        background-color: rgba(255, 255, 255, 0.5);
        width: 100%;
    }

    nav a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    #imgHeader {
        height: 10rem;
        width: 10rem;
    }

    nav a {
        font-size: 0.8rem;
    }
}
