﻿.photo {
    padding: 20px 0;
}

header {
    position: relative;
}

.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;
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 20px;
}

    .ulimgp ul {
        padding-left: 0;
    }

.lidsimg {
    float: left;
    width: 100%;
    -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;
    list-style: none;
    border: none;
    outline: none;
}

.listImg {
    height: 300px;
}

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

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

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

.lidsimg h4 {
    font-size: 17px;
    padding: 0 15px;
    transform: translateY(-64px);
    width: fit-content;
    margin: 0 auto;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.lidsimg:hover h4 a {
    background-color: #fff;
    color: var(--default-color-2);
    box-shadow: 5px 5px 13px 0px #3333336e;
}

.lidsimg h4 a {
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    color: var(--tt-default-color);
    text-align: center;
    -webkit-box-orient: vertical;
    color: #fff;
    display: -webkit-box;
    -webkit-transition: all linear .2s;
    -o-transition: all linear .2s;
    background-color: var(--default-color-1);
    box-shadow: 0 0 8px 0px #33333369;
    transition: all linear .2s;
    font-size: 18px;
    padding: 8px 22px;
    width: fit-content;
    border-radius: 5px;
    font-family: 'BeVietnamPro-SemiBold';
    font-weight: 500;
}

.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-1);
}

.photopage {
    margin-top: 35px;
}

.photo .contain {
    margin-top: 30px;
}
.lidsimg a {
    display: block;
    width: 100%;
    height: 100%;
}
/*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
    }

    .ulimgp {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

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

    .listImg {
        height: 264px;
    }

    .lidsimg {
        padding: 0 5px;
    }

    .ulimgp {
        grid-template-columns: repeat(1,minmax(0,1fr));
        column-gap: 20px;
        row-gap: 0;
    }
}