:host-context(publications-list-item-news){
  .first{
    display: block;
  }
  .items{
    display: none;
  }
}
.first{
  display: none;
  &.large-preview{
    width: 320px;
    height: 200px;
    max-width: 80vw;
    max-height: 49vw;
    margin-bottom: 8px;
    overflow: hidden;
    img{
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}
.large img{
  max-width: 100%;
}

.items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;

  &.small{

    display: flex;
    flex-direction: column;
    .item{
      margin-bottom: 16px;
      img{
        max-height: 273px;
        max-width: 273px;
      }
    }      
  }

  &.large{
    display: flex;
    flex-direction: column;
    .item{
      margin-bottom: 32px;
      img{
        max-height: 468px;
        max-width: 100%;
      }
    }      
  }

  &.large-preview{
    display: flex;
    flex-direction: row;
    .item{
      width: 160px;
      height: 106px;
      border: 1px solid white;
      img{
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }      
  }

  .item {
    
    position: relative;

    img {
      cursor: pointer;
    }

    &:last-child {
      margin-bottom: 0;
    }

    &.full-width {
      display: flex;
      flex-direction: column;
      img {
        width: 100%;
        height: auto;
      }
    }
  }
}

.carousel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  column-gap: 42px;
  margin-bottom: 20px;
  align-items: center;
  width: 100%;
  .prev, .next {
    cursor: pointer;
  }
  .center {
    display: flex;
    overflow: hidden;
    max-width: 548px;
    width: 100%;
  }
}

.slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
}

.fullscreen {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 46, 52, 60%);
  .close,.left,.right{
    width: 36px;
    height: 36px;
    margin: 6px;
    border-radius: 24px;
    background-color: rgba($color: #FFF, $alpha: 0.6);
    border: 2px solid var(--prime);
    flex-grow: 0;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    ico{
      display: flex;
    }
  }
  .close{
    position: absolute;
    top:24px;
    right: 24px;

  }
  .left {

  }
  .center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: calc(100% - 144px);
    img {
      max-width: 100%;
      width: auto;
      height: 100%;
      max-height: calc(100vh - 2 * 24px);
    }
  }
  .right {
  }
}



@media screen and (max-width: 688px) {
  .fullscreen {

    .left {
      margin-right: -48px;
      z-index: 5;
    }
    .center {
      max-width:none;
      
      
      img {
        width: 100%;
      }
    }
    .right {
      margin-left: -48px;
       z-index: 5;

    }
  }
}