.cursor-pointer {
    cursor: pointer;
}

.cursor-initial {
    cursor: initial;
}

.background {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.background.contain {
    background-size: contain;
}

.background.pos-top {
    background-position: top;
}

.ellipsis-one-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ellipsis-double-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 라인수 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}


.ellipsis-eight-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8; /* 라인수 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    width: 100%;
    max-height: 400px;
    position: relative;
}

.ellipsis-eight-line::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(360deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.ellipsis-third-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 라인수 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.text-nowrap {
    white-space: nowrap;
}

.no-img-container img {
    display: none;
}

@media (min-width: 320px) {
    .ellipsis-eight-line {
        max-height: 240px;
    }

    .ellipsis-eight-line::after {
        display: block;
    }
}

@media (min-width: 768px) {
    .ellipsis-eight-line {
        max-height: 384px;
    }

    .ellipsis-eight-line::after {
        display: none;
    }
}

.nav-tabs .nav-link.active {
    background-color: black;
    color: white;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-bottom:0px;
}

.nav-tabs .nav-link.no-hover:hover {
    background-color: black;
    color: white;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-bottom:0px;
}

.nav-tabs .nav-link {
    background-color: white;
    color: black;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-bottom:0px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav-tabs .nav-item {
    display: flex; /* Make nav items use flexbox */
    justify-content: center; /* Center nav-link text horizontally */
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-item:last-child {
    border-right: 1px solid #dee2e6;
}