.mobile{
  display: none;
}
.desctop{
  display: flex;
}
.close{
  position: absolute;
  top:24px;
  right: 24px;
}
.first{
  display: none;
  &.large-preview{
    display: flex;    
    width: 100%;
    max-width: 720px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid rgba(45, 45, 45, 0.27);
    overflow: hidden;
    padding: 0;
    img{
      width: 100%;
    }
  }
}
.large img{
  
  border-radius: 12px;
  border: 1px solid rgba(45, 45, 45, 0.27);
}

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

  &.small{

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

  &.large{
    display: flex;
    flex-direction: column;

    .item{
      max-width: 100%;
      margin-bottom: 32px;
      img{
        max-height: 468px;
        max-width: 100%;
      }
    }      
  }

  &.large-preview{
    display: flex;
    flex-direction: row;
    .item{
      width: 72px;
      height: 52px;
      border: 1px solid var(--prime);
      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;
  position: fixed;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 46, 52, 60%);
 
  .content {
    position: fixed;
    display: flex;
    pointer-events: none;
    
    
    width: calc(100vw - 2 * 24px);
    height: calc(100vh - 2 * 24px);
    left: 24px;
    right: 24px;
    *{
      pointer-events:all;
    }
    img {
      object-fit: contain;
      width: 100%;
  height: 100%;
    }

    .left {
      width: 72px;
      flex-grow: 0;
      display: flex;
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }
    .right {
      width: 72px;
      flex-grow: 0;
      display: flex;
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }
  }
  .between{
    justify-content:space-between;
  }
  .center{
    justify-content:center;
  }
  .bottom{
    align-items: flex-end;
    gap: 8px;
    .thumbnails{
      position: static;
      display: block;
      width: 72px;
      height: 52px;
      border: 2px solid var(--prime);

      img{
        width: 100%;
        height: 100%;
        object-fit:cover;
      };
    };

  }

}

@media screen and (max-width: 480px) {
  .desctop{
    display: none !important;
  }
  .mobile{
    display: flex !important;
  }
  .fullscreen {

   
    .content {
      position: fixed;
      display: flex;
      pointer-events: none;
      
      
      width:100vw;
      height:100vh;
      left: 0;
      right: 0;
    }
    .prev{
      z-index: 5;
      margin-right: -50px;
    }
    .next{
      z-index: 5;
      margin-left: -50px;
    }
  }
}


