:root {
  --ms-global-thub-size: 60px;
  --ms-global-thumb-radius: 12px;
  --ms-global-thumb-gap: 20px;
}

/* Utils */

.hide {
  display: none !important;
}


.magsped-thumblist-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ms-global-thumb-gap);
  width: min(1170px,100vw);
  margin: 20px auto 0;
}
.magsped-list-thumb-item {
  overflow: hidden;
  border-radius: var(--ms-global-thumb-radius) 0 var(--ms-global-thumb-radius) 0;
  border: 0 none;
  cursor: pointer;
  width: var(--ms-global-thub-size);
  height: var(--ms-global-thub-size);
  box-sizing: border-box;
  position: relative;
}
.magsped-list-thumb-item::after {
  transition: all 0.3s;
  border: 0 none;
}
.magsped-list-thumb-item:hover {
  cursor: pointer;
  /*box-shadow:0px 0px 0px 1px var(--e-global-color-accent) inset;*/
}
.magsped-list-thumb-item:hover::after {
  content:" ";
  display: block;
  position: absolute;
  width: var(--ms-global-thub-size);
  height: var(--ms-global-thub-size);
  border-radius: var(--ms-global-thumb-radius) 0 var(--ms-global-thumb-radius) 0;
  border: 1px solid var(--e-global-color-accent);
  z-index: 11;
  top: 0;
}
.magsped-list-thumb-item.selected::after,
.magsped-list-thumb-item.selected:hover::after {
  content:" ";
  display: block;
  position: absolute;
  width: var(--ms-global-thub-size);
  height: var(--ms-global-thub-size);
  border-radius: var(--ms-global-thumb-radius) 0 var(--ms-global-thumb-radius) 0;
  border: 3px solid var(--e-global-color-accent);
  z-index: 11;
  top: 0;
}
 
.magsped-list-thumb-item img {
  width: 100%;
  height: 100%;
  pointer-events: none; 
}


.magsped-view-swicher {
  width: auto;
  margin: 30px auto 0 auto;
  display: block;
  gap: var(--ms-global-thumb-gap);
  position: absolute;
  top: 0; 
  right: max( (100vw - 1170px)/2, 20px ); 
  z-index:20;
}

.magsped-btn {
  padding: 20px 30px;
  border-radius: 16px 0 16px 0;
  border: 2px solid var(--e-global-color-accent);
  font-family: var(--e-global-typography-primary-font-family);
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  display: block;
  width: auto;
  background-color: #2A2A2A66;
  transition: all 0.3s;
  text-align: center;
  margin-bottom: 12px;
}
.magsped-btn:hover {
  cursor: pointer;
  background-color: #2A2A2A;
}
.magsped-btn.selected {
  background-color: #2A2A2A;
}
.btn-shirt {
  
}


.magsped-viz-container {
  padding: 60px 0;
  position: relative;
  background: url(https://magsped.isbeta.site/wp-content/uploads/2024/05/probnik-bg.jpg) no-repeat center;
  background-size: cover;
}
.magsped-shirt-viz-box {
  width: 680px;
  height: 680px;
  margin: 0 auto;
  display: block;
  position: relative;
}
.magsped-viz-shadows {
  width: 680px;
  height: 680px;
  position: absolute;
  z-index: 6;
  background: url(https://magsped.isbeta.site/wp-content/uploads/2024/05/shirt-shadow-tiny.png) no-repeat center;
  background-size: contain;
  opacity: 25%;
  mix-blend-mode: multiply;
}
.magsped-viz-material {
  --ms-box-shadow-opacity: 0.35;
  --ms-box-shadow-blur: 45px;
  width: 680px;
  height: 680px;
  background-repeat: no-repeat;
  background-size: cover;
  mask: url(https://magsped.isbeta.site/wp-content/uploads/2024/05/shirt-mask.svg) no-repeat center;
  -webkit-box-shadow: 0px 0px var(--ms-box-shadow-blur) 0px rgba(45, 40, 40, var(--ms-box-shadow-opacity));
  -moz-box-shadow: 0px 0px var(--ms-box-shadow-blur) 0px rgba(45, 40, 40, var(--ms-box-shadow-opacity));
  box-shadow: 0px 0px var(--ms-box-shadow-blur) 0px rgba(45, 40, 40, var(--ms-box-shadow-opacity)); 
}



.magsped-mat-container {
  position: relative;
  width: 100%;
  height: 800px;
  background-size: contain;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.magnifying-glass {
  display: flex;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.magnifying-glass__img {
  width: 100%;
}

.magnifying-glass__magnifier {
  position: fixed;
  top: 0; left: 0;
  z-index: 1;
  overflow: hidden;
  width: 15vw;
  max-width: 10rem;
  height: 15vw;
  max-height: 10rem;
  border: 2px solid var(--e-global-color-accent);
  border-radius: 50%;
  background-color: transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.magnifying-glass__enlarged-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vw;
  height: calc(200vw * 2/3);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}





@media screen and (max-width: 1169px) {
  :root {
    --ms-global-thumb-gap: 12px;
  }
  
  .magsped-thumblist-container {
    padding:0 20px;
  }
  .magsped-shirt-viz-box {
    --viz-size: min( 100vw - 40px , 680px );
    width: var(--viz-size);
    height: var(--viz-size);
  }
  .magsped-viz-shadows {
    width: inherit;
    height: inherit;
  }
  .magsped-viz-material {
    --viz-size: min( 100vw - 40px , 680px );
    width: inherit;
    height: inherit;
    mask-size: var(--viz-size) var(--viz-size);
  }
}

@media screen and (max-width: 779px) {
  .magsped-view-swicher {
    position:relative;
    right: auto;
  }

}


/* Preloader Modal */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.preloader {
  display: block;
  width: 50px;
  height: 50px;
  background-image: url("https://icon-library.com/images/loading-icon-transparent-background/loading-icon-transparent-background-14.jpg");
  background-size: 50px;
  animation: rotate 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  z-index: 33;
}