#blog {
    width: 100%;
    max-width: 1250px;
    padding: 100px 20px;
    margin: 0 auto;
}

#blog .title {
    font-size: 50px;
    font-weight: 400;
    color: #202020;
    margin-bottom: 40px;
}

#blog .title strong {
    font-weight: 600;
}

#blog .sub-title {
    color: #494949;
    font-size: 16px;
    font-weight: 300;
    line-height: 25px; 
}

#blog .total-cnt {
    color: #494949;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    margin: 30px 0;
}

#blog .gallery {
    display: flex;
    align-items: center;
    gap: 30px 15px;
    flex-wrap: wrap;
}

#blog .gallery a {
    width: calc(25% - 12px);
    display: inline-block;
}

#blog .gallery a .img-cover {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f6f6f6;
    border-radius: 10px;
}

#blog .gallery img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

#blog .gallery .gal-title {
    color: #494949;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#blog .gallery .gal-date {
    font-size: 12px;
    font-weight: 300;
    margin-top: 8px;
}

#blog .blog-title {
    color: #202020;
    font-size: 40px;
    font-weight: 500;
}

#blog .profile {
    font-family: "GmarketSansBold";
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#blog .bloger {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

#blog .profile-cover {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
}
#blog .profile-cover img {
    width: 15px;
}

#blog .line {
    width: 100%;
    height: 1px;
    background: #C5C5C5;
    margin: 40px 0;
}

#blog .bloger .date {
    color: #494949;
    font-size: 12px;
    font-weight: 300;
}

#blog .blog-content {
    width: 100%;
}

#blog .add-book-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#blog .add-book {
    background: #202020;
    color: #fff;
    font-size: 15px;
    display: inline-block;
    width: 180px;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#blog .memoji-box {
    position: relative;
    width: calc(25% - 84px);
    height: 270px;
    border: 1px solid #F8EBD2;
    background: #FFFAF0;
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.10);
    height: 300px;
    padding: 20px 35px;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

#blog .memoji-box::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url(/img/ico/memo_pin.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 0px;
    left: 50%;
    transform: translate(-50%, -50%);
}

#blog .memoji {
    height: 269px;
    overflow: auto;
    white-space: wrap;
    text-overflow: ellipsis;
    font-weight: 300;
    font-size: 15px;
    line-height: 19px;
    overflow: hidden;
}

#blog .memo-name {
    font-size: 14px;
    text-align: center;
    font-weight: 700;
}

.modal {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal .star{
    position: absolute;
    top:50%;
    left:50%;
    width: 4px;
    height: 4px;
    background: #CEC8F6;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1),0 0 0 8px rgba(255,255,255,0.1),0 0 20px rgba(255,255,255,0.1);
    animation: animate 6s linear infinite;
    opacity: 0.7;
}
.modal .star::before{
    content:'';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg,#D3BFFF,transparent);
}
@keyframes animate
{
    0%
    {
        transform: rotate(300deg) translateX(0);
        opacity: 0.7;
    }
    70%
    {
        opacity: 0.7;
    }
    100%
    {
        transform: rotate(300deg) translateX(-1000px);
        opacity: 0;
    }
}

.modal .star:nth-child(1){
    top: 0;
    left: 0;
    left: initial;
    animation-delay: 0s;
    animation-duration: 2s;
}

.modal .star:nth-child(2){
    top: 0;
    left: 80px;
    left: initial;
    animation-delay: 0.4s;
    animation-duration: 6s;
}

.modal .star:nth-child(3){
    top: 80;
    right: 0px;
    left: initial;
    animation-delay: 0.8s;
    animation-duration: 4s;
}

.modal .star:nth-child(4){
    top: 0;
    right: 180px;
    left: initial;
    animation-delay: 1.2s;
    animation-duration: 3s;
}

.modal .star:nth-child(5){
    top: 0;
    right: 400px;
    left: initial;
    animation-delay: 1.6s;
    animation-duration: 5s;
}

.modal-box {
    width: 350px;
    max-height: 80vh;
    min-height: 250px;
}

.m-input-box {
    height: 50px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-box {
    width: 100%;
    height: 100%;
    background: no-repeat;
    color: #fff;
    padding-left: 5px;
}

.input-box::placeholder {
    color: #fff;
}

.close-btn {
    width: 20px;
    font-size: 40px;
    color: #FFFAF0;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.memo-textarea {
    position: relative;
    width: calc(100% - 30px);
    height: 100%;
    padding: 15px;
    border: 1px solid #F8EBD2;
    background: #FFFAF0;
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.10);
    resize: none;
    font-weight: 300;
    font-size: 15px;
    line-height: 19px;
    border-radius: 5px;
    z-index: 9999999;
}

.modal-content {
    position: relative;
    border: 1px solid #F8EBD2;
    background: #FFFAF0;
    box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.10);
}

.modal-btn {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-size: 15px;
    display: inline-block;
    width: 100%;
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

@media (max-width: 1250px) {
    #blog {
        width: calc(100% - 40px);
        padding: 100px 20px;
    }

    #blog .gallery a {
        width: calc(33% - 8px);
    }

    #blog .memoji-box {
        width: calc(33% - 84px);
    }
}

@media (max-width: 800px) { 
    #blog .gallery a {
        width: calc(50% - 8px);
    }

    #blog .memoji-box {
        width: calc(100% - 0px);
    }

    #blog .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #blog .sub-title {
        font-size: 13px;
        line-height: 20px;
    }
    
    #blog .total-cnt {
        margin: 15px 0;
        font-size: 14px;
    }

    #blog .gallery a .img-cover {
        height: 200px;
    }
}
@media (max-width: 500px) {
    #blog {
        width: calc(100% - 30px);
        padding: 100px 15px;
    }

    #blog .title {
        text-align: center;
    }

    #blog .sub-title {
        text-align: center;
    }
    #blog .sub-title span {
        display: block;
    }

    #blog .gallery .gal-title {
        font-size: 16px;
    }
    #blog .blog-title {
        font-size: 22px;
    }

    #blog .profile {
        font-size: 15px;
    }

    #blog .bloger {
        margin-top: 20px;
    }

    #blog .gallery a .img-cover {
        height: 150px;
    }

    #blog .line {
        margin: 20px 0;
    }

    .modal-box {
        max-width: 350px;
        width: 90%;
        margin-top: 50px;
    }

    .modal {
        justify-content: start;
    }
}