@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    line-height: 1;
}

.section .inner {
    max-width: 1440px;
    width: calc(100% - 30px);
    margin: 150px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 38px;
}

.section .inner>div {
    width: 31.59%;
    border-radius: 10px;
    overflow: hidden;
}

.section .inner .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #000;
}

.section .inner>div .image {
    /* height: 455px; */
    padding-bottom: 100%;
    position: relative;
}

.section .inner>div .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    left: 0;
    top: 0;
}

.section .inner .item {
    position: relative;
}

.section .inner .item:hover .text {
    display: flex;
}

.section .inner .item:nth-child(2) {
    order: -1;
}

.section .inner .item .text {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgb(0, 0, 0, 0.4);
    display: none;
}

.section .inner .item.item-big {
    width: 48.75%;
}

.section .inner .item.item-big .image {
    padding-bottom: 64.81%;
}

@media screen and (max-width:1024px) {
    .section .inner .item .text {
        display: flex;
        top: auto;
        height: auto;
        bottom: 0;
        background: #ffffff;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 1) 100%);
        padding: 50px 0 20px;
    }
}
@media screen and (max-width:700px) {
    .section .inner .item:nth-child(2){
        order: 0;
    }
    .section .inner .title{
        width: 100%;
        border: 0;
    }
    .section .inner>div{
        width: 47.77%;
    }
    .section .inner .item.item-big {
        width: 47.77%;
    }
    .section .inner .item.item-big .image{
        padding-bottom: 100%;
    }
    .section .inner .item .text{
        position: static;
        background: transparent;
        color: #333;
        padding: 0;
        margin-top: 10px;
    }
}