:root {
  --font1: "Poppins";
  --font2: "Playfair Display";
  --dark: white;
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flex, .flex__col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex__col {
  flex-direction: column;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  width: 100%;
}

.menu {
  position: fixed;
  top: 0;
  left: 50%;
  width: calc(100% - 80px);
  justify-content: space-between;
  margin: 40px 0;
  transform: translatex(-50%);
}

.menu a {
  font-size: 1.10vw;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
}

.menu ul {
  gap: 20px 60px;
}

body{
  margin:20;
  height:100vh;
  display:grid;
  place-items:center;
  background-color:#010101;
}

.gallery{
  position:relative;
  width:300px;
  height:150px;
  transform-style:preserve-3d;
  animation:rotate 35s linear infinite;
}

.gallery-heading {
    color: white;
}

@keyframes rotate{
  from{
    transform:perspective(1200px) rotateY(0deg);
  }
  
  to{
    transform:perspective(1200px) rotateY(360deg);
  }
}

.gallery span{
  position:absolute;
  width:100%;
  height:100%;
  transform-origin:center;
  transform-style:preserve-3d;
  transform:rotateY(calc(var(--i) * 45deg)) translateZ(380px);
}

.gallery span img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
}
