body {
    width: 90%;
    max-width: 900px;
    margin: 2em auto;
    font:
      0.9em/1.2 Arial,
      Helvetica,
      sans-serif;
  }
  .container {
    display: grid;
    grid-template-columns:repeat(3,1fr);
    grid-template-rows: repeat(4,300px);
    /* grid-auto-rows: minmax(100px, 1fr); */
    gap: 10px;
    padding-top: 40px;
    position: relative;
    margin-bottom: 100px;
    margin-top: 20px;
 
    /* grid-template-areas:
    "cabecera cabecera cabecera" 
    "principal principal lateral" 
    "cierre cierre cierre" */
  }
  .container:nth-child(2){
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    grid-template-rows: repeat(4, 200px);
    /* grid-auto-rows: minmax(100px, 1fr); */
    gap: 10px;
    padding-top: 40px;
    position: relative;
    margin-bottom: 100px;
    margin-top: 20px;
    grid-template-areas:
    "uno uno uno" 
    "dos tres tres" 
    "dos cuatro cinco"
    "seis seis siete"
    "ocho nueve diez"
  }
    .container:nth-child(3){
      display: grid;
      grid-template-columns:repeat(4, 1fr);
      grid-template-rows: repeat(6, 200px);
      /* grid-auto-rows: minmax(100px, 1fr); */
      gap: 10px;
      padding-top: 40px;
      position: relative;
      margin-bottom: 100px;
      margin-top: 20px;
  }

  .container:nth-child(4){
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    grid-template-rows: repeat(7, 200px);
    /* grid-auto-rows: minmax(100px, 1fr); */
    gap: 10px;
    padding-top: 40px;
    position: relative;
    margin-bottom: 100px;
    margin-top: 20px;
  }
  .container:nth-child(2) div:nth-child(1){
    grid-area: uno;
  }
  .container:nth-child(2) div:nth-child(2){
    grid-area: dos;
  }
  .container:nth-child(2) div:nth-child(3){
    grid-area: tres;
  }
  .container:nth-child(2) div:nth-child(4){
    grid-area: cuatro;
  }
  .container:nth-child(2) div:nth-child(5){
    grid-area: cinco;
  }
  .container:nth-child(2) div:nth-child(6){
    grid-area: seis;
  }
  .container:nth-child(2) div:nth-child(7){
    grid-area: siete;
  }
  .container:nth-child(2) div:nth-child(8){
    grid-area: ocho;
  }
  .container:nth-child(2) div:nth-child(9){
    grid-area: nueve;
  }
  .container:nth-child(2) div:nth-child(10){
    grid-area: diez;
  }

  /* galeria3 */
  .container:nth-child(3) div:nth-child(1){
    grid-column: 1/3;
    grid-row: 1/4;
    }
  .container:nth-child(3) div:nth-child(2){
    grid-column: 3/4;
    grid-row: 1/3;
  }
  .container:nth-child(3) div:nth-child(3){
    grid-column: 4/5;
    grid-row: 1/2;
  }
  .container:nth-child(3) div:nth-child(4){
    grid-column: 4/5;
    grid-row: 2/4;
  }
  .container:nth-child(3) div:nth-child(5){
    grid-column: 3/5;
    grid-row: 3/4;
  }
  .container:nth-child(3) div:nth-child(6){
    grid-column: 1/3;
    grid-row: 4/6;
  }
  .container:nth-child(3) div:nth-child(7){
    grid-column: 3/4;
    grid-row: 4/5;
  }
  .container:nth-child(3) div:nth-child(8){
    grid-column: 4/5;
    grid-row: 4/7;
  }
  .container:nth-child(3) div:nth-child(9){
    grid-column: 1/3;
    grid-row: 6/7;
  }
  .container:nth-child(3) div:nth-child(10){
    grid-column: 3/4;
    grid-row: 5/7;
  }

  /* galeria4 */
.cuadrito{
  grid-column: span 1;
  grid-row: span 1;
}

.cuadrado{
  grid-column: span 2;
  grid-row: span 2;
}

.vertical{
  grid-column: span 1;
  grid-row: span 2;
}

.horizontal{
  grid-column: span 2;
  grid-row: span 1;
}
  .container::before{
    display: block;
    content: "Galería con grid-template-columns";
    position: absolute;
    top: -20px;
    font-size: 25px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: purple;
    font-weight: 700;
    left: 50%;
    white-space: pre;
    transform: translate(-50%);
  }
  .container > div {
    border-radius: 5px;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .caja-luz{
    display: none;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    position: fixed;
    background: #00000040;
    justify-content: center;
    align-items: center;
  }
  img#expandedImg {
    max-width: 600px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
  img{
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
/* Closable button inside the expanded image */
.closebtn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}
 
 
 