/*Media Requests*/
@media screen and (max-width: 1600px) {}

@media screen and (max-width: 1442px) {}

@media screen and (max-width: 1378px) {}

@media screen and (max-width: 1251px) {}

@media screen and (max-width: 999px) {}

@media screen and (max-width: 768.98px) {

    #collageCanvasContainerDetach .image-discard-button {
        opacity: 1;
        left: 15px;
        top: 15px;
        width: 17%;
    }
    #collageCanvasContainerDetach .image-success-button{
        opacity: 1;
        right: 15px;
        top: 15px;
        width: 17%;
    }
    #collageCanvasContainerDetach .image-edit-button {
        opacity: 1;
        right: 15px;
        top: 15px;
        width: 15%;
    }
    #collage .library-photos .libraryImageRemove{
        opacity: 1;
        width: 20px;
        height: 20px;
        top: 3px;
        right: 3px;
        background-size: contain;
    }
    #collage .work-space{
        flex-direction: column-reverse;
        height: 100%;
        justify-content: space-between;
    }
    #collage .menu-section{
        flex-direction: row;
        gap: 0;
        justify-content: space-around;
        padding: 0;
    }
    #collage .best__menu{
        width: 100%;
        padding: 8px 15px calc(8px + env(safe-area-inset-bottom));
    }
    #collage .sidebar-title{
        display: none;
    }
    #collage .sidebar-section{
        padding: 0;
    }
    #collage .best__section_one{
        flex-direction: column-reverse;
    }
    #collage .best__sidebar-content_one{
        flex-direction: column-reverse;
    }
    #collage .best__config{
        width: 100%;
        overflow-y: unset;
        overflow-x: unset;
        border: none;
    }
    #collage .best__view{
        width: 100%;
        height: 100%;
    }
    #collage .section-settings-container {
        border:none;
        border-radius: 0;
        margin: 0;
    }
    #collage .sidebar-section{
        border: none;
    }
    #collage .settings-slider span {
        margin-bottom: 0px;
    }
    #collage .settings-slider{
        justify-content: space-between;
        flex-direction: row;
    }
    #collage input[type="range"]{
        width: 60%;
    }
    #collage .control-panel-area {
        display: none;
    }
    .collageSaveButton{
        width: 86px;
    }
    .logo__block{
        display: none;
    }
    .collageSaveButton p{
        display: none;
    }
    .save_space{
        margin-top: 0;
    }
    .best__collage{
        display: flex;
        flex-direction: column;
        /*height: 100dvh;*/
        height: 90vh;
        /*min-height: -webkit-fill-available;*/
        justify-content: space-between;
    }
    @supports (height: 100dvh) {
        .best__collage {
            height: 100dvh; /* Если браузер поддерживает dvh, применяем его */
        }
    }
    .best__header{
        padding: 9px 17px;
    }
    #collage .menu-item::before {
        width: 32px;
        height: 32px;
    }
    #collage .menu-item {
        font-size: 13px;
    }
    .mobileback{
        display: flex;
    }
    .best__section{
        height: auto;
    }
    #collage .collage-template-grid {
        display: flex;
        overflow-y: visible;
        overflow-x: scroll;
        height: auto;
        max-height: none;
        scrollbar-width: thin;
        gap: 10px;
        margin: 0px;
        padding: 11px 17px;
    }
    #collage .collage-template-grid--grid {
        width: 30px;
        height: 30px;
    }
    #collage .collage-template-grid--container {
        width: 40px;
        height: 40px;
        padding: 5px;
    }
    #collage .best__config_container{
        gap: 15px;
        margin-top: 0;
        padding: 15px 28px;
    }
    #collage .settings-slider span {
        font-size: 13px;
    }
    #collage{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    #collage .canvas-section{
        height: 100%;
    }

    /*2*/
    #collage .best__section_two-item{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #collage .section-settings-container--title-pc{
        display: none;
    }
    .best__section_two-item_select{
        width: 70%;
    }
    #collage .section-settings-container--title{
        margin-bottom: 0;
    }
    #collage .best__section_two-item_inner {
        width: 70%;
    }
    #collage .best__sidebar-content_two_container{
        gap: 21px;
        padding: 14px 24px;
    }
    #collage .size-input::after {
        right: 31px;
    }
    #collage .input-number-arrow-container {
        right: 10px;
        gap: 15px;
    }
    #collage .best__section_two-item_inner span{
        font-size: 14px;
    }
    /*3*/
    #collage .sector-grid--head{
        display: none;
    }
    /*.backgrounds_add{*/
    /*    display: none;*/
    /*}*/
    #collage .best__color_word{
        display: none;
    }
    #collage .backgrounds-grid{
        display: flex;
        overflow-y: scroll;
        scrollbar-width: thin;
        margin: 0;
        gap: 20px;
        padding: 0 0 10px 0;
    }

    #collage .backgrounds-sector-grid{
        display: flex;
        overflow-x: scroll;
        scrollbar-width: thin;
        margin-bottom: 0;
        padding: 0 16px;
        justify-content: flex-start;
    }
    #collage .backgrounds-sector-grid>img {
        width: 17%;
        height: 17%;
    }
    #collage .best__section_three_top{
        display: flex;
        flex-direction: column-reverse;
        background: var(--main-color);
        gap: 18px;
        padding: 0 16px;
    }
    #collage .backgrounds-images-container {
        background: var(--main-color);
        padding: 0;
    }
    #collage .best__color_container{
        background: var(--main-color);
        padding: 0;
    }
    #collage .uploadBackgroundImage{
        width: 67%;
        margin: 0 auto;
    }
    #collage .best__section_three_container{
        padding: 18px 0px;
        background: var(--main-color);
        display: flex;
        flex-direction: column;
    }
    #collage .backgrounds-grid>div{
        width: 40px;
        height: 40px;
    }
    #collage .backgrounColorPicker img{
        width: 100%;
        display: block;
        max-width: 100%;
        height: auto;
    }
    .backgrmmenu{
        display: flex;
        overflow-y: scroll;
        scrollbar-width: thin;
        margin: 0;
    }

    /*4*/
    #collage .library-photos{
        display: flex;
        overflow-y: scroll;
        scrollbar-width: thin;
    }
    #collage .library-photos>div{
        width: 75px;
        height: 75px;
    }
    #collage .best__section_four_container{
        gap: 0;
    }
    #collage .best__section_four_btn{
        background-color: unset;
        box-shadow: none;
        width: 30%;
        flex-direction: column;
        padding: 0;
        height: auto;
    }
    #collage .best__section_four_btn p{
        font-size: 12px;
    }
    #collage .best__section_four_btn div{
       width: 30px;
    }
    #collage .best__section_four_btn img{
        width: 100%;
        display: block;
        max-width: 100%;
        height: auto;
    }
    #collage .best__section_four_container-inner{
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        background: var(--main-color);
        padding: 15px 0;
    }
    #collage .best__section_four_btn:hover {
        background-color: unset;
        color: #C9C9C9;
    }

    .best__library_wrapper {
        overflow-y: unset;

    }
    .best__library_wrapper.not_empty{
        padding: 15px;
    }
}

@media screen and (max-width: 600.98px) {}

@media screen and (max-width: 479.98px) {}

@media screen and (max-width: 376.98px) {
    #collage .size-input input, #collage .size-select{
        font-size: 12px;
    }
    #collage .size-input::after {
        right: 29px;
        font-size: 12px;
    }
}

@media screen and (max-width: 360.98px) {}

@media screen and (max-width: 325.98px) {}