.item-ios ion-thumbnail cy-img,
.item-ios ion-thumbnail cy-img {
  width: 56px; 
  height: 56px; 
}

cy-img {
  display: inline-block;
  overflow: hidden;

  img{
    max-width: initial;
    max-height: initial;
    min-width: initial;
    min-height: initial;
  }

  &.img-landscape img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width:initial;
    height: 100%;
  }
  &.img-portrait img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: initial;
  }
}

.cy-img-overlay{
  z-index:1000;
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  right:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,0.8);
}