/* The device with borders */
.smartphone {
    position: relative;
    width: 360px;
    height: 640px;
    margin: auto;
    border: 16px black solid;
    border-top-width: 60px;
    border-bottom-width: 60px;
    border-radius: 36px;
  
    transform: scale(.9) rotateY(0deg) rotate(10deg);
  animation: mymove 10s infinite;
  }
  
  /* The horizontal line on the top of the device */
  .smartphone:before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 10px;
  }
  
  /* The circle on the bottom of the device */
  .smartphone:after {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 50%;
  }
  
  /* The screen (or content) of the device */
  .smartphone .content {
    width: 100%;
    height: 100%;
    background: white;
    overflow-y: scroll;
  }
  
  .telegram-header {
      background: #517da2;
      color: #fff;
      font-size: 18px;
      padding: 10px 20px;
      font-family: arial;
  }
  
  .telegram-frame {
      width:100%;border:none;
      height: -moz-calc(100% - (20px + 30px));
      height: -webkit-calc(100% - (20px + 30px));
      height: calc(100% - (20px + 30px));
      display:block;
  
  }
  
  @keyframes my-move {
    50% {transform: rotate(20deg);}
  }
  
  .post-view {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
}

.post-view .memo {
    padding: 20px;
}

.telegram-gallery {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
}

.large-image {
    width: 100%;
    height: auto;
}

.telegram-image-container:nth-child(1) {
    width: 100%;
    height: auto;
    flex: 1 1 100%;
    order: -1;
}

.telegram-image-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 8px;
    width: 100%;

    flex: 1 1 40%;
    text-align: center;
}

.telegram-image {
    display: block;
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    width: 100%;
}

.telegram-row {
    display: flex;
    justify-content: space-between;
    hei-ght: 200px;
    flex-wrap: wrap;
}

.small-image {
    flex: 1;
}

.telegram-image:hover {
    transform: scale(1.05);
}




