.product-page-main-div {
  grid-column-gap: 4rem;
  grid-row-gap: 4rem;
  background-color: #fff;
  background-image: radial-gradient(circle, #0000, #ffffffeb 70%), url('../images/Alife-Hat-v2-COVER.webp');
  background-position: 0 0, 50%;
  background-size: auto, auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100svh;
  padding-bottom: 0;
  display: flex;
  position: fixed;
  inset: 0%;
  overflow: hidden;
}

.cd-product-viewer-handle {
  z-index: 2;
  background-color: #d01f29;
  border: 1px solid #fff;
  justify-content: flex-start;
  align-items: center;
  width: 60%;
  max-width: 300px;
  height: 6px;
  display: flex;
  position: fixed;
  bottom: 4rem;
}

.cd-pv {
  justify-content: center;
  align-items: center;
  height: 100%;
  display: flex;
  position: fixed;
  inset: 0%;
}

.cd-pv-img {
  z-index: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: visible;
}

.product-sprite {
  z-index: 2;
  opacity: 0;
  background-image: url('../images/Alife-Hats-v2b-16er-.jpg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 1600%;
  height: 100%;
  transition: opacity .3s cubic-bezier(.215, .61, .355, 1);
  position: absolute;
  inset: 0%;
}

.handle {
  z-index: 20;
  background-color: #3b3e83;
  background-image: url('../images/cd-arrows.svg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: auto;
  border-radius: 22px;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 0;
  overflow: hidden;
  box-shadow: 0 0 0 6px #ffffff4d;
}

.handle:hover {
  background-color: #000;
}

.fill {
  z-index: 1;
  perspective-origin: 0%;
  transform-origin: 0%;
  transform-style: preserve-3d;
  background-color: #b54240;
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.215, .61, .355, 1);
  position: absolute;
  top: 0;
  left: 0;
  transform: scale3d(0, 1, 1);
}

.cd-product-viewer-wrapper {
  text-align: center;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  position: fixed;
  inset: 0%;
}

.product-viewer {
  z-index: 1;
  object-fit: contain;
  background-color: #000;
  justify-content: center;
  align-items: center;
  width: 100vw;
  margin-bottom: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.by-link {
  opacity: 1;
  color: #282551;
  letter-spacing: .5px;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 10px;
  position: fixed;
  bottom: 1rem;
}

.by-link:hover {
  opacity: 1;
}

@media screen and (max-width: 991px) {
  .cd-product-viewer-handle {
    bottom: 8rem;
  }
}

@media screen and (max-width: 767px) {
  .product-page-main-div {
    min-height: auto;
  }
}

@media screen and (max-width: 479px) {
  .product-page-main-div {
    background-size: auto, auto;
  }
}
