.createspace-portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, calc(25vw - 21.25px));
  grid-gap: 5px;
}
.createspace-portfolio-gallery .cell {
  position: relative;
  display: block;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.createspace-portfolio-gallery .cell .id {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1rem;
  color: black;
  background-color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 2rem;
  text-align: center;
  border: 1px solid black;
}
.createspace-portfolio-gallery .cell a {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  background-color: #ddddd7;
}
.createspace-portfolio-gallery .cell a:hover {
  opacity: 1;
}
.createspace-portfolio-gallery .cell h2 {
  width: 90%;
  text-align: center;
  overflow: hidden;
  font-size: 2rem;
}
.createspace-portfolio-gallery .cell--small {
  aspect-ratio: 1.618;
}
.createspace-portfolio-gallery .cell--7, .createspace-portfolio-gallery .cell--8, .createspace-portfolio-gallery .cell--21, .createspace-portfolio-gallery .cell--22 {
  aspect-ratio: 1.618;
}
.createspace-portfolio-gallery .cell--medium {
  grid-row: span 2;
}
.createspace-portfolio-gallery .cell--large {
  grid-column: span 2;
  grid-row: span 3;
}
.createspace-portfolio-gallery .cell--round-1 {
  border-radius: 5vw 0 0 0;
}
.createspace-portfolio-gallery .cell--round-2 {
  border-radius: 0 5vw 0 0;
}
.createspace-portfolio-gallery .cell--round-3 {
  border-radius: 0 0 5vw 0;
}
.createspace-portfolio-gallery .cell--round-4 {
  border-radius: 0 0 0 5vw;
}
.createspace-portfolio-gallery .cell--7 {
  background-color: #393B34;
}
.createspace-portfolio-gallery .cell--7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 35%;
  background-position: center;
  animation: createspace_spin 12s linear infinite;
}
.createspace-portfolio-gallery .cell--has-hover a {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.createspace-portfolio-gallery .cs-btn {
  display: inline-block;
  background-color: #6161ec;
  padding: 15px 25px;
  border-radius: 0 25px 0 25px;
  font-size: 0.5em;
  color: white;
}
.createspace-portfolio-gallery .cs-btn:hover {
  background-color: #7171fc;
}

@media (max-width: 1023px) {
  .createspace-portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .createspace-portfolio-gallery .cell--large {
    aspect-ratio: 2.156794;
  }
}
@media (max-width: 500px) {
  .createspace-portfolio-gallery {
    grid-template-columns: 1fr;
  }
  .createspace-portfolio-gallery .cell--small, .createspace-portfolio-gallery .cell--medium, .createspace-portfolio-gallery .cell--large {
    grid-column: auto !important;
    aspect-ratio: 1.618;
  }
  .createspace-portfolio-gallery .cell--medium {
    aspect-ratio: 1.2138034509;
  }
  .createspace-portfolio-gallery .cell--large {
    aspect-ratio: 1.2138034509;
  }
}
@keyframes createspace_spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
