.portfolio-grid-container {
  --flexGap: 2.8em;
  display: grid;
  grid-template-rows: auto;
  gap: var(--flexGap) calc(var(--flexGap)* 0.1);
  width: 100%;
}

.portfolio-marker {
  position: fixed;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  border-top: 16px dotted #ede7de;
  pointer-events: none;
  opacity: 0;
}

.portfolio-tile {
  aspect-ratio: 1;
  pointer-events: none;
}

.portfolio-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

.portfolio-tile-link {
  width: 100%;
  height: 100%;
}

.portfolio-tile-link:visited {
  color: var(--fontColor);
}

.portfolio-tile-wrapper {
  --transition: 0.6s cubic-bezier(.11, .5, .34, .99);
  --zoomSize: 26.3em;
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-tile-container {
  /* set colors by js */
  --color: #FFFFFF;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--color);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition), height var(--transition);
  will-change: width, height;
}

.portfolio-tile.hc-hover {
  z-index: 100;
}

.portfolio-tile.hc-hover .portfolio-tile-container {
  width: var(--zoomSize);
  height: var(--zoomSize);
}

.portfolio-tile-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--backgroundColor);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-tile-image-container img {
  width: 100%;
}

.portfolio-tile-title-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--zoomSize);
  height: var(--zoomSize);
  will-change: transform;
  transform: translate(-50%, -50%);
}

.portfolio-tile-title-wrapper {
  --shiftMargin: 1.875em;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.portfolio-tile-title-wrapper img {
  width: 90%;
  height: 37%;
  object-fit: cover;
}

.portfolio-tile-title {
  max-width: 67%;
  height: min-content;
  max-height: 5em;
  overflow: auto;
  font-family: var(--fontMedium);
  font-weight: var(--fontWeightMedium);
  text-align: center;
}

.portfolio-tile-font {
  font-size: var(--fs1-5);
  color: var(--backgroundColor);
  line-height: 1.2;
}

.portfolio-tile-exited {
  left: 18.6em;
  top: 3.575em;
  width: 6em;
  height: 6em;
  border: 0.14em solid var(--backgroundColor);
  background: var(--footerBackgroundColor);
  transition: width var(--transition), height var(--transition);
}

.hc-hover .portfolio-tile-exited {
  width: 0em;
  height: 0em;
}

.portfolio-tile-exited .inner-circle {
  width: 6em;
  font-size: var(--fs1-75);
  font-family: var(--fontMedium);
  font-weight: var(--fontWeightMedium);
  text-align: center;
  color: var(--fontColor);
}

@media only screen and (max-width: 720px) {
  .portfolio-grid-container {
    gap: var(--flexGap);
  }
}