@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500&display=swap');
@font-face {
    font-family: Bold, Fat, Retro, Serif, Slab, Western, Wood Type, Woodcut;
    src: url(fuentes/ChunkFive-Regular.otf);
}

html{
    scroll-behavior: smooth;
    margin: 0;
    padding:0;
    overflow-x: hidden;
}


body::-webkit-scrollbar {
    display: none; 
}

body {
    background-image: linear-gradient(to bottom, #968990, #908b96, #888d99, #819099, #7e9294, #7e9294, #7e9294, #7e9294, #819099, #888d99, #908b96, #968990);

    margin: 0;
    overflow-x: hidden;
    color: rgba(237, 235, 218, 255);
}


header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    background: rgba(153, 153, 153, 0.116);
    box-shadow: 3px 3px  rgba(237, 235, 218, 255);
    padding: 0.625rem 1.875rem;
    font-size: clamp(0.8rem, 2.5vw, 2.188rem);
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    flex-grow: 1;
}

.navbar li {
    margin-left: 1rem;
}

.navbar ul li :hover{
    background-color: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
    border-radius: 10%;
}

.navbar a {
    text-decoration: none;
    color: rgba(237, 235, 218, 255);
    font-weight: bold;
    transition: color 0.2.8s;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-right: 2rem;
}


.navbar a:hover {
    background-color: rgba(255, 255, 255, 0);
    transform: scale(1.05);
    border-radius: 10%;
}
.navbar .logo a:hover {
    background-color: #ffffff00;
}

.nav-links {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-toggle {
    right: 0;
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: rgba(237, 235, 218, 255);
    cursor: pointer;
}
.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.288);
    transform: scale(1.05);
}

.logo img {
    width: clamp(9rem, 11vw, 20rem);
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
}


/* Gallery Styles */
.category-gallery {
    text-align: center;
    margin-top: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.gallery-item:hover .image-title {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content:hover {
    transform: scale(1.0);

}



.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    justify-content: center;
    margin-bottom: 200px;
    gap: 30px;
    margin-left: 20px;
    margin-right: 20px;
    
}


.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

.category-gallery h2 {
    color: rgba(237, 235, 218, 1);
    font-size: 4rem;
    margin:0;
    text-align: center;
    margin-bottom: 25px;

}

.gallery-section {
    margin-bottom: 40px;
}

.firtsc {
color: #007BFF;
}


.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: #ffffff; 
    background-color: rgba(0, 0, 0, 0.171); 
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transform: translateY(-50%); 
    transition: all 0.3s ease; 
    z-index: 100;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.241); 
    transform: translateY(-50%) scale(1.1); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.171); 
}


.prev:focus, .next:focus {
    outline: 2px solid #ffffff63; 
}
#lightbox img {
    transition: transform 0.3s ease;
    will-change: transform; 
}









@media (max-width: 768px) {
    .nav-links {
        right: 0;
        display: none; 
        flex-direction: column; 
        background: rgba(153, 153, 153, 0.466);
        position: absolute;
        top: 60px; 
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
        font-size: 30px;
    }

    .nav-links.show {
        display: flex; 
    }

    .menu-toggle {
        display: block; 
        position: absolute; 
        right: 20px; 
    }
    
    .gallery-container img {
        object-position: 0;
        width: 100%;
        height: auto;
    }
    
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        margin-left: 0;
        gap: 10px;
        margin-bottom: 150px;
        margin-left: 20px;
        margin-right: 20px;
    }
    .category-gallery h2{
        font-size: 40px;
        margin-bottom: 20px;
    }
}


@media (max-width: 375px) {
    .nav-links {
        right: 0;
        display: none; 
        flex-direction: column; 
        background: rgba(153, 153, 153, 0.466);
        position: absolute;
        top: 60px; 
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
        font-size: 30px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        margin-left: 10%;
        display: block; 
    }
    .gallery-container img {
        object-position: 0;
        width: 100%;
        height: auto;
    }
    
    .gallery-container {
        object-position: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        margin-left: 0;
        gap: 5px;
        margin-bottom: 50px;
        margin-left: 20px;
        margin-right: 20px;
    }
    .category-gallery h2{
        font-size: 40px;
        margin-bottom: 20px;
    }
}
@media (max-width: 320px) {
    .nav-links {
        right: 0;
        display: none; 
        flex-direction: column;
        background: rgba(153, 153, 153, 0.466);
        position: absolute;
        top: 60px; 
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
        font-size: 30px;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    .gallery-container img {
        object-position: 0;
        width: 100%;
        height: auto;
    }
    
    .gallery-container {
        object-position: 0;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        margin-left: 0;
        gap: 5px;
        margin-bottom: 50px;
        margin-left: 20px;
        margin-right: 20px;
    }
    .category-gallery h2{
        font-size: 40px;
        margin-bottom: 20px;
    }
}