@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    padding-top: 95px;
    font-family: "Urbanist", sans-serif;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 95px;
    background: rgb(233, 233, 233);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;

}

nav {
    width: 100%;
    max-width: 750px;
    height: 100%;
    max-height: 60px;
    background: rgb(23, 23, 23);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 55px;
    animation: glow 3s linear infinite;
}

nav a {
    text-decoration: none;
    font-family: "Urbanist";
    color: rgb(243, 243, 243);
    font-size: clamp(0.7rem, 1vw + 0.1rem, 1.2rem);
    transition: 0.3s;
}

nav a:hover {
    width: 100%;
    max-width: 140px;
    height: 100%;
    max-height: 40px;
    border-radius: 30px;
    background: rgb(243, 243, 243);
    color: rgb(23, 23, 23);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.section-onne {
    width: 100%;
    height: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}


.img-logo {
    max-width: 135px;
    height: 90%;
    width: 100%;
    display: block;
}


.txt-galeria h1 {
    width: 100%;
    max-width: 800px;
    font-weight: 300;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin: 0 auto;
    text-align: center;
    color: #171717;
    padding: 10px;
}

.txt-galeria b {
    font-weight: 700;
}


.section-galeria {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: clamp(20px, 5vw, 60px);
}


.galeria-foto,
.galeria-video {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 90%;
    margin: 50px auto;
}

.galeria-video {
    display: none;
}

.galeria-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.galeria-empty[hidden] {
    display: none !important;
}


.galeria-foto img,
.galeria-video img,
.galeria-foto video,
.galeria-video video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.3s;
    cursor: pointer;
}

.galeria-foto img.show,
.galeria-video img.show,
.galeria-foto video.show,
.galeria-video video.show {
    animation: fadeIn 1.2s ease forwards;
}


.galeria-foto img:hover,
.galeria-video img:hover,
.galeria-foto video:hover,
.galeria-video video:hover {
    transform: scale(1.05);
}


.button-container {
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.btn-galeria-foto,
.btn-galeria-video {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(90px, 20vw, 120px);
    height: clamp(40px, 6vh, 55px);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    border: none;
    background: #8d888f;
    color: #171717;
    cursor: pointer;
    transition: all 0.3s ease;
}


.btn-galeria-foto:hover,
.btn-galeria-video:hover {
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal img,
.modal video {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

@media (max-width: 450px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 95px;
        background: rgb(233, 233, 233);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100;

    }

    nav {
        width: 100%;
        max-width: 750px;
        height: 100%;
        max-height: 60px;
        background: rgb(23, 23, 23);
        border-radius: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        animation: glow 3s linear infinite;
    }

    nav a {
        text-decoration: none;
        font-family: "Urbanist";
        color: rgb(243, 243, 243);
        font-size: clamp(0.7rem, 1vw + 0.1rem, 1.2rem);
        transition: 0.5s;
    }

    nav a:hover {
        width: 100%;
        max-width: 100px;
        height: 100%;
        max-height: 40px;
        border-radius: 30px;
        background: rgb(243, 243, 243);
        color: rgb(23, 23, 23);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .img-logo {
        display: none;
    }

    .galeria-foto,
    .galeria-video {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 30px auto;
        gap: 12px;
    }

    .galeria-foto img,
    .galeria-video img,
    .galeria-foto video,
    .galeria-video video {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }
}