* {
  padding: 0px;
  margin: 0px;
  background-color: #fffbfb;
}

body{
    cursor: url(/iconos/11.webp), auto;
 }

 a, img {
    cursor: url(/iconos/12.webp), auto;
 }

 header {
  position: sticky;
  top: 0;
}

.loader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: url('/ovillo.gif') 50% 50% no-repeat rgb(254,222,222);
}

.principal{
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor {
    display: grid;
    justify-items: center;
    justify-content: center;
    width: 50%;
    margin: 0px auto;
    padding-top: 10px;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    grid-template-areas: "logo home work illus anim art about contact";  
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.logo {
  grid-area: logo;
  background: url(/iconos/sebastiangallegocopia.svg) no-repeat;
  width: 150px;
  height: 150px; 
}

.home {
    grid-area: home;
    background: url(/iconos/home.svg) no-repeat;
    width: 150px;
    height: 150px;
}

.work {
        grid-area: work;
        background: url(/iconos/work2.svg) no-repeat;
        width: 150px;
        height: 150px;
}


.illus {
    grid-area: illus;
    background: url(/iconos/illustrations.svg) no-repeat;
    width: 150px;
    height: 150px;
}


.anim {
    grid-area: anim;
    background: url(/iconos/animation.svg) no-repeat;
    width: 150px;
    height: 150px;
}


.art {
        grid-area: art;
        background: url(/iconos/art.svg) no-repeat;
        width: 150px;
        height: 150px;
}


.about {
    grid-area: about;
    background: url(/iconos/about.svg) no-repeat;
    width: 150px;
    height: 150px;
}

.contact {
  grid-area: contact;
  background: url(/iconos/contact.svg) no-repeat;
  width: 150px;
  height: 150px;
}
@media (min-width: 1000px) {

.home:hover {
  grid-area: home;
  background: url(/iconos/home2.svg) no-repeat;
}

  .illus:hover {
  grid-area: illus;
  background: url(/iconos/illustrations2.svg) no-repeat;
  width: 150px;
  height: 150px;
}

.anim:hover {
  grid-area: anim;
  background: url(/iconos/animation2.svg) no-repeat;
  width: 150px;
  height: 150px;
}

.art:hover {
  grid-area: art;
  background: url(/iconos/art2.svg) no-repeat;
  width: 150px;
  height: 150px;
}
.about:hover {
  grid-area: about;
  background: url(/iconos/about2.svg) no-repeat;
  width: 150px;
  height: 150px;
}

.contact:hover {
  grid-area: contact;
  background: url(/iconos/contact2.svg) no-repeat;
  width: 150px;
  height: 150px;
}

.work:hover {
grid-area: work;
background: url(/iconos/work.svg) no-repeat;
width: 150px;
height: 150px;
}

}

@media only screen and (max-width: 900px) {

  header {
    position:inherit ;
    top: 0;
  }
    .contenedor {
        top: 0;
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(7, auto);
        grid-template-areas: 
            "logo logo"
            "home home"
            "work work"
            "illus illus"
            "anim anim"
            "art art"
            "about about"
            "contact contact";
        gap: 0.7px;
    } 

    .logo {
      grid-area: logo;
      background: url(/iconos/sebastiangallegocopia.svg) no-repeat;
      transform: translate(0px, 0px);        
    }
    
    .home {
        grid-area: home;
        background: url(/iconos/home2.svg) no-repeat;
        transform: translate(0px, 0px);
    }
    
    
    .work {
            grid-area: work;
            background: url(/iconos/work.svg) no-repeat;
    }
    
    
    .illus {
        grid-area: illus;
        background: url(/iconos/illustrations2.svg) no-repeat;
        transform: translate(0px, 0px);
    }
    
    
    .anim {
        grid-area: anim;
        background: url(/iconos/animation2.svg) no-repeat;

        transform: translate(0px, 0px);
    }
    
    .art {
            grid-area: art;
            background: url(/iconos/art2.svg) no-repeat;
    }
    
    .about {
        grid-area: about;
        background: url(/iconos/about2.svg) no-repeat;
        transform: translate(0px, 0px);
    }

    .contact {
      grid-area: contact;
      background: url(/iconos/contact2.svg) no-repeat;
      transform: translate(0px, 0px);
  }
 }

.gallery{
    padding: 10px;
}

.imagen{
    width: 90%;
    height: 90%;

}

.prueba1{
    width: 100%;
    height: 100%;

}


.imagen img{
    width: 100%;
}
.galeria{
    max-width: 90%;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    justify-items: center;
}


#myImg {
    border-radius: 5px;
    transition: 0.3s;
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (Image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
  }
  
  /* Add Animation - Zoom in the Modal */
  .modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    padding-right: 8px;
    padding-left: 8px;
  }
  
  .close:hover,
  .close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    padding-right: 8px;
    padding-left: 8px;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }

.footer{
    width: 90%;
	margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
	grid-template-rows: repeat(1, auto);
    grid-template-areas: 
        "back";
    gap: 10px;
}


footer {
    color: blanchedalmond;
    padding: 20px
}

.back{
    grid-area: back;
}

.desarrollo{
    grid-area: desarrollo;
}

@media (min-width:100px){
    .galeria{
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (min-width:520px){
    .galeria{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width:728px){
    .galeria{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width:1024px){
    .galeria{
        grid-template-columns: repeat(3, 1fr);
    }
}


#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #000000; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
  }
  
  #myBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
  }

    .portada-work{
  border-radius: 8px;
}