
body {
    background-color: #121212; /* Черный */
    color: #fff; /* Белый */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;*/
    height: 100vh;
    /*background-image: url('/static/logo.png');*/
    background-size: cover;
    background-repeat: no-repeat;
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: rgba(0, 0, 0, 0);
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #333;
}

body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0);
}

.line {
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: #333;
    top: 0px;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.logotext {
    background: rgba(255, 255, 255, 0);
    cursor: pointer;
    width: 235px;
}

.line img {
    width: 60px;
    margin-top: -1px;
}

.texttop {
    position: absolute;
    margin-top: -50px;
    margin-left: 60px;
    font-size: 35px;
}




.menu {
    position: fixed;
    height: 100vh;
    width: max-content;
    background-color: #212121;
    z-index: 5;
    margin-left: -109px;
}

.menu ol {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 163px;
    z-index: 5;
}

.menu ol li {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    z-index: 5;
}

.menu ol li:hover { 
    background-color: #696969;
    z-index: 5;
}

.menu span {
    margin-left: 107px;
    /*opacity: 1;*/
    /*margin-top: 15px;*/
    transition: margin-left .4s ease-out, font-size .4s ease-in-out, opacity .4s ease-in;
    z-index: 5;
}

.menu li span img { height: auto; width: 50px; }

.menu:not(:hover) span {
    margin-left: 0;
    font-size: 0;
    opacity: 0;
    transition: margin-left .4s ease-in-out, font-size .4s ease-in-out, opacity .4s ease-out;
}


.ava {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #6b4164;
    margin-top: 10px;
    margin-left: 10px;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
}

.avafon {
    position: absolute;
    background: conic-gradient(from 268.36deg at 50% 50%, #8A4AD8 -5.63deg, #079DFD 10.4deg, #D01DC4 342.54deg, #8A4AD8 354.37deg, #079DFD 370.4deg);
    background-size: cover;
    height: 220px;
    width: 220px;
    margin: 15px 40px;
    border-radius: 50%;
}

.ava1 {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #6b4164;
    margin-top: 5px;
    margin-left: 5px;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 3;
}

.avafon1 {
    position: absolute;
    background:
     black;
     /* conic-gradient(from 268.36deg at 50% 50%, #8A4AD8 -5.63deg, #079DFD 10.4deg, #D01DC4 342.54deg, #8A4AD8 354.37deg, #079DFD 370.4deg); */
    background-size: cover;
    height: 80px;
    width: 80px;
    margin-left: 6px;
    margin-top: -5px;
    border-radius: 50%;
    z-index: 5;
}

.avafon2 {
    position: absolute;
    background: linear-gradient(225deg, #A9189B 0%, #0077AA 100%);
    background-size: cover;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    z-index: 2;
}

.avafon3 {
    position: absolute;
    background: linear-gradient(225deg, #D51AC3 0%, #00B2FF 100%);
    background-size: cover;
    height: 80px;
    width: 80px;
    margin-left: 3px;
    margin-top: -3px;
    border-radius: 50%;
    z-index: 1;
}

.hidava1 {
    background: rgba(0,0,0,0);
    background-size: cover;
    height: 70px;
    width: 60px;
    margin-left: -25px;
    border-radius: 50%;
}



.profile {
    position: absolute;
    top: 80px;
    background-color: #333; /* Темно-серый */
    /*padding: 20px;*/
    border-radius: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    width: 990px;
    height: 350px;
    transform: translate(-50%, 0%);
    left: 50%;
}

.coveri {
    position: absolute;
    background-color: #000;
    border-radius: 19px 19px 0px 0px;
    width: 990px;
    height: 260px;
    background-position: center; 
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.undercover {
    position: absolute;
    background-color: #333;
    border-radius: 6px 6px 19px 19px;
    width: 990px;
    height: 94px;
    margin-top: 256px;
    z-index: 1;
}

ul.hr {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

ul.hr li {
    display: inline;
    padding: 17.5px 15px;
    cursor: pointer;
}

ul.hr li.one {
    z-index: 5;
    border-radius: 6px 0px 0px 19px;
}

ul.hr li.one:hover { 
    background-color: #696969;
    z-index: 5;
    border-radius: 6px 0px 0px 19px;
}

ul.hr li.two {
    z-index: 5;
    border-radius: 0px;
}

ul.hr li.two:hover { 
    background-color: #696969;
    z-index: 5;
    border-radius: 0px;
}

ul.hr li.three { 
    z-index: 5;
    border-radius: 0px 6px 19px 0px;
}

ul.hr li.three:hover { 
    background-color: #696969;
    z-index: 5;
    border-radius: 0px 6px 19px 0px;
}

ul.hr li img { height: 55px; width: auto; }

ul.hr2 {
    position: absolute;
    margin-left: 450px;
    margin-top: -67px;
    padding: 0;
    display: flex;
    align-items: center;
}

ul.hr2 li {
    display: inline;
    padding: 17.5px 15px;
    cursor: pointer;
}

ul.hr2 li img { height: 40px; width: auto; }

.avanameonline {
    background: rgba(255,255,255,0);
    height: 350px;
    width: 300px;
    margin-left: 604px;
}

.name-surname {
    position: absolute;
    background-color: #8F00FF;
    padding: 5px 10px;
    border-radius: 50px;
    transform: translate(-50%, 0%);
    margin-left: 150px;
    margin-top: 268px;
    border: solid 2px white;
    z-index: 2;
}

.online {
    position: absolute;
    background-color: #8F00FF;
    padding: 5px 10px;
    border-radius: 50px;
    transform: translate(-50%, 0%);
    margin-left: 150px;
    margin-top: 309px;
    border: solid 2px white;
    z-index: 2;
    max-width: 300px;
}

.online-curcle {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(101, 192, 58, 1);
    margin-top: 2px;
    margin-left: -3px;
}

.setilevel {
    background: rgba(255,255,255,0);
    height: 350px;
    width: 84px;
    margin-left: 906px;
    margin-top: -350px;
    border-radius: 0px 19px 19px 0px;
}

.setilevel ol {
    list-style: none;
    margin: 0;
    padding: 0;
    /*margin-top: 163px;*/
    z-index: 2;
}

.setilevel ol li {
    margin: 0;
    display: flex;
    align-items: center;
    padding: 7px 17px;
    /*cursor: pointer;*/
    z-index: 2;
}

.setilevel ol li img {
    width: 50px;
    height: 50px;
    z-index: 2;
}

.leveltext {
    position: absolute;
    width: 84px;
    height: 94px;
    background-color: rgba(255,255,255,0);
    z-index: 2;
    border-radius: 0px 6px 19px 0px;
}

.leveltext text {
    position: absolute;
    transform: translate(-50%, 0%);
    margin-left: 50%;
    margin-top: 18px;
}

.level {
    position: absolute;
    background-color: #8F00FF;
    padding: 5px 10px;
    border-radius: 50px;
    transform: translate(-50%, 0%);
    margin-left: 50%;
    margin-top: 44px;
    border: solid 2px white;
    cursor: pointer;
    z-index: 2;
}

.avatar {
  position: fixed;
  height: 200px;
  width: 300px;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99;
  transform: translate(50%,50%);
  right: 50%;
  bottom: 50%;
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(15px);
  mask: blur;
}
    
.pencil {
  cursor: pointer;
  height: 35px;
  width: 35px;
  /*background-color: rgba(0, 0, 0, 0.55);*/
  background-color: #666;
  background-image: url('/static/pencil.png');
  /*border: 1px solid white;*/
  border: 1px solid #666;
  border-radius: 50%;
  position: static;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: 155px;
  margin-top: 155px;
}

.unpencil {
  cursor: pointer;
  display: block;
  width: 30px;
  height: 30px;
  --weight: 3px;
  --aa: 1px; /* anti-aliasing */
  --color: white;
  border-radius: 3px;
  background:
    linear-gradient(45deg, transparent calc(50% - var(--weight) - var(--aa)), var(--color) calc(50% - var(--weight)), var(--color) calc(50% + var(--weight)), transparent calc(50% + var(--weight) + var(--aa))),
    linear-gradient(-45deg, transparent calc(50% - var(--weight) - var(--aa)), var(--color) calc(50% - var(--weight)), var(--color) calc(50% + var(--weight)), transparent calc(50% + var(--weight) + var(--aa)));
  position: absolute;
  margin-left: 270px;
}

#avatar-container {
    cursor: pointer;
    width: 250px;
    height: 150px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: black;
}

/* #avatar {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
} */

#avatar-background {
    width: 250px;
    height: 80px;
    background-color: white;
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#avatar-background:hover {
    background-color: #f0f0f0;
}

#avatar-label {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
}

.change_cover {
  cursor: pointer;
  height: 30px;
  width: 182px;
  /*background-color: rgba(0, 0, 0, 0.55);*/
  background-color: #666;
  /*border: 1px solid white; */
  border: 1px solid #666;
  border-radius: 7px;
  position: fixed;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: 10px;
  margin-top: 10px;
}

.pencil2 {
  cursor: pointer;
  height: 26px;
  width: 26px;
  background-color: none;
  background-image: url('/static/pencil.png');
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  margin-left: 5px;
  margin-top: 2px;
}

.cover {
  position: fixed;
  height: 200px;
  width: 300px;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99;
  transform: translate(50%,50%);
  right: 50%;
  bottom: 50%;
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(15px);
  mask: blur;
}

#cover-container {
    cursor: pointer;
    width: 250px;
    height: 150px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: black;
}
/* 
#cover {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
} */

#cover-background {
    width: 250px;
    height: 80px;
    background-color: white;
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cover-background:hover {
    background-color: #f0f0f0;
}

#cover-label {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
}



.add-foto {
    cursor: pointer;
    height: 30px;
    width: auto;
    /*background-color: rgba(0, 0, 0, 0.55);*/
    background-color: #666;
    /*border: 1px solid white; */
    border: 1px solid #666;
    border-radius: 7px;
    /* position: fixed; */
    /* margin-left: 17.5px; */
    margin-top: 10px;
    padding: 10px 15px 7px;
    font-size: 20px;
    text-align: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.add-foto:hover {
    background-color: #777;
    border: 1px solid #777;
}

.photo {
    position: fixed;
    height: 200px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99;
    transform: translate(50%,50%);
    right: 50%;
    bottom: 50%;
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(15px);
    mask: blur;
}

#photo-container {
    cursor: pointer;
    width: 250px;
    height: 150px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    color: black;
}
/* 
#photo {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
} */

#photo-background {
    width: 250px;
    height: 80px;
    background-color: white;
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#photo-background:hover {
    background-color: #f0f0f0;
}

#photo-label {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
}

.container-fot {
    position: absolute;
    top: 445px;
    background-color: #333; /* Темно-серый */
    /*padding: 20px;*/
    border-radius: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    width: 990px;
    height: 350px;
    transform: translate(-50%, 0%);
    left: 50%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.container-fot::-webkit-scrollbar {
    width: 10px;
    background-color: rgba(0, 0, 0, 0);
}

.container-fot::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #444;
}

.container-fot::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0);
}

.container-music {
    position: absolute;
    top: 445px;
    background-color: #333; /* Темно-серый */
    /*padding: 20px;*/
    border-radius: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    width: 990px;
    height: 350px;
    transform: translate(-50%, 0%);
    left: 50%;
    display: none;
}

.container-clip {
    position: absolute;
    top: 445px;
    background-color: #333; /* Темно-серый */
    /*padding: 20px;*/
    border-radius: 19px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    width: 990px;
    height: 350px;
    transform: translate(-50%, 0%);
    left: 50%;
    display: none;
}

.not-en {
    transform: translate(-50%, -50%);
    margin-left: 495px;
    margin-top: -205px;
    text-align: center;
    align-items: center;
    border-radius: 19px;
    
    font-size: 40px;
}

.not-en b {
    z-index: 6;
}

.not-en-photo {
    transform: translate(-50%, -50%);
    margin-left: 495px;
    margin-top: 170px;
    text-align: center;
    align-items: center;
    border-radius: 19px;
    
    font-size: 40px;
}

.not-en-photo b {
    z-index: 6;
}

.not-en-all {
    transform: translate(-50%, -50%);
    margin-left: 495px;
    margin-top: -170px;
    text-align: center;
    align-items: center;
    border-radius: 19px;
    
    font-size: 40px;
}

.not-en-all b {
    z-index: 6;
}

.add-foto-none {
    position:absolute;
    cursor: pointer;
    height: 30px;
    width: 142px;
    transform: translate(-50%, 0%);
    /*background-color: rgba(0, 0, 0, 0.55);*/
    background-color: #666;
    /*border: 1px solid white; */
    border: 1px solid #666;
    border-radius: 7px;
    /* position: fixed; */
    margin-left: 50%;
    margin-top: 175px;
    padding: 8px 10px;
    font-size: 20px;
    z-index: 6;
}

.remove-photo {
    width: 30px;
    height: 30px;
    background-color: #444444;
    border-radius: 100%;
    background-image: url("/static/trash.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    cursor: pointer;
    transition: margin-left .2s ease-out, font-size .2s ease-in-out, opacity .2s ease-in;
}

.remove-photo:not(:hover) {
    margin-left: 0;
    font-size: 0;
    opacity: 0.5;
    transition: margin-left .2s ease-in-out, font-size .2s ease-in-out, opacity .2s ease-out;
}


.foto {
    width: 145px;
    height: 145px;
    background-color: #444;
    border-radius: 8px;
    z-index: 2;
}

ul.hor {
    margin: 0px;
    margin-left: 10px;
    margin-top: 10px;
    /* margin-bottom: 10px; */
    padding: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    list-style: none;
    z-index: 0;
}

ul.hor li {
    /* display: inline; */
    padding: 10px 7.5px;
    border-radius: 8px;
    z-index: 0;
}

.profile-feed{
  width: 990px;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  padding-top: 810px; /* если тебе нужно сохранить отступ от верха страницы */
}

.container-writepost,
.container-posts{
  position: relative;      /* или просто убрать position вообще */
  left: auto;
  top: auto;
  transform: none;

  background-color: #333;
  border-radius: 19px;
  box-shadow: 0 4px 8px rgba(0,0,0,.6);

  height: auto;
  padding: 18px 18px 28px;
  box-sizing: border-box;
}

.container-writepost {
    padding: 10px 18px 18px;
}

.container-posts{ margin-top: 16px; min-height: 100px;} /* отступ между блоками */


/*.container-writepost .hhhhhhh {*/
/*    position: absolute;*/
/*    margin-top: 15px;*/
/*    background-color: #666;*/
/*    border: none;*/
/*    border-radius: 15px;*/
/*    width: 950px;*/
/*    height: 50px;*/
/*    min-height: 50px;*/
/*    transform: translate(-50%, 0%);*/
/*    left: 50%;*/
/*    color: white;*/
/*    font-size: 22px;*/
/*    box-sizing: border-box;*/
/*}*/


.textarea {
    /* position: absolute; */
    margin-top: 15px;
    background-color: #666;
    font-size: 24px;
    font-family: Arial;
    border: none;
    border-radius: 15px;
    resize: none;
    padding: 5px;
    overflow: hidden;
    box-sizing: border-box;
    height: 70px;
    min-height: 70px;
    width: 950px;
    /* transform: translate(-50%, 0%); */
    left: 50%;
    color: white;
}


/* контейнер картинок в посте */
.post-images {
--gap: 10px;
display: flex;
flex-wrap: wrap;
gap: var(--gap);
margin-top: 10px;
}

/* "плашка" как в телеге: фон чуть больше картинки */
.post-img-wrap {
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 6px;                /* это "фон чуть больше картинки" */
overflow: hidden;
}

/* сама картинка */
.post-img-wrap img {
display: block;
width: 100%;
height: auto;
border-radius: 12px;         /* чуть меньше, чем у обёртки */
}

/* 1 картинка */
.post-images[data-count="1"] .post-img-wrap {
width: 100%;
}

.post-images[data-count="2"] .post-img-wrap {
width: calc((100% - (var(--gap) * 2)) / 2);;
}

.post-images[data-count="3"] .post-img-wrap {
width: calc((100% - (var(--gap) * 3)) / 3);
}

.post-images[data-count="4"] .post-img-wrap {
width: calc((100% - (var(--gap) * 4)) / 4);;
}

.post-img-wrap { padding: 0; }          /* тогда фон = сама рамка */
.post-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.post-actions{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* левое выравнивание */
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* прячем настоящий input */
.postImages{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* общая база кнопок */
.post-btn{
  cursor: pointer;
  border-radius: 7px;
  /* padding: 8px 10px; */
  font-size: 18px;
  color: #fff;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

.post-btn:active{
  transform: translateY(1px);
}

/* "Выбрать фото" как твой add-foto */
.post-btn-file{
  height: 46px;
  width: 160px;
  background-color: #666;
  border-color: #666;
}

.post-btn-file:hover{
  background-color: #777;
  border-color: #777;
}

/* "Опубликовать" */
.post-btn-send{
  height: 46px;
  min-width: 190px;
  background-color: #D51AC3;
  border-color: #D51AC3;
}

.post-btn-send:hover{
  background-color: #b814a6;
  border-color: #b814a6;
}

.post-images-hint{
  margin-top: 8px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

.no-posts {
    transform: translate(-50%, -50%);
    margin-left: 50%;
    /* margin-top: ; */
    text-align: center;
    align-items: center;
    border-radius: 19px;
    
    font-size: 20px;
}

.no-posts b {
    z-index: 6;
}

/* hover на превью */
.post-img-wrap{
  position: relative;
  transition: transform .12s ease, filter .12s ease;
}
.post-img-wrap:hover{
  transform: scale(1.01);
  filter: brightness(1.05);
}

/* лайтбокс */
.lb{
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.lb-bg{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.86);
}
.lb-ui{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lb-img{
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px;              /* “фон больше картинки”, как просил */
  object-fit: contain;
}

/* стрелки: по центру по вертикали, почти прозрачные, проявляются на hover */
.lb-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 96px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;

  color: rgba(255,255,255,.92);
  font-size: 56px;
  line-height: 1;

  background: rgba(255,255,255,.06);
  opacity: .15;
  transition: opacity .15s ease, background-color .15s ease;
}
.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

.lb:hover .lb-arrow{ opacity: .85; }           /* при наведении на область */
.lb-arrow:hover{ background: rgba(255,255,255,.10); }

.lb-arrow[disabled]{
  display: none; /* нет стрелки на первой/последней */
}

/* закрыть */
.lb-close{
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;

  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  opacity: .8;
}
.lb-close:hover{ opacity: 1; }

.post-img-wrap,
.post-img-wrap img{
  cursor: pointer;
}

.post-img-wrap{
  transition: transform .12s ease, filter .12s ease;
}
.post-img-wrap:hover{
  transform: scale(1.01);
  filter: brightness(1.05);
}
.foto{
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.foto:hover{
  transform: scale(1.01);
  filter: brightness(1.05);
}
.photo-actions{
  display:flex;
  gap: 12px;
  align-items:center;
  margin: 14px 0 10px 17.5px;
}

/* кнопку "Удалить" вправо */
.delete-foto{
  margin-left: 525px; /* прижать вправо */
  background-color: #dd1111;
  border-color: #dd1111;
}

/* disabled-вид */
.add-foto.disabled{
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

/* чекбокс по умолчанию скрыт, появляется в режиме редактирования */
.foto{
  position: relative;
}
.photo-check,
.photo-check-ui{
  display: none;
}

.container-fot.edit-mode .photo-check,
.container-fot.edit-mode .photo-check-ui{
  display: block;
}

/* сам checkbox делаем невидимым, кликаем по UI */
.photo-check{
  position:absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0; /* скрыли стандартный */
  z-index: 3;
  cursor: pointer;
}

/* кружок поверх */
.photo-check-ui{
  position:absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(0,0,0,.25);
  z-index: 2;
  pointer-events: none;
}

/* галочка/заливка когда выбрано */
.photo-check:checked + .photo-check-ui{
  background: rgba(213,26,195,.85);
  border-color: rgba(213,26,195,1);
  box-shadow: 0 0 0 3px rgba(213,26,195,.25);
}
#deleteSelectedBtn { display: none; }

/* показываем только в режиме редактирования */
.container-fot.edit-mode #deleteSelectedBtn{
  display: inline-flex;
}