@charset "UTF-8";

body {
    background-color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

header {

}

#logo-header {
    opacity: 100%;
}

main {
    flex: 1;
}

#section-main-obras {
    width: 100vw;
    height: 100vh;
    overflow-y: hidden;
}







.container-info-obras {
      position: relative;
      height: 100vh;
      overflow: hidden;
    }

    .banner-main-obras {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 125%; /* maior para efeito de subida */
      background-image: url('../img/obras/emilio/banner-emilio.jpg');
      background-size: cover;
      background-position: center;
      filter: brightness(0.5);
      z-index: 0;
      transform: translateY(0);
      transition: transform 0.2s ease-out;
    }

    .box-infos-obras {
      position: relative;
      z-index: 1;
      color: white;
      padding: 20px;
      font-size: 2em;
      max-width: 700px;
      margin-top: 25%;
      margin-left: 9%;
    }

    .box-infos-obras h1 {
        margin-bottom: 20px;
    }

    .box-infos-obras p {
        font-size: 18px;
        max-width: 700px;
        margin-bottom: 20px;
    }


.tittle-obras {
    max-width: 1200px;
    margin: 0px auto;
    margin-bottom: 15px;
    font-size: clamp(20px, 3vw, 40px);
}


/*content*/


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
    margin-top: 100px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

}

        .card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: transform 0.2s;
            height: 250px;
            background-position: center;
            background-size: cover;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

            .card p {
                color: white;
                font-size: clamp(40px, 3vw, 70vw);
                font-family: "Bebas Neue", sans-serif;
                margin: 0px 15px;
            }

            #card-mekra {
                background-image: url(../img/obras/mekra/banner-mekra-lang.jpg);
            }

            #card-emilio {
                background-image: url(../img/obras/emilio/banner-emilio.jpg);
            }


        .card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: inherit;
            background-size: cover;
            background-position: center;
            filter: brightness(1);
            transition: filter 0.4s ease;
            z-index: -1;
        }

        .card:hover {
            transform: scale(1.02);
        }

        .card:hover::before {
            filter: brightness(50%);
        }

        .card img {
            width: 30%;
            height: 180px;
            object-fit: cover;
        }


        .card-body {
            padding: 16px;
        }

            .content-card-body {
                width: 100px;
                height: 100px;
                border: 1px solid black;
            }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: white;
            padding: 24px;
            border-radius: 10px;
            width: 90%;
            max-width: 1000px;
            max-height: 97vh;
            position: relative;
        }

        .modal-content h2 {
            margin-bottom: 15px;
            margin: 0px 5%;
        }

        #modal-desc {
            margin: 0px 5%;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 16px;
            font-size: 24px;
            background: none;
            border: none;
            cursor: pointer;
            color: gray;
        }

        .modal-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 16px 0;
        }

        .modal-images img {
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
            height: 120px;
        }

        .modal-buttons a {
            display: inline-block;
            margin-right: 12px;
            padding: 10px 14px;
            text-decoration: none;
            border-radius: 6px;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: #2563eb;
            color: white;
        }

        .btn-secondary {
            background: #e5e7eb;
            color: #111;
        }


footer {
    bottom: 0;
}




.gallery {
    max-width: 1000px;
    width: 90%;
    margin: 0px auto;
    margin-top: 30px;
}

.main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: 0.3s ease-in-out;
}

.thumbnails {
    display: flex;
    gap: 0.5rem;
    min-height: 50px;
    padding: 10px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #000000;
    transform: scale(1.05);
}