body,
html {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bell MT", Sans-serif;
    font-size: 20px;
    height: auto !important;
}

@media (min-width: 700px) and (orientation: landscape) {
    .FiltroABC {
        display: flex;
        width: 70vw;
        height: auto;
        justify-content: space-evenly;
    }

    .ABC {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 2.5vw;
        height: 2.5vw;
        /* background-color: rgb(1, 255, 255); */
        border-radius: 10px 10px 10px 0px / 10px 10px 10px 0px;
        transition: background-color 0.5s;
        cursor: pointer;
        background-color: #d3d3d3;
    }

    .ABC p {
        position: absolute;
        /* Adiciona esta linha */
        top: 50%;
        /* Adiciona esta linha */
        left: 50%;
        /* Adiciona esta linha */
        transform: translate(-50%, -50%);
        /* Adiciona esta linha */
    }

    .ABC:hover {
        background-color: rgb(230, 230, 230);
    }

    /* Estilo do Grid de Obras */
    .retornoFiltro {
        width: 70vw;
        display: grid;
        /* Mudança para Grid para melhor alinhamento */
        grid-template-columns: repeat(auto-fill, 12vw);
        gap: 15px;
        justify-content: center;
        border-radius: 8px;
        -webkit-box-shadow: 5px 5px 9px 1px rgba(0, 0, 0, 0.42);
        box-shadow: 5px 5px 9px 1px rgba(0, 0, 0, 0.42);
        margin: 5vh auto;
        padding: 20px;
    }

    /* O container pai mantém o espaço no grid */
    .obraContainer {
        position: relative;
        width: 12vw;
        height: 12vw;
        /* Formato Quadrado inicial */
    }

    /* O wrapper que realmente expande */
    .obraContentWrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        border-radius: 10px;
        transition: all 0.3s ease-in-out;
        z-index: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Efeito de Hover */
    .obraContainer:hover .obraContentWrapper {
        height: auto;
        /* Expande para mostrar tudo */
        min-height: 18vw;
        z-index: 100;
        /* Fica acima das outras obras */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        transform: scale(1.05);
        /* Leve zoom para destaque */
    }

    .imgReturn {
        width: 100%;
        height: 12vw;
        /* Começa ocupando apenas o quadrado */
        object-fit: cover;
        transition: height 0.3s ease;
    }

    .obraContainer:hover .imgReturn {
        height: 17vw;
        /* A imagem cresce um pouco no hover */
    }

    .obraContainer.not:hover .imgReturn {
        height: 12vw;
        /* A imagem cresce um pouco no hover */
    }

    .tituloObra {
        padding: 10px;
        font-size: 0.9vw;
        color: #333;
        margin: 0;
        opacity: 0;
        /* Escondido inicialmente */
        transition: opacity 0.3s ease;
        word-wrap: break-word;
    }

    .obraContainer:hover .tituloObra {
        opacity: 1;
        /* Mostra o título apenas no hover */
    }
}

@media (max-width: 700px) and (orientation: portrait) {
    .FiltroABC {
        position: relative;
        display: flex;
        width: 90vw;
        height: auto;
        flex-wrap: wrap;
    }

    .ABC {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 13vw;
        height: 13vw;
        margin: 2.16% 0 0 2.16%;
        /* background-color: rgb(1, 255, 255); */
        border-radius: 5px 5px 5px 0px / 5px 5px 5px 0px;
        transition: background-color 0.5s;
        cursor: pointer;
        background-color: #d3d3d3;
    }

    .ABC p {
        position: absolute;
        /* Adiciona esta linha */
        top: 50%;
        /* Adiciona esta linha */
        left: 50%;
        /* Adiciona esta linha */
        transform: translate(-50%, -50%);
        /* Adiciona esta linha */
    }

    .ABC:hover {
        background-color: rgb(230, 230, 230);
    }

    .obraContainer {
        display: inline-block;
        width: 40vw !important;
        height: 72vw !important;
        border-Radius: 10px !important;
        object-fit: cover !important;
        margin: 34px 0;
    }

    .tituloObra {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        font-size: 17px;
        /* Ajuste o tamanho conforme necessário */
        color: #333;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }

    .imgReturn {
        width: 40vw !important;
        height: 72vw !important;
        border-Radius: 10px !important;
        object-fit: cover !important;
    }

    .imgReturn:hover {
        cursor: pointer;
        filter: brightness(0.85);
    }

    .retornoFiltro {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        align-items: center;
        width: 90vw;
        min-height: 60vh;
        border-radius: 15px;
        box-shadow: 0 0 1vw rgb(32, 32, 32, 0.2);
        margin: 0 auto;
        margin-top: 5vh;
    }
}