
/* ============================ CSS Para vista de Portafolio ============================= */

.sites-portfolio{

    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-column-gap: 10px;
    grid-row-gap: 20px;
       
    margin: auto;
    margin-top: 10vh;
    margin-bottom: 1vh;
    padding: 15px;

    justify-items: center;
    width: 900px;
    height: auto;
    align-items: center;

    background-color:rgb(255, 255, 255);
}

.sites-portfolio-box{
    position: relative;

    padding: 2vh;
    border: solid 1px rgb(185, 180, 180); 
    border-radius: 15px;

    height: 281px;
    width: 280px;
    text-align: left;


    color: black;
}

.sites-portfolio-box:hover{
    transform: scale(1.02);
    border: solid 2px rgb(194, 186, 186); 
    cursor: pointer;
}


.sites-portfolio-img{
    object-fit:fill; 
    border: solid 1px;
    width:100%;
    height:100%;  
    margin-bottom: 5%;

}

div > img.site_screenshot {
    height: 140px;
    border: solid 2px rgb(201, 198, 198);
    border-radius: 15px;
    margin-bottom: 4px;
}

.site-title{
    font-size: 12px;

    font-weight: bold;

    margin-bottom: 5%;

    width: fit-content;

    font-family: Gill Sans, sans-serif ;

    color: black;
}

p.site-desc{
    font-size: small;
    font-weight: 500;
    margin-bottom: 3%;

    overflow: overlay;
    text-overflow: ellipsis;
    height: 63px;
}


.sites-empty-field{
    color:red;
    font-weight:bold
}


/* ============================ CSS Para Carrousel ============================= */


.swiper{
    width: 100%;
    height: 350px;


    justify-content: center;

    margin-top: 1vh;
    margin-bottom: 1vh;

    border: solid 1px #ded8d8;
    border-radius: 10px;
  }

.swiper-wrapper {
    padding-top: 65px;
}

.carrousel-box{
    display: grid;
    justify-content: center;
    align-items: center;
}

.carrousel-box:hover{
    transform: scale(1.05);
}

.carrousel-title{
    font-weight: bold;
    text-align: center;
    font-size: 13px;
}

div > img.carrousel-image{
    max-width: 100%;
    height: 140px;
    border: solid 2px rgb(188, 179, 179);
    border-radius: 3px;
    align-items: center;
    align-content: center;
    cursor: pointer;

}

.carrousel-description {
    padding-top: 2px;
    margin-top: 10px;
    text-align: justify;
    justify-content: center;
    font-weight: 600;
    background-color: #edebeb;
    display: flex;
}

.carrousel-site-link {
    color:rgb(47, 67, 112);
    text-decoration:none;
}

/* ============================ CSS Para Modal ============================= */

.modal-container{
    opacity: 2;
    background-color: rgb(0, 0 , 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    z-index: 2000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-main-box{

    width: 100%;
    height: 65%;
    display: flex;
    justify-content: center;

    border: solid 1px black;
    border-radius: 15px;
    margin: auto;

}

div > .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: black;
    margin: 0;
    border: 0;
    padding: 0;
    background: #ccd1d8;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 150ms;

}

.dot {
    height: 30px;
    width: 30px;
    background-color: #bbb;
    border: solid 2px #9c9696;
    border-radius: 50%;
    display: inline-block;
    position: inherit;
    font-weight: bold;
    text-align: center;
}

.dot:hover{
    cursor: pointer;
    transform: scale(1.1);
}

.modal-img-elem {
    border: solid 1px black;
    border-radius: 10px;

}

.barra-transparente {
    width: 45%;
    height: 125px;
    border-radius: 15px;
    opacity: 0.9;
    background-color: rgb(0, 0 , 0.5);
    border: solid 1px white;
    position: absolute;
    bottom: 127px;

}

.sub-barra-transparente {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
    grid-row-gap: 5px;
}

.elemento-barra-modal {
    height: 30px;
    margin-left: 10px;
}

div#elem-bar-modal1{
    grid-column: 1;
    grid-row: 1;
}

#modal-site-title {
    color: aqua;
    margin-left: 10px;
    font-size: 18px;
    text-align: left;
}

div#modal-div-fecha-creacion{
    grid-column: 1;
    grid-row: 1;
}

div#modal-div-url{
    grid-column: 1;
    grid-row: 2;
}

div#modal-div-desc{
    grid-column: 2;
    grid-row: 1;
    padding-right: 15px;
}

.modal-subtitle{
    color: white;
    font-size: medium;
    font-weight: bold;
    width: fit-content;
}

.modal-data-text {
    font-weight: lighter;
    font-size:small;
    text-align: justify;

    overflow: overlay;
    white-space:nowrap ;
}

#modal-description-text {
    height: 50px;
}

#link-al-sitio {
    color: aqua;
}

.show-more {
    font-size:large;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    background-color: rgb(73, 168, 232);
    width: fit-content;
    color: white;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;

    border: solid 2px rgb(73, 168, 232);
    border-radius: 5px;
}

.show-more:hover{
    transform: scale(1.05);
    cursor: pointer;
}


/* ========================================================================================= */

/* Estilos responsive (Aplicados a dispotivios celulares) */



/* Estos estilos se aplican cuando max-widht ES IGUAL O MENOR a 926 */
@media only screen and (max-width: 950px) {

    .sites-portfolio{
        grid-template-columns: 50% 50%;
        width: 640px;
        grid-column-gap: 0px ;
    }

    div > .barra-transparente {

        width: 55%;
        height: 145px;

        bottom: 213px;
    }

    .sub-barra-transparente {
        grid-row-gap : 15px;
    }

}


/* Estilos aplicados para pantallas en horizontal y con ancho maximo MENOR O IGUAL a 926px */
@media only screen and (orientation: landscape) and (max-width: 926px) {

    div > .barra-transparente {
        width: 60%;
        height: 145px;
        bottom: 80px;
    }

    .sub-barra-transparente {
        grid-row-gap : 15px;
    }

    .sites-portfolio {
        grid-template-columns: 50% 50%;
        width: 640px;
        grid-column-gap: 0px ;
    }
}

/* Estos estilos se aplican cuando max-widht ES IGUAL O MENOR a 600px */
@media only screen and (max-width: 650px) {

    div.sites-portfolio {
        width: 305px;
    }


    .modal-main-box {
        width: 95%;
        height: 746px;
    }

    div > .modal-img-elem {
        border: solid 1px black;
        border-radius: 10px;

        width: 100%;
        height: 74%;
    }
 
    div > .modal-close {
        position: absolute;
        z-index: 2001;
    }

    div > .barra-transparente {
        width: 85%;
        height: 35%;

        position: absolute;
        top: 45%;
    }

    .elemento-barra-modal {
        height: 60px;
        margin-bottom: 15px;
    }

    .modal-data-text {
        width: 130px;
        height: 25px;
        white-space: normal;
    }

    #link-al-sitio {
        display: inline-block;
        width: 130px;
    }

    #modal-description-text {
        height: 75px;
    }

    div > .sites-portfolio{
        display:flex;
        flex-direction: column;
        width: 340px;
        height: auto;
        justify-items: center;
    }

    .sites-portfolio-box {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .swiper{
        display: grid;
        grid-template-columns: 100%;

        width: 100%;
    }

    .swiper-wrapper {
        grid-column: 1;
    }

    div.swiper-wrapper > div.swiper-slide {
        height: 200px;
        margin-bottom: 20px;
    }


}


/* Estos estilos se aplican cuando max-widht ES IGUAL O MENOR a 500px */
@media only screen and (max-width: 500px) {

    div > .barra-transparente {
        height: 20%;
    }

    div > .sub-barra-transparente {
        grid-row-gap:unset;
    }

}

/* Estos estilos se aplican cuando max-widht ES IGUAL O MENOR a 400px */
@media only screen and (max-width: 400px) {
    div > .barra-transparente {
        height: 25%;
    }

    div > .sub-barra-transparente {
        grid-row-gap: 10px;
    }
}




  
