

/* Start:/local/templates/yuumpk/components/bitrix/catalog/catalog.yuumpk/bitrix/catalog.element/catalog.element.yuumpk/style.css?17797318201516*/
.square-block {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-image, .square-image {
  display: block;
  width: 100%;
  height: 100%; 
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
}
.thumbnails {
  width: 100px;
  height: 100px;
  border: 1px solid gray;
  margin-right: 10px;
  background-color: #f5f5f5;
  padding: 4px;             
  cursor: pointer;      
  flex-shrink: 0;      
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent; 
  outline: none; 
}

.thumbnails:active {
  background-color: #e0e0e0;
}

.thumbnails img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.thumbnail-active {
  border-color: #bd2f2f;
  background-color: #eee;
}

.thumbnails-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-start;
}

.thumbnails {
  margin-right: 0;
}

.image-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.image-loader.loading {
  display: block;
}

.image-loader.loading::after {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.1); 
  border-top-color: #bd2f2f;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* End */
/* /local/templates/yuumpk/components/bitrix/catalog/catalog.yuumpk/bitrix/catalog.element/catalog.element.yuumpk/style.css?17797318201516 */
