
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Calibri';
}
:root {
    --primary-color: #a6508a;
    --background-color: #ffffff;
    --text-color: #000;
    --modal-background: rgba(226, 218, 218, 0.9);
    --modal-text-color: #d8b3cc;
    --post-action-color:#f9f9f9;
}


/* body section */
 .container{
    background: var(--primary-color);
    display:flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;

}


.middle-panel{
    flex:1;
    display:flex;
    flex-direction: column;
    align-items:center;
}


/* story image section */
.stories-container {
    max-width: 600px;
    margin: 24px auto;
    position: relative;
    margin-bottom: 90px;
}

.stories-container .previous-btn,
.stories-container .next-btn {
    width: 30px;
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    cursor: pointer;
}

.stories-container .previous-btn {
    left: 8px;
}

.stories-container .next-btn {
    right: 8px;
}

.stories-container .story {
    width: 120px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.stories-container .story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories-container .stories {
    display: flex;
    gap: 8px;
    width: 504px;
    overflow: hidden;
}

.stories-container .content {
    overflow: hidden;
    position: relative;
}
.stories-container .content::-webkit-scrollbar {
    display: none;
}
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 9%;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    flex-direction: column;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image img {
    width: 100%;
    height: 80%;
    object-fit: fill;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-nav button {
    background: var(--primary-color);
    border: none;
    color: var(--background-color);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color:var(--background-color);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}


.post {
    width: 100%;
    width: 520px;
    background: var(--background-color);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;

}
.post-container{
    margin-top: 20px;
    margin-bottom: 75px;
}
.post .post-top {
    display: flex;
    align-items: center;
    padding: 10px;
}

.post .post-top .dp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}
.post .post-top .dp .submit-btn {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.profile-section {
    display: flex;
    align-items: center;
    margin-right: 6px;
}

.profile-section img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.post-actions .action {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #606770;
    font-size: 14px;
    transition: color 0.3s ease;
}

.post-actions .action:hover {
    color: var(--primary-color);
}

.post-actions .action i {
    margin-right: 5px;
    font-size: 18px;
}

.post-actions .action span {
    font-size: 14px;
}
 .visibility-icon {
    margin-left: 5px;
    color: #606770;
    font-size: 12px;
}

 .post .post-top .post-info .name {
    cursor: pointer;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.post .post-top .post-info .time {
    font-size: 12px;
    cursor: pointer;
}

.post .post-top i {
    margin-left: auto;
    cursor: pointer;
}

.post .post-top > input {
    height: 40px;
    padding: 5px 10px;
    border-radius: 25px;
    outline: none;
    border: none;
    flex: 1;
    background: #eee;
    margin-left: 10px;
}

.post .post-content {
    font-size: 16px;
    font-weight: normal;
    padding: 10px;
}


.image-grid {
    display: grid;
    gap: 5px;
    position: relative;
}

.image-grid.single-image {
    grid-template-columns: 1fr;
}

.image-grid.two-images {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid.three-images {
    grid-template-columns: repeat(3, 1fr);

}

.image-grid.three-images img:first-child {
    grid-column: span 2;
}

.image-grid.four-plus-images {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.image-grid.single-image img {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.image-link {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
}
.image-grid .more-images {
    position: relative;
    cursor: pointer;
}

.image-grid .more-images .overlay {
    opacity: 1;
}
.post .post-content > img{
    width:100%;
    margin:5px 0px;
    cursor: pointer;
}

.post .post-bottom{
    box-shadow: 1px solid #ddd;
    display:flex;
    justify-content: space-between;
    padding:5px 5px 0px 5px;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-background);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.modal-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 80%;
    object-fit: contain;
}

.modal-info {
    color: var(--primary-color);
    text-align: center;
    margin-top: 20px;
    width: 800px;
    background: var(--background-color);
    padding: 20px;
    overflow-y: auto;
    font-weight: bold;
    font-size: 20px;
    border-radius:  10px;
}

.close {
    color: var(--primary-color);
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: var(--primary-color);
    background: var(--background-color);
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: 0;
    margin-right: 10px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    margin-left: 10px;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: var(--modal-text-color);
}


.subcategory-name {
 /* font-size: 1em; */
color: #a6508a;
font-weight: bold;
background-color: #F5F5F5;
padding: 5px 10px;
border-radius: 5px;
border: 2px solid #a6508a;
display: inline-block;
}



.footer {
    background: var(--background-color);
    height: 50px;
    clear: both;
    width: 100%;
    margin-top: -2px;
    opacity: 0.8;


}
.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    white-space: nowrap;
}

.copyright p {
    flex: 0 0 auto;
    margin-right: 20px;
    color: var(--primary-color);
    padding: 20px;
    font-size: 20px;
    font-weight: 600;
}


#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background: var(--modal-text-color);
    color: var(--background-color);
    text-align: center;
    line-height: 50px;
    border-radius: 10%;
    font-size: 22px;
    cursor: pointer;
}

#scroll-to-top:hover {
    background: var(--primary-color);
}





/* **********Media Queries for Mobile Responsiveness*************************** */
  @media only screen and (max-width: 768px) {

    .stories-container {
        max-width: 100%;
        padding: 0 10px;
        margin-top: 80px;

    }

    .stories-container .stories {
        width: 100%;
        gap: 5px;
    }

    .post-container{

        padding: 0 10px;
        margin-top: 35px;
        margin-bottom: 65px;
        width: 100%;

       }

    .post {
        width: 100%;
    }
    .post-info {
        margin-left: 0;
        flex: 100%;
        margin-top: 5px;
    }

    .post-options {
        margin-left: 0;
        margin-top: 5px;
    }

    .post-top {
        justify-content: space-between;
    }

    .post-content {
        padding: 10px;
        word-break: break-word;
    }



    .modal-content {
        width: 100%;
        max-width: 1000px;
        margin: auto;
    }

    .modal-image-container {
        width: 100%;
        max-width: 1500px;
        height: auto;


    }

    #modalImage {
        max-width: 1500px;
        max-height: 1500px;
        width: 100%;
        object-fit: contain;
    }

    .modal-info {
        width: 100%;
        font-size: 14px;
        padding: 10px;
    }

    .close {
        top: 8px;
        right: 10px;
        font-size: 30px;
    }

    .prev, .next {
        padding: 10px;
        font-size: 16px;
    }

    .modal-content {
        width: 100%;
        max-width: 90%;
    }

    .modal-image-container {
        height: calc(100vh - 50px);
    }

    #modalImage {
        max-width: 100%;
        max-height: 100%;
    }

    .close {
        top: 8px;
        right: 10px;
        font-size: 30px;
    }

    .prev, .next {
        padding: 10px;
        font-size: 16px;
    }



.modal video {
    max-height: 80vh;
}

.prev, .next {
    padding: 8px;
    margin: 2px;
    font-size: 12px;
}



.single-video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-video video {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
}





    .footer {
        height: auto;
        padding: 1rem;
    }

    .copyright {
        flex-direction: column;
        align-items: center;
    }

    .copyright p {
        margin: 0.5rem 0;
        padding: 0.5rem;
        font-size: 16px;
    }
    #scroll-to-top {
        display: none;
        position: fixed;
        bottom: 10px;
        right: 20px;
        z-index: 99;
        width: 30px;
        height: 30px;
        background: var(--modal-text-color);
        color: var(--background-color);
        text-align: center;
        line-height: 30px;
        border-radius: 10%;
        font-size: 15px;
        cursor: pointer;
    }


.stories-container .previous-btn {
    left: 4px;
}

.stories-container .next-btn {
    right: 4px;
}



}
#preloader {
    position: relative;
  height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color:var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

 .video-background {
        object-fit: contain;
        position: relative;
        width: 100%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
        margin: 0 auto;
        
        position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
    }


@media screen and (max-width: 768px){



    #preloader {
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .video-background {
        object-fit: contain;
        position: relative;
        width: 100%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
        margin: 0 auto;
    }


 @media only screen and (min-width: 768px) and (max-width: 1024px) {

        .stories-container .story {
            width: 189px;
            height: 249px;
            flex-shrink: 0;
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }


        #preloader {
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        .video-background {
            object-fit: contain;
            position: relative;
            width: 100%;
            max-width: 400px;
            height: auto;
            max-height: 80vh;
            margin: 0 auto;
        }
        .modal-nav {
            position: absolute;
            top: 50%;
            width: 117%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            margin-left: 0%;
        }

        .stories-container {
            width: 100%;
            max-width: 150%;
            padding: 0 10px;
            margin-top: 95px;

        }

        .stories-container .stories {
            width: 100%;
            gap: 10px;
        }

        .post-container{

            padding: 0 10px;
            margin-top: 35px;
            margin-bottom: 65px;
            width: 100%;

           }

        .post {
            width: 100%;
        }
        .post-info {
            margin-left: 0;
            flex: 100%;
            margin-top: 5px;
        }

        .post-options {
            margin-left: 0;
            margin-top: 5px;
        }

        .post-top {
            justify-content: space-between;
        }

        .post-content {
            padding: 10px;
            word-break: break-word;
        }



        .modal-content {
            width: 100%;
            max-width: 1000px;
            margin: auto;
        }

        .modal-image-container {
            position: absolute;
            width: 128%;
            max-width: 119%;
            border-radius: 5px;
            height: auto;


        }

        #modalImage {
            max-width: 1500px;
            max-height: 1500px;
            width: 100%;
            object-fit: contain;
        }

        .modal-info {
            width: 100%;
            font-size: 14px;
            padding: 10px;
        }

        .close {
            top: 8px;
            right: 10px;
            font-size: 30px;
        }

        .prev, .next {
            padding: 10px;
            font-size: 16px;
        }

        .modal-content {
            width: 100%;
            max-width: 90%;
        }

        .modal-image-container {
            height: calc(100vh - 50px);
        }

        #modalImage {
            max-width: 100%;
            max-height: 100%;
        }

        .close {
            top: 8px;
            right: 10px;
            font-size: 30px;
        }

        .prev, .next {
            padding: 10px;
            font-size: 16px;
        }



        .modal video {
            max-height: 80vh;
        }

        .prev, .next {
            padding: 8px;
            margin: 2px;
            font-size: 12px;
        }



        .single-video {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .single-video video {
            width: 100%;
            max-width: 800px;
            height: auto;
            object-fit: cover;
        }





        .footer {
            height: auto;
            padding: 1rem;
        }

        .copyright {
            flex-direction: column;
            align-items: center;
        }

        .copyright p {
            margin: 0.5rem 0;
            padding: 0.5rem;
            font-size: 16px;
        }
        #scroll-to-top {
            display: none;
            position: fixed;
            bottom: 10px;
            right: 20px;
            z-index: 99;
            width: 30px;
            height: 30px;
            background: var(--modal-text-color);
            color: var(--background-color);
            text-align: center;
            line-height: 30px;
            border-radius: 10%;
            font-size: 15px;
            cursor: pointer;
        }


        .stories-container .previous-btn {
            left: 4px;
        }

        .stories-container .next-btn {
            right: 4px;
        }
    }
    
    @media (max-width: 370px) {
    .post-actions {
        display: flex;
        flex-direction: row; /* Stack items vertically for better fit */
        justify-content: center;
        align-items: center;
        padding: 8px 0px;
        border-top: 1px solid #e0e0e0;
        background-color: #f9f9f9;
    }

    .post-actions .action {
        cursor: pointer;
        display: flex;
        align-items: center;
        margin: 5px 0; /* Add spacing between actions */
        color: #606770;
        font-size: 13px; /* Slightly smaller font size for tiny screens */
        transition: color 0.3s ease;
        width: 100%; /* Make each action fill available space */
        justify-content: space-evenly; /* Center align for readability */
    }

    .post-actions .action:hover {
        color: var(--primary-color);
    }

    .post-actions .action i {
        margin-right: 3px; /* Reduce margin for better spacing */
        font-size: 11px; /* Slightly smaller icon size */
    }

    .post-actions .action span {
        font-size: 13px; /* Match text size to overall layout */
        position: absolute; 
    }
    .subcategory-name {
        font-size: 8px;
       color: #a6508a;
       font-weight: bold;
       background-color: #F5F5F5;
       padding: 5px 10px;
       border-radius: 5px;
       border: 2px solid #a6508a;
       display: inline-block;
       white-space: nowrap;
       }
}



  

.hearts-button{
    background: none; 
    border: none; 
    cursor: pointer; 
    padding-left: 10px;

}


.subcategory-name {
 /* font-size: 1em; */
color: #a6508a;
font-weight: bold;
background-color: #F5F5F5;
padding: 5px 10px;
border-radius: 5px;
border: 2px solid #a6508a;
display: inline-block;
}
@media (max-width: 480px) {

    .post-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        border-top: 1px solid #e0e0e0;
        background-color: #f9f9f9;
    }
    
    .post-actions .action {
        cursor: pointer;
        display: flex;
        align-items: center;
        color: #606770;
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    .post-actions .action:hover {
        color: var(--primary-color);
    }
    
    .post-actions .action i {
        margin-right: 5px;
        font-size: 18px;
    }
    
    .post-actions .action span {
        font-size: 14px;
    }
    
}
