.AIPostMainContainer{
    position : relative ;
    width :  100% ;
    overflow :  hidden ;
    overflow-y :  auto ;
    touch-action :  pan-y ; 
    /*box-shadow : 0 4px 12px rgba(0, 0, 0, 0.1) ;
    border-radius :  16px ;
    height :  300px ;
    min-height: 300px;*/
    padding: 1%;
    padding-left: 0px;
    /*scrollbar-width :  thin ;
    scrollbar-color :  #d3d3d324 transparent ;*/
}

.AIPostHeader{
    display :  flex ;
    justify-content :  space-between ;
    align-items :  center ;
    background-color :  transparent ;
    width :  100% ;
    padding :  10px ;
    padding-left: 0px;
    position :  sticky ;
    top :  0 ;
    z-index :  100 ;
    height :  0 ;
    /*border-bottom :  1px solid lightgray ;*/
}

.AIExpandIcon{
    color :  gray ;
    cursor :  pointer ;
    font-size :  20px ;
    display :  flex ;
    width :  33% ;
    justify-content :  end ;
}

.AIPostWrapper {
    display: flex;
    max-height: 400px;
    transition: opacity 0.6s ease, transform 0.6s ease-in-out;
    margin: 10px 0px;
    opacity: 1; /* default visible */
    margin: 0;
    margin-top: 12px;
}

.AIPostMainContainer {
    perspective: 1000px;
}


.AIPostContent .floor-post-details {
    color: #555;
    font-size: 14px;
    font-weight: 200 !important;
}

.AIPostContent .floor-post-details p {
    color: #555;
    font-size: 14px;
    font-weight: 200 !important;
}

.community_messages .floor-post-container {
    height: 100%;
}


.AIPostContent img.media-element.media.single {
    border-radius: 8px;
    padding: 12px;
}

.AIPostContent .post-desc-details {
    padding: 0px;
}

.AIPostMainContainer .author-info {
    margin-bottom: 8px;
}
.AIPostMainContainer .media-container  {
    margin-bottom: 8px !important;
}

.AIPostContent .premium_background_div {
    height: 89px;
    width: 4rem;
}

.AIPostDiv{
    /*min-width :  100%;
    align-items : center;*/
    position: relative;
    opacity: 1 ;
    overflow : auto;
    border-radius : 8px;
    display : flex; 

    min-width: 48%;
    align-items : flex-start !important; 
    box-shadow: 0px 0px 4px 0px #bbcbd84f;
    margin: 0 1%;
    background: white;
}

.AIPostContent{
    max-height :  100% ; 
    overflow :  auto ; 
    display :  flex ;
    width : 100%;
    flex-direction :  column ;
    margin: 0px !important;
}

.fullScreenContainer{
    position :  fixed ;
    top :  0 ;
    right :  0 ;
    width :  100% ;
    height :  100% ;
    background :  rgba(0, 0, 0, 0.74);
    z-index :  10000 ;
    display :  flex ;
    flex-direction :  column ;
    justify-content :  center ;
    align-items :  center ;
    box-shadow :  0px 0px 20px rgba(0,0,0,0.2) ;
}

.AICloseFullScreen{
    position :  absolute ;
    top :  10px ;
    right :  10px ;
    font-size :  24px ;
    cursor :  pointer ;
    z-index :  10000 ;
    color :  gray ;
}

.AICloseFullScreen i{ 
    font-size: 2rem;
    color: white !important;
}

.arrow-icon{
    width :  24px ; 
    height :  48px ; 
    background-color :  #51a6f5 ;
    display :  flex ;
    align-items :  center ;
    justify-content :  center ;
    color :  white ;
    overflow :  hidden ; 
    font-size :  medium ;
}

.AICompressIcon {
    color :  gray ;
    cursor :  pointer ;
    font-size :  20px ;
    display :  flex ;
    justify-content :  end ;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white); /* adjust 'white' as needed */
    pointer-events: none;
    display: none;
  }

  .AISourcePostBtn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 25px;
    color: #52a6f5;
    background-color: transparent;
    border: none;
    padding-left: 0px;
  }
/*.AISourcePostBtn:hover {
  color: white;
  background-color: #52a6f5;
}
*/
.AIMediaGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: min-content;
    height: min-content;
}
.AIMediaGrid {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  margin-top: 10px;
}
.AIMediaGrid.visible {
  opacity: 1;
  transform: translateY(0);
}

.AIMediaItem {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid lightgray;
    cursor: pointer;
}


@media (max-width: 768px) {
    
    .AIPostMainContainer{
       /* box-shadow : 0 4px 12px rgba(0, 0, 0, 0.1) ;
        border-radius :  8px ;
        min-height :  300px ;*/
    }

    .AIPostMainContainer .author-info {
        margin-bottom: 8px;
    }
    .AIPostMainContainer .media-container  {
        margin-bottom: 8px !important;
    }

    .AIPostHeader{
        /*border-bottom :  1px solid lightgray ;*/
    }    
    .AIPostWrapper{
        display :  flex ;
        max-height : 400px;
        transition :  transform 0.3s ease-in-out ;
        margin :  10px;
    }

    .AIPostDiv{
        min-width :  100%;
        align-items : center;
        margin: 0;
    }
}
