/*

All grid code is placed in a 'supports' rule (feature query) at the bottom of the CSS (Line 310). 
        
The 'supports' rule will only run if your browser supports CSS grid.

Flexbox and floats are used as a fallback so that browsers which don't support grid will still recieve a similar layout.

*/

/* Base Styles */



::before,
::after {
    box-sizing: border-box;
}



img {
    display: block;
}

.container2 {
    max-width: 935px;
    margin: 0 auto;
    padding: 0 20px;
}

.container2 .btn {
    display: inline-block;
    font: inherit;
    background: none;
    color: inherit;
    
    cursor: pointer;
}

.container2 .btn:focus {
    outline: 5px auto #4d90fe;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* Profile Section */

.profile {
    padding: 50px 0;
}

.profile::after {
    content: "";
    display: block;
    clear: both;
}

.profile-image {
    float: left;
    width: calc(33.333% - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
}

.profile-image img {
    border-radius: 50%;
    height: 152px;
    width: 152px;
    object-fit: cover
}

.profile-user-settings,
.profile-stats,
.profile-bio {
    float: left;
    width: calc(66.666% - 20px);
}

.profile-user-settings {
    margin-top: 11px;
}

.profile-user-name {
    display: inline-block;
    font-size: 32px;
    font-weight: 300;
}

.profile-edit-btn {
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid #dbdbdb;
    border-radius: 3px;
    padding: 0 24px;
    margin-left: 20px;
}

.profile-settings-btn {
    font-size: 20px;
    margin-left: 10px;
}

.profile-stats {
    margin-top: 23px;
}

.profile-stats ul{
    padding: 0;
}

.profile-stats li {
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    margin-right: 40px;
    cursor: pointer;
}

.profile-stats li:last-of-type {
    margin-right: 0;
}

.profile-bio {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 23px;
}

.profile-real-name,
.profile-stat-count,
.profile-edit-btn {
    font-weight: 600;
}

/* Gallery Section */

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -10px -10px;
    padding-bottom: 30px;
}

.gallery-item {
    position: relative;
    flex: 1 0 220px;
    margin: 10px;
    color: #fff;
    cursor: pointer;
    height: 180px;
}

.gallery-item:hover .gallery-item-info,
.gallery-item:focus .gallery-item-info {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.gallery-item-info {
    display: none;
}

.gallery-item-info li {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
}

.gallery-item-info ul{
    padding: 0;
}

.gallery-item-likes {
    margin-right: 22px;
}

.gallery-item-type {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.fa-clone,
.fa-comment {
    transform: rotateY(180deg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 975px) {
    .gallery-item {
    height: 222px;
    }
}

/* Media Query */

@media screen and (max-width: 850px) {
    .gallery-item {
    height: 183px;
    }

    .profile {
        display: flex;
        flex-wrap: wrap;
        padding: 40px 0 20px 0;
    }

    .profile::after {
        display: none;
    }

    .profile-image,
    .profile-user-settings,
    .profile-bio,
    .profile-stats {
        float: none;
        width: auto;
    }

    .profile-image img {
        width: 77px;
        height: 77px;
    }

    .profile-user-settings {
        flex-basis: calc(100% - 107px);
        display: flex;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .profile-user-name {
        font-size: 22px;
    }

    .profile-edit-btn {
        order: 1;
        text-align: center;
        margin-top: 10px;
    }

    .profile-edit-btn {
        margin-left: 0;
    }

    .profile-bio {
        font-size: 14px;
        margin-top: 15px;
    }

    .profile-edit-btn,
    .profile-bio,
    .profile-stats {
        flex-basis: 100%;
    }

    .profile-stats {
        order: 1;
        margin-top: 15px;
    }

    .profile-stats ul {
        display: flex;
        text-align: center;
        padding: 12px 0;
        border-top: 1px solid #dadada;
        border-bottom: 1px solid #dadada;
    }

    .profile-stats li {
        font-size: 14px;
        flex: 1;
        margin: 0;
    }

    .profile-stat-count {
        display: block;
    }
}

/* Spinner Animation */

@keyframes loader {
    to {
        transform: rotate(360deg);
    }
}

/*

The following code will only run if your browser supports CSS grid.

Remove or comment-out the code block below to see how the browser will fall-back to flexbox & floated styling. 

*/

@supports (display: grid) {
    .profile {
        display: grid;
        grid-template-columns: 1fr 2fr;
        grid-template-rows: repeat(3, auto);
        grid-column-gap: 30px;
        align-items: center;
    }

    .profile-image {
        grid-row: 1 / -1;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-gap: 20px;
    }

    .profile-image,
    .profile-user-settings,
    .profile-stats,
    .profile-bio,
    .gallery-item,
    .gallery {
        width: auto;
        margin: 0;
    }


    @media screen and (max-width: 975px) {
        .gallery-item {
        height: 222px;
        }
    }

    @media (max-width: 850px) {
        .gallery-item {
            height: 183px;
            }

        .profile {
            grid-template-columns: auto 1fr;
            grid-row-gap: 15px;
        }

        .profile-image {
            grid-row: 1 / 2;
        }

        .profile-user-settings {
            display: grid;
            grid-template-columns: auto 1fr;
            grid-gap: 10px;
        }

        .profile-edit-btn,
        .profile-stats,
        .profile-bio {
            grid-column: 1 / -1;
        }

        .profile-user-settings,
        .profile-edit-btn,
        .profile-settings-btn,
        .profile-bio,
        .profile-stats {
            margin: 0;
        }
    }
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

.main{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -40px;
}

.wrapper{
    width: 98%;
    max-width: 1000px;
    display: flex;
    grid-gap: 30px;
}

.wrapper2{
    width: 60%;
    max-width: 1000px;
    display: grid;
    grid-gap: 30px;
}

.left-col{
    display: flex;
    flex-direction: column;
}

.status-wrapper{
    width: 100%;
    height: 120px;
    border-radius: 2px;
    padding: 10px;
    padding-right: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    overflow-x: auto;
}

.status-wrapper::-webkit-scrollbar{
    display: none;
}

.status-card{
    flex: 0 0 auto;
    width: 80px;
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
}

.profile-pic{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    padding: 5px;
}

.profile-pic img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

.reel-info{
    width: 100%;
    overflow: hidden;
    text-align: center;
    font-size: 12px;
    margin-top:5px;
    color: white;
}

.username{
    width: 100%;
    overflow: hidden;
    text-align: center;
    font-size: 12px;
    margin-top:5px;
    color: rgba(0, 0, 0, 0.5)
}

.post{
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #dfdfdf;
}

.info{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.info .username{
    width: auto;
    font-weight: bold;
    color: #000;
    font-size: 14px;
    margin: auto 10px
}

.info .options{
    height: 10px;
    cursor: pointer;
}

.info .user{
    display: flex;
    align-items: center;
}

.info .profile-pic{
    height: 40px;
    width: 40px;
    padding: 0;
    background: none;
}

.info .profile-pic img{
    border: none;
}

.post-image{
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.post-content{
    padding: 20px;
}

.post-content .likes{
    font-weight: bold;
    margin: 0 0 0 0;
    text-align: left
}

.post-content .description{
    margin: 10px 0;
    font-size: 14px;
    line-height: 20px;
    text-align: left
}

.description{
    display: inline;
}

.description span{
    font-weight: bold;
    margin-right: 10px;
}

.post-content .post-time{
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    margin: 0 0 0 0;
    text-align: left
}

.comment-wrapper{
    width: 100%;
    height: 50px;
    border-radius: 1px solid #dfdfdf;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-wrapper .icon{
    height: 30px;
    margin: 16px;
}

.comment-box{
    width: 80%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #737373;
}

.comment-btn,
.action-btn{
    width: 70px;
    height: 100%;
    background: none;
    border: none;
    outline: none;
    text-transform: capitalize;
    font-size: 16px;
    color: black;
}

.reaction-wrapper{
    width: 100%;
    height: 50px;
    display: flex;
    margin-top: -20px;
    align-items: center;
}

.reaction-wrapper .icon{
    height: 25px;
    margin: 0;
    margin-right: 20px;
    color: black;
}

.reaction-wrapper .icon.save{
    margin-left: auto;
    margin-right: 0;
}






.img-container{
    position: relative;
}



/******** js related *******/

.image-view{
    position: fixed;
    top: 0;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    display: none;
}

.image-box{
    display: none;
}

#prev-btn, #next-btn{
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s ease;
    cursor: pointer;
}

#prev-btn{
    border-right: 40px solid grey;
    left: 0px;
}

#next-btn{
    border-left: 40px solid grey;
    right: 0px
}

#next-btn:hover, #prev-btn:hover{
    opacity: 0.6;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
    
  }
  
  @keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
  }


/****** media queries *******/
li {
    list-style-type: none
}

.mobile-only {
    display: none;
  }

@media only screen and (max-width: 850px) {
    .mobile-only {
      display: block;
    }
  }
  @media only screen and (max-width: 850px) {
    .desktop-only {
      display: none;
    }

    .profile-stats{
        display: none;
    }
  }

  .tabs {
    border-top: 1px solid hsl(0, 0%, 86%);
    display: flex;
    justify-content: center;
  }

  .tab-item span {
    font-size: 15px;
    font-weight: 600;
    margin-left: 6px;
  }
  .tab-item {
    display: flex;
    align-items: center;
    height: 52px;
  }
  .tab-item.active2 {
    border-top: 1px solid rgb(0, 149, 246);
    margin-top: -1px;
    color: rgb(0, 149, 246);
  }

  .mobile-tabs li {
    font-size: 14px;
    font-weight: 400;
    
    line-height: 18px;
    text-align: center;
  }
  .mobile-tabs li div {
    font-weight: 600;
    
  }
  .mobile-tabs ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 0;
    border-top: 1px solid rgb(219, 219, 219);
  }
  .mobile-tabs .actions {
    display: flex;
    justify-content: space-around;
    height: 44px;
    align-items: center;
    border-top: 1px solid rgb(219, 219, 219);
  }

  




