﻿.photo {
    padding: 45px 0;
    background: #FFFBE8;
    position: relative;
}

.top-project-decor {
    display: flex;
    align-items: center;
}

    .top-project-decor .p-title-cate {
        margin: 0;
        color: #051550;
        font-family: 'K2D-MEDIUM';
        font-size: 24px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-transform: capitalize;
    }

.photo h1.p-title {
    margin: 0;
    color: #711A28;
    font-family: 'K2D-BOLD';
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    text-align: left;
    margin-top: 8px;
}

.photo h2.p-descript {
    display: block;
    color: #202020;
    font-family: 'Inter_24pt-Regular';
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

ul.p-photo-list {
    display: grid;
    grid-auto-rows: minmax(min-content, max-content);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    margin-top: 40px;
}

.p-photo-img img {
    display: block;
    width: 100%;
    height: 298px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

li.p-photo-item a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

h4.p-photo-title {
    margin: 0;
    color: #FFF;
    font-family: 'K2D-MEDIUM';
    font-size: 19px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 70px 20px 20px 17px;
    background: linear-gradient(180deg, rgba(39, 6, 11, 0.00) 0%, #27060B 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

li.p-photo-item:hover h4 {
    color: #f0e193;
}

li.p-photo-item:hover .p-photo-img img {
    transform: scale(1.07);
}

.img-decor-news {
    margin-right: 13px;
}

    .img-decor-news img {
        width: 32px;
        height: auto;
    }

.photo .top h1 {
    font-size: 30px;
    font-family: osB;
    color: #c01120;
    text-align: center;
}

.photo .top h2 {
    font-size: 20px;
    color: #222;
    text-align: center;
}

.photo .bottom {
    margin-top: 30px;
}

    .photo .bottom .item {
        overflow: hidden;
        cursor: pointer;
        margin-bottom: 15px;
        display: block;
    }

        .photo .bottom .item img {
            border-radius: 8px;
        }

.photopage h3 {
    font-size: 16px;
    display: none;
}

.ulimgp {
    overflow: hidden;
    padding-left: 0;
}

    .ulimgp ul {
        padding-left: 0;
    }

.lidsimg {
    float: left;
    width: calc(100% / 3);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 2%;
    padding: 0 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.listImg {
    height: 300px;
}

    .listImg ul {
        width: 100%;
        position: relative;
        height: 100%;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .listImg li {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 8px;
        overflow: hidden;
    }

        .listImg li img {
            width: 100%;
            height: 100%;
            -o-object-fit: cover;
            object-fit: cover;
        }

.lidsimg h4 {
    font-size: 17px;
    margin-top: 8px;
}

    .lidsimg h4 a {
        color: #222;
        overflow: hidden;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        color: var(--tt-default-color);
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-transition: all linear .2s;
        -o-transition: all linear .2s;
        transition: all linear .2s;
    }

.lidsimg img {
    -webkit-transition: all linear .3s;
    -o-transition: all linear .3s;
    transition: all linear .3s;
}

.lidsimg:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.lidsimg:hover h4 a {
    color: var(--default-color-3);
}

.photopage {
    margin-top: 35px;
}

.photo .contain {
    margin-top: 30px;
}

/*RS*/

@media(max-width:1023px) {
    .no-display-mobile-tablet {
        display: none !important
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .no-display-tablet {
        display: none !important
    }

    .photo {
        padding: 30px 0;
    }
}

@media(max-width:739px) {
    .no-display-mobile {
        display: none !important
    }

    .photo {
        padding: 20px 0;
    }

    ul.p-photo-list {
        display: grid;
        grid-auto-rows: minmax(min-content, max-content);
        grid-template-columns: repeat(1, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 20px;
        margin-top: 30px;
    }

    .top-project-decor .p-title-cate {
        font-size: 18px;
    }

    .photo h1.p-title {
        font-size: 30px;
    }

    h4.p-photo-title {
        font-size: 16px;
    }

    .photo h2.p-descript {
        font-size: 16px;
        text-align: justify;
    }

    .lidsimg {
        width: calc(100% / 2);
    }

    .listImg {
        height: 200px;
    }

    .lidsimg {
        padding: 0 5px;
    }
}