/* image styles */

.image
{
    display: flex;
    height: 100%;
    object-fit: contain;
    align-items: center; /* ✅ Vertically centers all children */        

    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;    
    /* max-width: 100px; */
}


img {
    width: 100%;
    height: var(--image_scale);
    object-fit: contain;    
}  



.image.type_1:has(> img:nth-of-type(2)) {
    width: 80px;
 }


.image.type_1:has(> img:nth-of-type(2)):before {
    content: "";
    position: absolute;
    width: 3px;
    height: 50%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(-15deg);
  }


.image.type_1:not(:has(> img:nth-of-type(2))) img {
    height: var(--image_scale);
    object-fit: contain;
}  

.image.type_1:has(> img:nth-of-type(2)) img {
    height: 50%;
    object-fit: contain;
}

.image.type_1:has(> img:nth-of-type(2)) img:last-child {
    margin-left: 15px;
}



.image.type_2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ensure nothing bleeds outside */
  }
  
  /* All images in the container are absolutely positioned and fill it */
  .image.type_2 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* The first image is clipped diagonally.
     This clip-path creates a diagonal edge from (100% 50%) to (50% 100%), which is 45° in a square container. */
    .image.type_2:has(> img:nth-of-type(2)) img:first-child {

          mask-image: linear-gradient(120deg, black 50%, transparent 50%);
          -webkit-mask-image: linear-gradient(120deg, black 50%, transparent 50%);
          
          
        z-index: 1;
    }
    .image.type_2:has(> img:nth-of-type(2)) img:last-child {
        z-index: 0;
    }    
