/* CSS Document */
@charset "UTF-8";


/*
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 */

:root {
    /*font-size: 10px;*/
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: yekanbakhnum, Arial, sans-serif;
    min-height: 100vh;
    background-color: #fafafa;
    color: #262626;
    /*padding-bottom: 3rem;*/
}

img {
    display: block;
    max-width: 100%;
}

.container {
    /*max-width: 93.5rem;*/
    margin: 0 auto;
    padding: 0 2rem;
}

/*.btn {*/
/*  display: inline-block;*/
/*  font: inherit;*/
/*  background: none;*/
/*  border: none;*/
/*  color: inherit;*/
/*  padding: 0;*/
/*  cursor: pointer;*/
/*}*/

.btn:focus {
    outline: 0.5rem auto #4d90fe;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* Profile Section */

.profile {
    margin: 10rem auto 8rem auto;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 11rem;
}

.item-profile {
    height: 150px;
    display: flex;
    align-items: center;
}

.profile-image {
    /*margin-right: 30px;*/
    position: unset;
    border: solid 4px rgba(249, 250, 251, 1);
    border-radius: 50%;
    top: 6rem;
}

.profile-image img {
    height: 120px;
    width: 120px;
    border-radius: 50%;

    position: unset;
}

.name-profile {
    color: #fff;
    /*font-size: 1.875rem;*/
    line-height: 2.25rem;
    margin-right: 1rem;
}

.name-profile h1 {
    font-size: 2rem;
}

.description {
    color: #fff;
    margin-left: 3rem;
    margin-right: 3rem;
    display: grid;
    align-self: flex-end;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-description {
    height: 88px;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.item-description .first {
    font-size: 1.4rem;
    line-height: 2rem;
    font-weight: 700;
}

.item-description .second {
    font-size: 1.4rem;
    line-height: 1.75rem;
    font-weight: 900;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    /*margin: 6rem 4rem;*/
    margin-top: -6rem;

}

.item-post img {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .25);
    border-radius: 1.5rem;
    width: 100%;
    height: auto;
}

/*.profile::after {*/
/*  content: "";*/
/*  display: block;*/
/*  clear: both;*/
/*}*/

/*.profile-image {*/
/*  float: left;*/
/*  width: calc(33.333% - 1rem);*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center;*/
/*  margin-right: 3rem;*/
/*}*/

/*.profile-image img {*/
/*  border-radius: 50%;*/
/*}*/

/*.profile-user-settings,*/
/*.profile-stats,*/
/*.profile-bio {*/
/*  float: left;*/
/*  width: calc(66.666% - 2rem);*/
/*}*/

/*.profile-user-settings {*/
/*  margin-top: 1.1rem;*/
/*}*/

/*.profile-user-name {*/
/*  display: inline-block;*/
/*  font-size: 3.2rem;*/
/*  font-weight: 300;*/
/*}*/

/*.profile-edit-btn {*/
/*  font-size: 1.4rem;*/
/*  line-height: 1.8;*/
/*  border: 0.1rem solid #dbdbdb;*/
/*  border-radius: 0.3rem;*/
/*  padding: 0 2.4rem;*/
/*  margin-left: 2rem;*/
/*}*/

/*.profile-settings-btn {*/
/*  font-size: 2rem;*/
/*  margin-left: 1rem;*/
/*}*/

/*.profile-stats {*/
/*  margin-top: 2.3rem;*/
/*}*/

/*.profile-stats li {*/
/*  display: inline-block;*/
/*  font-size: 1.6rem;*/
/*  line-height: 1.5;*/
/*  margin-right: 4rem;*/
/*  cursor: pointer;*/
/*}*/

/*.profile-stats li:last-of-type {*/
/*  margin-right: 0;*/
/*}*/

/*.profile-bio {*/
/*  font-size: 1.6rem;*/
/*  font-weight: 400;*/
/*  line-height: 1.5;*/
/*  margin-top: 2.3rem;*/
/*}*/

/*.profile-real-name,*/
/*.profile-stat-count,*/
/*.profile-edit-btn {*/
/*  font-weight: 600;*/
/*}*/

/* Gallery Section */
/*Gallery*/
.left-section {
    position: relative;
    top: 1.5rem;
    background: #2e4049;
    border-radius: 33px;
    padding: 21px 0px;
    border: 3px solid #273740;
    box-shadow: 0px -3px 0px 0px #1b262c;
}

.user-information {
    position: absolute;
    top: 9rem;
    display: flex;
    justify-content: center;
}

.profile-btn {
    background-color: #ffa500;
    width: 162px;
    padding: 5px 0;
    margin-right: 0;
}

.posts {
    display: grid;
    gap: 1rem;
    grid-auto-flow: column;
    /*margin-top:1.5rem;*/
}

.post {
    display: flex;
    align-items: center;
    flex-direction: column;
    grid-row-end: 2;
    grid-row: span 2/span 2;
}

.wrapper-img {
    margin-bottom: 1.25rem;
}

.post-img {
    border-radius: 1rem;
    box-shadow: 2px 3px 12px -2px rgba(0, 0, 0, .5);
}

.title-post {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    position: absolute;
    border-radius: 50px;
    left: .5rem;
    bottom: .5rem;
    background-color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease-in-out;
}

.title-post-img {
    padding-top: 1px;
    padding-bottom: 1px;
    border-radius: 50px;
    height: 1.5rem;
    width: auto;
}

.title-post span {
    color: rgba(31, 41, 55, 1);
    font-size: .75rem;
    line-height: 1rem;
    padding-top: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;

}

/*.gallery {*/
/*  display: flex;*/
/*  flex-wrap: wrap;*/
/*  margin: -1rem -1rem;*/
/*  padding-bottom: 3rem;*/
/*}*/

/*.gallery-item {*/
/*  position: relative;*/
/*  flex: 1 0 22rem;*/
/*  margin: 1rem;*/
/*  color: #fff;*/
/*  cursor: pointer;*/
/*}*/

/*.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: 1.7rem;*/
/*  font-weight: 600;*/
/*}*/

/*.gallery-item-likes {*/
/*  margin-right: 2.2rem;*/
/*}*/

/*.gallery-item-type {*/
/*  position: absolute;*/
/*  top: 1rem;*/
/*  right: 1rem;*/
/*  font-size: 2.5rem;*/
/*  text-shadow: 0.2rem 0.2rem 0.2rem rgba(0, 0, 0, 0.1);*/
/*}*/

/*.fa-clone,*/
/*.fa-comment {*/
/*  transform: rotateY(180deg);*/
/*}*/

/*.gallery-image {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  object-fit: cover;*/
/*}*/

/* Loader */

.loader {
    width: 5rem;
    height: 5rem;
    border: 0.6rem solid #999;
    border-bottom-color: transparent;
    border-radius: 50%;
    margin: 0 auto;
    animation: loader 500ms linear infinite;
}

/* Media Query */

@media screen and (max-width: 40rem) {
    /*.profile {*/
    /*  display: flex;*/
    /*  flex-wrap: wrap;*/
    /*  padding: 4rem 0;*/
    /*}*/
    /*.profile::after {*/
    /*  display: none;*/
    /*}*/
    /*.profile-image,*/
    /*.profile-user-settings,*/
    /*.profile-bio,*/
    /*.profile-stats {*/
    /*  float: none;*/
    /*  width: auto;*/
    /*}*/
    /*.profile-image img {*/
    /*  width: 7.7rem;*/
    /*}*/
    /*.profile-user-settings {*/
    /*  flex-basis: calc(100% - 10.7rem);*/
    /*  display: flex;*/
    /*  flex-wrap: wrap;*/
    /*  margin-top: 1rem;*/
    /*}*/
    /*.profile-user-name {*/
    /*  font-size: 2.2rem;*/
    /*}*/
    /*.profile-edit-btn {*/
    /*  order: 1;*/
    /*  padding: 0;*/
    /*  text-align: center;*/
    /*  margin-top: 1rem;*/
    /*}*/
    /*.profile-edit-btn {*/
    /*  margin-left: 0;*/
    /*}*/
    /*.profile-bio {*/
    /*  font-size: 1.4rem;*/
    /*  margin-top: 1.5rem;*/
    /*}*/
    /*.profile-edit-btn,*/
    /*.profile-bio,*/
    /*.profile-stats {*/
    /*  flex-basis: 100%;*/
    /*}*/
    /*.profile-stats {*/
    /*  order: 1;*/
    /*  margin-top: 1.5rem;*/
    /*}*/
    /*.profile-stats ul {*/
    /*  display: flex;*/
    /*  text-align: center;*/
    /*  padding: 1.2rem 0;*/
    /*  border-top: 0.1rem solid #dadada;*/
    /*  border-bottom: 0.1rem solid #dadada;*/
    /*}*/
    /*.profile-stats li {*/
    /*  font-size: 1.4rem;*/
    /*  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: 3rem;*/
        align-items: center;
    }

    /*.profile-image {*/
    /*  grid-row: 1 / -1;*/
    /*}*/
    /*.gallery {*/
    /*  display: grid;*/
    /*  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));*/
    /*  grid-gap: 2rem;*/
    /*}*/
    /*.profile-image,*/
    /*.profile-user-settings,*/
    /*.profile-stats,*/
    /*.profile-bio,*/
    /*.gallery-item,*/
    /*.gallery {*/
    /*  width: auto;*/
    /*  margin: 0;*/
    /*}*/
    @media (max-width: 40rem) {
        .profile {
            grid-template-columns: auto 1fr;
            grid-row-gap: 1.5rem;
        }

        .profile-image {
            grid-row: 1 / 2;
        }

        .profile-user-settings {
            display: grid;
            grid-template-columns: auto 1fr;
            grid-gap: 1rem;
        }

        .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;
        }
    }
}
