@media only screen and (max-width: 1605px) {
    .items-wrapper {
      max-width: calc(384px * 3 + 8px * 3);
    }
}

@media only screen and (max-width: 1580px) {
    .main_page-category-navigation {
        align-items: flex-start;
        overflow-x: scroll;
    }
}

@media only screen and (max-width: 1280px) {
    .main_page-image-title {
        width: 646px;
        font-size: 50px;
        line-height: 60px;
    }

    .category-title {
        font-size: 50px;
        margin-bottom: 30px;
    }

    .popup-body {
        display: flex;
        height: 100%;
        overflow: hidden;
        align-items: center;
        flex-direction: column-reverse;
    }

    .popup-main {
        justify-content: flex-end;
    }

    .popup-thumbnails {
        height: 130px;
        width: max-content;
        display: flex;
        margin: 30px 0;
    }

    .popup-thumbnails div {
        min-width: 130px;
        min-height: 130px;
        margin: 0 8px 0 0;
    }

    .popup-image {
        width: 600px;
        height: 600px;
    }

    .popup-nav.right {
        margin-left: 20px;
    }

    .popup-nav.left {
        right: 20px;
    }
}

@media only screen and (max-width: 1200px) {
    .items-wrapper {
      max-width: calc(384px * 2 + 8px * 2);
    }
}

@media only screen and (max-width: 820px) {
    .main_page-image-title {
        width: 546px;
        font-size: 40px;
        line-height: 50px;
    }

    .category-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .main_page-image {
        height: 600px;
    }

    .main_page-category-wrapper {
        width: max-content;
    }

    .category-button {
        height: 40px;
        width: 146px;
        padding: 10px;
        font-size: 14px;
        margin-right: 8px;
    }

    .category-button-count {
        right: 6px;
        top: 3px;
        font-size: 12px;
    }

    .popup-image {
        height: calc(100vh - 130px - 90px - 130px);
        width: 400px;
    }

    .popup-title {
        width: 400px;
        font-size: 16px;
    }

    .popup-close {
        right: 30px;
        top: 30px;
        width: 50px;
        height: 50px;
    }

    .iconClose {
      height: 20px;
      width: 20px;
    }
}

@media only screen and (max-width: 806px) {
    .items-wrapper {
      max-width: calc(384px * 1 + 8px * 1);
    }
}

@media only screen and (max-width: 630px) {
    .main_page-image-title {
        width: 446px;
        font-size: 30px;
        line-height: 40px;
    }

    .category-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .main_page-image-logo {
        height: 28px;
        top: 30px;
        left: 30px;
    }

    .popup-thumbnails {
        height: 80px;
    }

    .popup-thumbnails div {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
    }

    .popup-image {
        height: calc(100vh - 124px - 90px - 30px);
        width: calc(100vw - 60px);
    }

    .popup-nav {
        position: absolute;
    }

    .popup-nav.right {
        right: 20px;
    }

    .popup-nav.left {
        left: 20px;
    }

    .popup-title {
        width: calc(100vw - 60px);
    }
}

@media only screen and (max-width: 470px) {
    .main_page-image-title {
        width: 296px;
        font-size: 20px;
        line-height: 30px;
    }

    .main_page-image-logo {
        height: 28px;
        top: 20px;
        left: 20px;
    }

    .main_page-image {
        height: 300px;
    }
}