html {
    scroll-behavior: smooth;
}

.project_single__image {
    cursor: pointer;
    transition:
        height 1s ease-in-out,
        width 1s ease-in-out;
    object-fit: cover;
    width: 25vw;
}

.project_single__image--first {
    object-fit: cover;
}

.row {
    scroll-margin: 75px;
}

.project_single__image--expand {
    cursor: ew-resize;
}

.project_single__image--expand-height {
    height: 70vh !important;
}

.project_single__image--expand-width {
    width: auto;
}

.project_single__content {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    width: 100%;
}

.project_single__images_wrapper {
    margin: 0 auto;
}

.project_single__swiper {
    margin: 0;
    margin-top: 50px;
    width: 100%;
}

.project_single__first {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    margin-right: 1.5rem;
    padding-left: 2rem;
    text-align: right;
    text-align: left;
    transition: width 1s;
    min-width: 232px;
    max-width: 250px;
}

.project_single__first--not_opened {
    width: 200px;
    max-width: 200px;
}

.project_single__first h3 {
    margin-top: 0;
    font-weight: 400;
    margin-bottom: 0;
    font-size: 1rem;
}

.project_single_first--hidden {
    margin: 0;
    padding: 0;
    visibility: hidden;
    width: 0;
}

.project_single__swiper_slide {
    display: flex;
    transition:
        margin 1s,
        transform 1s;
    width: auto;
}

.project_single__swiper_slide--center {
    margin-left: calc(50% - 95px);
    transform: translateX(-50%);
    transition:
        margin 1s,
        transform 1s;
}

.project_single__description {
    max-width: 0;
    opacity: 0;
    flex-grow: 1;
    max-height: 0;
    text-align: center;
    transition: opacity 1s;
}

.project_single__description_mobile {
    display: none;
    overflow: hidden;
}

.project_single__description_show {
    max-width: 240px;
    opacity: 1;
    flex-grow: 1;
    overflow: hidden;
    max-height: 100%;
    text-align: center;
    transition: opacity 1s;
}

.project_single__text {
    overflow: hidden;
    max-width: 550px;
    max-height: 500px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    cursor: ns-resize;
}

.project_single__swiper_slide--hidden {
    display: none;
}

.project_single__swiper_slide--animate {
    animation: project_single__swiper_slide_enter 1s ease-out;
}

.project_single__swiper_slide--justify-animate {
    animation: project_single__swiper_slide_justify 1s ease-out;
}

.project_single__square {
    background-color: #a6a6a6;
    display: inline-block;
    height: 20px;
    width: 20px;
}

.project_single__date {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.animate__scale {
    animation: mobile_scale_animation 1s ease-in;
}

@keyframes project_single__swiper_slide_enter {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes project_single__swiper_slide_justify {
    0% {
        justify-content: center;
    }
    100% {
        justify-content: flex-start;
    }
}
@keyframes mobile_scale_animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 1280px) {
    .project_single__first {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .project_single__content {
        flex-direction: column;
        width: 100%;
    }

    .project_single__first {
        /* align-items: center; */
        /* display: flex; */
        /* gap: 0.5rem; */
        /* width: 100%; */
    }

    .project_single__image {
        display: block;
        margin: auto;
    }

    .project_single__swiper {
        width: 100%;
    }

    .project_single__images_wrapper {
        margin: auto;
    }
}

@media (max-height: 900px) and (orientation: landscape) {
    .project_single__image {
        width: 300px;
        height: 100%;
        transition: width 1s;
    }

    .project_single__image--expand {
        height: 70vh;
        width: 100%;
    }
}

@media (max-width: 800px) {
    .project_single__first {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .project_single__image--expand-width {
        width: auto;
    }

    .project_single__swiper_slide--center {
        margin-left: calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .project_single__swiper_slide {
        flex-direction: column-reverse;
        transition: none;
    }
    .project_single__swiper_slide--center {
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .project_single__description_mobile_show {
        display: block;
        height: 100%;
        overflow: scroll;
        /* max-width: 500px; */
        margin-right: 30px;

        width: calc(70vw - 20px);
        height: calc((100vw - 20px) * 9 / 16) !important;
    }

    .project_single__content {
        width: 95%;
        margin: 0 auto;
    }

    .project_single__image--first {
        width: calc(100vw - 20px);

        height: calc((100vw - 20px) * 9 / 16);
    }

    .project_single__date {
        display: flex;
        flex-grow: 1;
        justify-content: end;
        gap: 12px;
    }

    .project_single__square {
        display: none;
    }

    .project_single__first {
        width: 100%;
        max-width: unset;
        margin: 0 auto;
        padding: 0;
        flex-direction: row;
        margin-top: 10px;
        align-items: baseline;
        transition: width 1s ease-in-out;
        justify-content: space-between;
        max-width: 93vw;
    }

    /* .project_single__images_wrapper--justify {
        margin-left: 10vw;
    } */

    .project_single__swiper {
        width: calc(100%);
        padding-bottom: 20px;
    }
    .project_single__image--expand-width {
        width: calc(100vw - 20px);
        height: calc((100vw - 20px) * 9 / 16) !important;
    }

    .project_single__image--expand-height {
        /* height: auto !important; */
    }

    .project_single__text {
        overflow: scroll;
        max-width: unset;
        max-height: unset;
        width: calc(80vw - 20px);
        height: calc((100vw - 20px) * 9 / 16) !important;
    }

    .project_single__text p {
        /* column-count: 4;
        column-gap: 20px;
        max-width: 300vw; */
    }

    .project_single__text div {
        /* display: flex; */
        overflow: scroll;
    }
}
