* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Delius Unicase', cursive;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.gallery {
  padding: 60px 20px;
  text-align: center;
  padding-top: 40px;
}

.gallery h1 {
  font-size: 36px;
  margin-bottom: 78px;
  letter-spacing: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 370px); /* ширина */
  grid-auto-rows: 370px;                  /* висота */
  gap: 20px;
  justify-content: center;
}

.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.small {
  grid-column: span 1;
}

.wide {
  grid-column: span 2;
}



.grid-life {
  display: grid;
  grid-template-columns: repeat(3, 370px);
  grid-auto-rows: 370px;
  gap: 20px;
  justify-content: center;
}

.grid-life img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.small {
  grid-column: span 1;
}

.wide {
  grid-column: span 2;
}

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

.tall {
  grid-column: span 1;
  grid-row: span 2;
}

.grid-life {
  grid-auto-flow: dense;
}



.grid-portrait {
  display: grid;
  grid-template-columns: repeat(3, 370px);
  grid-auto-rows: 370px;
  gap: 20px;
  justify-content: center;
  grid-auto-flow: dense;
}

.grid-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.small {
  grid-column: span 1;
}

.wide {
  grid-column: span 2;
}

.tall {
  grid-row: span 2;
}