.gifModal {
position: absolute;
bottom: 54px;
left: 0px;
transition: all 0.2s ease 0s;
background: rgb(35, 29, 71);
box-shadow: rgba(0, 0, 0, 0.15) 0px 24px 90px;
border-radius: 16px;
width: 100%;
min-width: 260px;
display: none;
}

.gifModal_header {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: calc(100% - 33px);
    -webkit-box-align: center;
    align-items: center;
    background: rgba(21, 16, 41, 0.25);
    border-radius: 12px 12px 0px 0px;
}

.gifModal_header::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0px;
    left: 0px;
    background: rgb(47, 36, 92);
}

.gifModal_header_text {
    font-family: Rocketfont;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    padding: 14px;
}

.gifModal_content {
width: 100%;
font-size: 16px;
display: inline-block;
color: #222427;
border-radius: 5px;
}

.gifclose {
color: #73738e;
float: right;
font-size: 28px;
font-weight: bold;
}

.gifclose:hover,
.gifclose:focus {
color: #fff;
text-decoration: none;
cursor: pointer;
}

.gifModal_search{
margin: 0px;    
position: relative;
padding: 13px 12px;
}

.gifModal_search::before{
 content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0px;
    left: 0px;
    background: rgb(47, 36, 92);
}

.gifModal_search input {
    background: rgb(27, 22, 55);
    color: white;
    border: none;
    outline: none;
    width: 100%;
    height: 36px;
    display: grid;
    -webkit-box-align: center;
    align-items: center;
    border-radius: 10px;
    padding: 0px 12px;
    font-family: Manrope;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.23px;
}





    #gifPicker {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      margin-top: 10px;
      max-height: 300px; /* Ограничиваем высоту */
      overflow-y: auto; /* Добавляем прокрутку */
      min-height: 300px;
      padding: 10px;
      box-sizing: border-box;
    }

    #gifPicker img {
      max-width: 100px;
      max-height: 100px;
      margin: 5px;
      cursor: pointer;
    }