@charset "utf-8";

/* 새글 스킨 (latest) */
.gallery2 {
    position: relative;
}

.gallery2 .latest-title {
    margin-bottom: 20px;
}

.gallery2 .latest-title a,
.gallery2 .latest-title span {
    position: relative;
    font-size: 1.5em;
    font-weight: 600;
    display: block;
    overflow: hidden;
    color: #000;
}

.gallery2 .latest-title a .more {
    position: absolute;
    display: inline-block;
    border: 1px solid #D6D6D6;
    color: #979797;
    line-height: 23px;
    height: 25px;
    text-align: center;
    font-weight: 100;
    font-size: 8pt;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    padding: 0 10px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.gallery2 .latest-title a .more:after {
    content: '→';
    display: inline-block;
    margin-left: 10px;
}

.gallery2 .latest-title a .more:hover {
    background-color: #D6D6D6;
    color: #FFF;
}

.gallery2 ul {
    font-size: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5%;
}

.gallery2 li {
    display: inline-block;
    font-size: 0.7rem;
    background-color: #FFF;
    box-shadow: 0 15px 35px rgba(50, 50, 90, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.gallery2 li:nth-of-type(3n) {
    margin-right: 0;
}

.gallery2 li .img-full {
    position: relative;
}

.gallery2 ul img {
    max-width: 100%;
}

.gallery2 li .img-full .no-img {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    font-weight: 600;
    color: #000;
}

.gallery2 li .cont {
    padding: 20px;
}

.gallery2 li:hover {
    background-color: rgba(53, 53, 55, 1);
}

.gallery2 li:hover .cont,
.gallery2 li:hover .cont * {
    color: #FFF !important;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.gallery2 li .cont a {
}

.gallery2 li .cont strong {
    display: block;
    font-weight: 500;
    font-size: 1.3em;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 23px;
    line-height: 23px;
    white-space: nowrap;
}

.gallery2 li .cont .text {
    font-weight: 300;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    line-height: 1.5em;
    height: 4.5em;
    margin-bottom: 10px;
    display: none !important;
}

.gallery2 li .cont .read-more {
    font-size: 0.8em;
}

@media (max-width: 1100px) {
    .gallery2 ul {
        grid-template-columns: 1fr;
        margin: 0 0 70px;
    }
}