* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  padding: 10px;
}
.head {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 4rem;
}
.head h1 {
  font-size: 200%;
  color: #fff;
  font-family: sans-serif;
  font-weight: 600;
  letter-spacing: 0.09em;
}
.head h1 span {
  letter-spacing: -0.01em;
  font-weight: 300;
  text-align: center;
}
.gallery {
  columns: 5;
  column-gap: 16px;
  background: #6a4d8173;
  margin: 0 10rem;
  padding: 2rem;
  border-radius: 5px;
  border: 2px solid #93529221;
}
.gallery div img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  transition: 0.6s;
}
.gallery div {
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 16px;
}
.gallery div img:hover {
  scale: 1.05;
}
.con a {
  color: #fb0090;
  font-weight: bold;
  font-family: sans-serif;
  text-align: center;
  transition: 0.4s;
  font-size: 1rem;
  background-color: #000;
  padding: 4px 8px 7px;
  border: #fb0090 3px solid;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: 0.5s;
  margin: 3rem;
}
.con a:hover {
  scale: 1.059;
  font-weight: bold;
  background-color: #fb008e88;
  color: #fff;
}
.con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 767.5px) {
  .head {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 2rem 4rem;
  }
  .head h1{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .gallery {
    columns: 2;
    column-gap: 16px;
    background: #6a4d8173;
    margin: 0 1rem;
    padding: 2rem;
    border-radius: 3px;
    border: 2px solid #93529221;
  }
}
@media (min-width:768px) and (max-width:1028px) {
  .gallery{
    columns: 4;
    margin: 0 1rem;
  }
  
}
