@import url('https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i&display=swap');

* {
  /* Nuestro mejor amigo */
  box-sizing: border-box;
  
  font-family: 'Lato', sans-serif;
}

h2 {
  font-size: 4rem;
  font-weight: normal;
  margin: 0;
}

p {
  font-size: 18px;
}

img {
  width: 100%;
}

.date {
  text-transform: uppercase;
  font-size: 0.8rem;
  background: #d0396c;
  color: #fff;
  padding: 0 1rem 1rem;
  margin-top: 0;
}
.day {
  display: block;
  font-size: 4rem;
  font-weight: bold;
}

/* CSS Grid */

.container {
  margin-top: 50px;
  display: grid;
  
  /* minmax() me permite definir tamaños flexibles: el primer valor es el mínimo, es segundo el máximo. Más información: https://www.youtube.com/watch?v=mVQiNpqXov8 */
  grid-template-columns: minmax(auto, 1fr) 1fr 2fr minmax(100px, auto);
  grid-auto-rows: minmax(50px, auto);
  grid-gap: 1rem;
  grid-template-areas:
    "..   ..    ..      .."
    "..   foto  foto    fecha"
    "..   foto  foto    .."
    "..   ..    texto   texto"
    "..   ..    ..      ..";
} 

.date {
  grid-area: fecha;
  
  /* Propiedad que hace que el elemento no ocupe todo el espacio dispoinble. Enlace para investigarla: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Box_Alignment_in_CSS_Grid_Layout */
  align-self: start;
}
.contenido {
  grid-area: texto;
}
.photo {
  grid-area: foto;
}

header {
/*   grid-column: 1 / -1; */
  background: rgba(244, 169, 202, 0.6);
  grid-column: 3 / span 2;
  grid-row: 3 / span 1;
  z-index: 1;
  
  padding: 1rem;
  align-self: center;
}

header h1, header p {
  margin: 0;
}