* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
    background-color: #121212;
    color: #ccc;
}
.main-area{
    width: 100%;
    position: relative;
    min-height: 100%;
    padding-bottom: 40px;
    min-width: 375px;
}
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    top: 0px;
    z-index: 450;
    justify-content: space-between
}
a{
    color: #4b6fc4;
}
.footer{
    padding: 10px;
    margin-top: 20px;
}
.main-wrapper{
    width:100%;
    min-width:260px
}
.header-logo{
    color: #fff;
    text-decoration: none;
}
.main-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:40px;
    background:#212121;
    box-shadow:0 3px 54px rgba(0,0,0,.6);
    z-index:1001
}
.container{
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    max-width: 990px;
}
.main-content{
    position: relative;
    width: 100%;
}
.header-items{
    display: grid;
    grid-template-columns: 1fr 70px;    
    align-items: center;
    height: 40px;
}
.header__buttons{
    display: inline-flex;
    align-items: center;
    justify-content: end;
}
.h-search-button{
    color: #fff;
    display: grid;
}
.header__burger{
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    z-index: 11;
    cursor: pointer;
    margin-left: 20px;
}
.header__burger span{
    position: absolute;
    background: #fff;
    width: 100%;
    height: 2px;
    left: 0;
    top: 9px;
    transition: all 0.3s ease 0s;
}
.header__burger:before,.header__burger:after{
    content: '';
    background: #fff;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    transition: all 0.3s ease 0s;
}
.header__burger:before{
    top: 0;
}
.header__burger:after{
    bottom: 0;
}
.header__burger.activeMenu:before{
    transform: rotate(45deg);
    top: 9px;
}
.header__burger.activeMenu:after{
    transform: rotate(-45deg);
    bottom: 9px;
}
.header__burger.activeMenu span{
    transform: scale(0);
}
.side-menu {
    position: fixed;
    left: -100%;
    transition: all 0.3s ease 0s;
    z-index: 450;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}
.side-menu.activeMenu{
    background: #292828;
    height: 100%;
    left: 0;
    width: 200px;
}
.main-area{
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 40px;
}
.p-x-15{
    padding-right: 15px;
    padding-left: 15px;
}
.main-header .container{
    padding-right: 15px;
    padding-left: 15px;    
}
.post-body{
    display: grid;
    grid-template-rows: 65px 1fr;
    background: #212121;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}
.post-header{
    display: grid;
    padding: 10px;
    grid-template-columns: 45px 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}
/* .post-media{
    display: grid;
    grid-template-columns: 75% 25%;
} */
/* .post-media img{
    width: 100%;
} */

.post-media {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  max-height: 500px;
}
.post-media > img:only-child {
  grid-column: 1 / -1; /* на всю ширину */
  grid-row: 1 / -1;    /* на всю высоту */
}

.post-media .big {
  grid-row: 1 / 3; /* занимает две строки */
  grid-column: 1 / 2; /* левая колонка */
}

.post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-main-image{
    width: 100%;
}
.media-avatar{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
}
.model-media-avatar{
    width: 90px;
    height: 90px;
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
    border: 3px solid #ff408a;
}
.media-avatar-link{
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.post-header-av-link{
    font-weight: 700;
    text-decoration: none;    
    margin-left: 10px;
}
.aliases{
    margin-left: 10px;
    color: #999;
    font-size: 14px;
    line-height: 16px;
}
.model-header{
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
}
.model-ava-link{
    padding: 20px;
}
.model-alias-or-name{
    padding-bottom: 10px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}
.model-social-links{
    margin-top: 10px;
}
.social-link{
    display: inline-flex;
    margin: 0 10px;
    color: #fff;
    background: #f372ac;
    border-radius: 20px;
    font-size: 14px;
    padding: 8px 26px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.insta{    
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.onlyfans{    
    background: #14b6f5;
}
.model-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px; 
}

.model-gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.model-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-img{
    width: 100%;
}
.pagination{
    text-align: center;
    margin-top: 20px;
}
.random-models-side{
    display: grid;
    grid-template-columns: 55px 1fr;
    margin-top: 6px;
    align-items: center;
}
.side-menu a{
    text-decoration: none;
    font-weight: 700;
}
.side-elements>a{
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #212121;
}
.email-container{
    align-items: center;
    text-align: center;
}
.random-model-side-link{    
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
    border: 2px solid #ff408a;
}
.random-model-side-link img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    vertical-align: middle;
    object-fit: cover;
}
.side-elements{
    margin-top: 30px;
}
.gallery-header{
    margin-top: 20px;
    background: #212121;
    padding: 14px;
    border-radius: 10px 10px 0 0;
}
.homepage-h1{
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

.search-form-container {
  max-width: 600px;          /* ограничиваем ширину */
  margin: 20px auto;         /* центрируем по горизонтали */
}

.search-form-container form {
  display: grid;
  grid-template-columns: 1fr auto; /* поле занимает всю ширину, кнопка только по размеру */
}

.search-form-container input[type="text"] {
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s;
}

.search-form-container input[type="text"]:focus {
  border-color: #ff4081; /* розовый акцент при фокусе */
}

.search-form-container .pink-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ff4081;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #ff4081;
}

.search-form-container .pink-btn:hover {
  background-color: #e91e63;
}
.random-models-page{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
}
.random-model-page-link{
    width: 100%;
    vertical-align: middle;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.random-model-page-link img{
    width: 100%;
    height: 100%;
    vertical-align: middle;
    object-fit: cover;
}

@media (min-width: 540px) {
    .model-gallery {
      grid-template-columns: repeat(3, 1fr); /* 2 колонки */
    }
}

@media (min-width: 760px) {
    .model-media-avatar{
        width: 150px;
        height: 150px;
    }
    .model-gallery {
      grid-template-columns: repeat(4, 1fr); /* 2 колонки */
    }
    .random-models-page{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }

}

@media (min-width: 990px) {
    .main-header .container{
        padding-right: 0;
        padding-left: 0;   
    }
    .main-area{
        grid-template-columns: 200px 1fr;
        gap: 10px;
    }
    .header__burger{
        display: none;
    }
    .side-menu{
        position: relative;
        left: 0;
    }
}

