/* -------------------PROJETO FECHADO---------------------- */
#organizer-galeria-ilustracoes{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    overflow: auto;
    padding: 0px 0px 0px 0px;
    margin: 0px auto 50px auto;
    grid-gap: 0px;
    max-width: 2000px;
    /*OLD
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    grid-auto-rows: 280px;
    grid-gap: 20px;
    max-width: 1200px; */
}

#organizer-galeria-ilustracoes>div{
    z-index: 1;
    position: relative;
    padding: 0;
    overflow: hidden;

    display: flex;
    align-items: center;
    /* justify-content: VEM DE CADA IMAGEM;*/
}

.thumb-image-centered{
    justify-content: center;
}

.thumb-image-left{
    justify-content: flex-start;
}

.thumb-image-right{
    justify-content: flex-end;
}

.thumbprojeto-nomeandview{
    width: 100%;
    position: absolute;
    height: 100%;
    z-index: 2;  
    opacity: 0;
    transition: 0.5s ease-in-out;
    background-color: #d7deecab;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nome{
    font-size: 2.4rem;
    text-wrap: balance;
    text-transform: uppercase;
    font-family: "Afacad Flux", sans-serif;
    font-weight: 400;
    line-height: 1;
    hyphens: none;
    padding: 0px 20px;
    color: #681d11;
    text-align: center;
}

.view{
    font-size: 1.45rem;
    letter-spacing: 2px;
    font-family: system-ui, sans-serif;
    font-variant: all-petite-caps;
    font-weight: 300;
    line-height: 1;
    padding: 10px 20px;
    color: #681d11;
}

.thumbprojeto-nomeandview:hover{
    opacity: 1;
    cursor: pointer;
}

.small {
    grid-row: span 1;
    grid-column: span 1;
}

.horizontal {
    grid-column: span 2;
}

.vertical {
    grid-row: span 2;
}

.big {
    grid-row: span 2;
    grid-column: span 2;
}

/* -------------------PROJETO ABERTO---------------------- */
.snackbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    z-index: 9;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#container-top-buttons-snackbarproj{
    width: 100%;
    display: inline-flex;
    justify-content: flex-end;
    height: 50px;
    position: absolute;
    align-items: center;
    /* z-index: 25; */
}

.buttonLojaProject{
    padding: 10px 5px 10px 10px;
}

.buythistext{
    margin-bottom: 50px;
}

.buttonCloseProject{
    padding: 10px 10px 10px 5px;
}

.buttonCloseProject,.buttonLojaProject{
    z-index: 25;
    user-select: none;
}

.mix-blend-hard-light{
    mix-blend-mode: hard-light !important;
}

.container-buy-this{
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
}

.container-buy-this:hover,.buttonCloseProject:hover,.buttonLojaProject:hover{
    cursor: pointer;
}

.container-buy-this:hover>.buythistext, .buttonCloseProject:hover,.buttonLojaProject:hover{
    mix-blend-mode: hard-light;
    transform: rotate(4deg);
    perspective: 0;
}

/* Caso especial por conta da scrollbar (ficava coberta por conta do rotate) */
    #container-next-button-gallery-ilustracoes:hover, #container-prev-button-gallery-ilustracoes:hover{
        cursor: pointer;
    }

    #container-next-button-gallery-ilustracoes:hover > #next-button-gallery-ilustracoes img,
    #container-prev-button-gallery-ilustracoes:hover > #prev-button-gallery-ilustracoes img{  
        mix-blend-mode: hard-light;
        transform: rotate(4deg);
        perspective: 0;
    }

.snackbar span{
    line-height: normal !important;
}

#container-openProject{
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    transform-origin: center;
    margin-bottom: 50px;
    width: 1600px;
}

#container-openProject-and-arrows{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

#openProject {  
    display: flex;
    max-width: 100dvw;
    height: calc(100dvh);
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    align-items: center;
}

#openProject img{
    max-height: calc(100dvh);
    max-width: 100%;
}

#container-prev-button-gallery-ilustracoes,#container-next-button-gallery-ilustracoes{
    height: calc(100dvh);
    user-select: none;
}

#prev-button-gallery-ilustracoes,#next-button-gallery-ilustracoes{
    height: 100%;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iframecontainer{
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

.iframecontainer iframe{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 17px);
    border: none;
}

.imagesSideBySide{
    display: flex;
    flex-direction: row;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.imagesSideBySide img{
    max-width: calc(50% - 20px);
}

.title{
    font-size: 2.2rem;
    max-width: 700px;
    text-wrap: balance;
}

.topictitle{
    font-size: 2rem;
    max-width: 700px;
    text-wrap: balance; 
    font-weight: 500;
    font-style: italic;
}

.container-text-inside-proj-left{
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.container-text-inside-proj-right{
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.container-text-inside-proj-center{
    width: 100%;
    display: flex;
    justify-content: center;
}

.normaltext{
    max-width: 80%;
    width: 700px;
    hyphens: none;
}

.centeredtext{
    max-width: 80%;
    width: 700px;
    text-align: center;
    hyphens: none;
}

#first-image{
    height: 100dvh;
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100dvh;
    width: 100%;
    justify-content: center;
}

#container-encaminhando-ao-contato{
    display: flex;
    justify-content: center;
}
.encaminhandoAoContato{
    margin-bottom: 100px;
    max-width: 700px;
    text-align: center;
    padding: 0px 10px;
    hyphens: none;
}

/* Position */
.leftposition ~ #organizer-galeria-ilustracoes>div{
    justify-content: flex-start;
 }

 .rightposition ~ #organizer-galeria-ilustracoes>div{
    justify-content: flex-end;
 }

 .centerposition ~ #organizer-galeria-ilustracoes>div{
    justify-content: center;
 }

/* -------------------CORREÇÕES DE MEDIA SCREEN---------------------- */
@media screen and (max-width: 1499px) and (min-width: 1464px) {
    #organizer-galeria-ilustracoes{
        grid-template-columns: repeat(auto-fit, minmax(243px, 1fr));
    }
}

@media screen and (max-width: 1249px) and (min-width: 1200px) {
    #organizer-galeria-ilustracoes{
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media screen and (max-width: 1199px) and (min-width: 1171px) {
    #organizer-galeria-ilustracoes{
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    }
}

@media screen and (max-width: 1000px) and (min-width: 867px) {
    #organizer-galeria-ilustracoes{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 866px){
    #organizer-galeria-ilustracoes{
        grid-template-columns: 1fr 1fr;
        max-width: 585px
    }
}

@media screen and (max-width: 1025px){
    #container-prev-button-gallery-ilustracoes, #container-next-button-gallery-ilustracoes{
        position: absolute;
        height: 50px;
        bottom: 0;
        display: flex;
        padding: 0px 25dvw;
    }
    #container-next-button-gallery-ilustracoes{
        right: 0;
    }
    #container-prev-button-gallery-ilustracoes{
        left: 0;
    }
    #prev-button-gallery-ilustracoes,#next-button-gallery-ilustracoes{
        width: 0;
    }
    #openProject {  
        height: calc(100dvh - 100px);
    }
    #openProject img{
        max-height: calc(100dvh - 100px);
    }
    #container-top-buttons-snackbarproj{
        position: relative;
    }
}

