
.post-container {
        padding: 5px;
      }


      .post-grid {
        
        column-count: 3;
        column-gap: 3px;
        max-width: 100%;
        margin: 0 auto;
      }
      @media (max-width: 1600px) {
        .post-grid {
          column-count: 3;
        }
      }

      @media (max-width: 1200px) {
        .post-grid {
          column-count: 2;
        }
      }

      @media (max-width: 800px) {
        .post-grid {
          column-count: 1;
        }
      }

      @media (max-width: 600px) {
        .post-grid {
          column-count: 1;
        }
      }

      .post {
        /*border: 2px solid #0f0;*/

        background: #fff;
        overflow: hidden;
        /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
        transition: all 0.3s ease;
        display: inline-block;
        width: 100%;
        margin-bottom: 0px;
        break-inside: avoid;
      }

      .post:hover {
        /*transform-origin: bottom;*/
        /*transform: perspective(900px) rotateX(10deg);*/
        /*transform: translateY(5px);*/
        transform: scale(0.95);
        /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);*/
      }

      .post-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-decoration: none;
        color: inherit;
      }

      .post-media {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #00000000;
      }

      .post-media img,
      .post-media video {
        width: 100%;
        height: auto;
        display: block;
        border: 2px solid rgb(0, 221, 92);
      }

      .post-media audio {
        width: 100%;
        height: 100%;
        display: block;
        min-height: 40px;
        accent-color: rgb(0, 221, 92);
        color: rgb(0, 221, 92);
      }

      .post-text {
        padding: 20px;
        flex: 1;
        text-align: left;
        text-align-last: left;
      }

      .post-text h2 {
        margin: 0 0 2px 0;
        font-size: 1.5rem;
        color: rgb(0, 221, 92);
        text-align: center;
      }

      .post-text p {
        margin: 0;
        line-height: 1.1;
        color: rgb(0, 0, 0);
        white-space: pre-line;
      }

      /* Carousel */
      .carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
        transition: height 0.6s ease;
        background: rgb(255, 255, 255);
      }

      .carousel-track {
        display: flex;
        align-items: flex-start;
        transition: transform 0.5s ease;
      }

      .carousel-slide {
        min-width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
      }

      .carousel-slide img,
      .carousel-slide video {
        width: 100%;
        height: auto;
        display: block;
        top: 0;
      }

      .carousel-slide audio {
        width: 100%;
        display: block;
        min-height: 40px;
      }

      .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0);
        color: rgba(0, 0, 0, 0);
        border: none;
        width: 36px;
        height: 206px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 7;
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
      }

      .carousel-arrow:hover {
        color: rgb(0, 221, 92);
      }

      @media (max-width: 795px) {
        .carousel-arrow {
          color:  rgba(0, 0, 0, 0);
        }
         .carousel-arrow:hover {
        color:rgba(0, 0, 0, 0);
      }
      }

     

      .carousel-arrow.prev {
        left: 10px;
      }

      .carousel-arrow.next {
        right: 10px;
      }

      .carousel-dots {
            position: absolute;
            bottom: 15px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 5px;
            z-index: 1;
        }

        .carousel-dot {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.2s;
        }

        .carousel-dot.active {
            background: rgb(0, 221, 92);
        }

      /* Loading & Error */
      .message {
        text-align: center;
        padding: 40px 20px;
        font-size: 1.2rem;
      }

      .error {
        color: #d32f2f;
      }

      .fallback {
        padding: 40px 20px;
        text-align: center;
        color: #888;
        font-style: italic;
      }

      /* Hide elements */
      .hidden {
        display: none;
      }
     
      #loading{
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 9;
    overflow: hidden; 
    pointer-events: all;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

#loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(0, 221, 92);
    border-radius: 50%;
    width: 50px; 
    height: 50px;
    animation: spin 1s linear infinite;
    position: relative;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loading {
    overflow: hidden;
    height: 100vh;
}