@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');

@media screen and (max-width: 650px){
  .container {
    display: grid;
    grid: auto-flow min-content / 1fr;
    grid-template-columns: 1fr, 1fr;
    grid-gap: 10px;
  }
  .container > div:hover {
  opacity: 0.7;
  transform: scale(0.98);
  }

    .container > div:nth-of-type(1) {
    grid-column: 1 / 5
    }

    .container > div:nth-of-type(2) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(3) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(4) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(5) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(6) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(7) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(8) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(9) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(10) {
    grid-column: 1 / 5;
      height:auto;
    }

    .container > div:nth-of-type(11) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(12) {
    grid-column: 1 / 5;
    }
}

@media screen and (min-width: 650px){
    .container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px;
      }
    .container > div:hover {
    opacity: 0.7;
    transform: scale(0.98);
    }

    .container > div:nth-of-type(1) {
    grid-column: 1 / 5;
    }

    .container > div:nth-of-type(2) {
    grid-column: 1 / 3;
    }

    .container > div:nth-of-type(3) {
    grid-column: 3 / 5;
    }

    .container > div:nth-of-type(4) {
    grid-column: 1 / 3;
    }

    .container > div:nth-of-type(5) {
    grid-column: 3 / 5;
    }

    .container > div:nth-of-type(6) {
    grid-column: 1 / 3;
    }

    .container > div:nth-of-type(7) {
    grid-column: 3 / 5;
    }

    .container > div:nth-of-type(8) {
    grid-column: 1 / 3;
    }

    .container > div:nth-of-type(9) {
    grid-column: 3 / 5;
    }

    .container > div:nth-of-type(10) {
    grid-column: 1 / 5;
      height: 250px
    }

    .container > div:nth-of-type(11) {
    grid-column: 1 / 3;
    }

    .container > div:nth-of-type(12) {
    grid-column: 3 / 5;
    }
}
@media screen and (min-width: 1280px){
  .container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-gap: 10px;
    }
  .container > div:hover {
  opacity: 0.7;
  transform: scale(0.98);
  }

  .container > div:nth-of-type(1) {
  grid-column: 1 / 4;
  }

  .container > div:nth-of-type(2){
  grid-column: 4 / 5;
  }

  .container > div:nth-of-type(3) {
  grid-column: 1 / 3;
  }

  .container > div:nth-of-type(4) {
  grid-column: 3 / 4;
  }

  .container > div:nth-of-type(5) {
  grid-column: 4 / 5;
  }

  .container > div:nth-of-type(6) {
  grid-column: 1 / 2;
  }

  .container > div:nth-of-type(7) {
  grid-column: 2 / 5;
  }

  .container > div:nth-of-type(8) {
  grid-column: 1 / 3;
  }

  .container > div:nth-of-type(9) {
  grid-column: 3 / 5;
  }

  .container > div:nth-of-type(10) {
  grid-column: 1 / 5;
  }

    .container > div:nth-of-type(11) {
  grid-column: 1 / 3;
  }

    .container > div:nth-of-type(12) {
  grid-column: 3 / 5;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 14px
}

h2 {
  font-size: 4em;
  font-weight: 300;
  margin: 10px;
}

p {
  font-size: 1.5em;
}

.container > div {
  cursor: pointer;
  height: 210px;
  background-size: cover;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;


  transition: all 0.5s ease-in;
}


.bg1 {
    background: url('https://i.ibb.co/dBLbrRV/bg1.jpg');
  color: #FAF9F6;
}

.bg2 {
    background: url('/Images/beach-img1.jpg');
    color: #333;
 }