.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: smaller;
    font-style: italic;
}

.truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.truncate-5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.modal-dialog.large {
    width: 80% !important;
    max-width: unset;
}

.modal-dialog.mid-large {
    width: 50% !important;
    max-width: unset;
}

@media (max-width:900px) {
    .modal-dialog.large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog.mid-large {
        width: 100% !important;
        max-width: unset;
    }
    .modal-dialog {
        margin: unset !important;
    }
}

#viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}

#viewer_modal .modal-dialog {
    width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}

#viewer_modal .modal-content {
    background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#viewer_modal img,
#viewer_modal video {
    max-height: calc(100%);
    max-width: calc(100%);
}

table.dataTable th,
table.dataTable td {
    padding: 5px !important;
}

.card.d-flex {
    flex-direction: row !important;
}

.card.d-flex>img {
    width: 20% !important;
}

.card.d-flex>.card-body {
    width: 80% !important;
}

span.btn {
    cursor: unset;
}

span.btn:hover {
    background: inherit;
}

#tourCarousel {
    height: 50vh !important;
}

#tourCarousel img {
    object-fit: fill;
}

div.stars {
    width: auto;
    display: inline-block
}

.mt-200 {
    margin-top: 200px
}

input.star {
    display: none
}

label.star {
    float: right;
    /* padding: 10px; */
    font-size: 30px;
    color: #333333;
    transition: all .2s
}

input.star:checked~label.star:before {
    content: '\2605';
    color: #ffc800;
    transition: all .25s
}

input.star-5:checked~label.star:before {
    color: #ffc800;
    /* text-shadow: 0 0 20px #952 */
}

input.star-1:checked~label.star:before {
    color: #F62
}

label.star:hover {
    transform: rotate(-15deg) scale(1.3)
}

label.star:before {
    content: '\2605';
    font-family: FontAwesome
}

.product-holder {
    background-color: #fff;
    height: 20vh !important;
    width: 100% !important;
}

.product-cover {
    width: 100% !important;
    height: 100% !important;
    object-fit: scale-down !important;
    object-position: center center;
    transition: all ease-in .3s;
}

a.card.product-item:hover {
    background: #ebebebb8;
}

a.card.product-item:hover .product-cover {
    transform: scale(1.2);
}

.lh-1 {
    line-height: .5em;
}

.lh-2 {
    line-height: 1em;
}

/* Admin mobile responsiveness */
@media (max-width: 767.98px) {
    body.sidebar-mini,
    body.layout-fixed {
        overflow-x: hidden;
    }

    .content-wrapper {
        padding-top: .75rem !important;
    }

    .content .container-fluid {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .main-header .navbar-nav .nav-link {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .main-header .btn-group .btn {
        max-width: 48vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-header .btn-group .btn .ml-3 {
        margin-left: 1.35rem !important;
    }

    .card {
        margin-bottom: .85rem;
    }

    .card-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .45rem;
        padding: .65rem .75rem;
    }

    .card-header .card-title {
        width: 100%;
        margin-bottom: .15rem;
        font-size: 1rem;
        line-height: 1.25;
    }

    .card-header .card-tools {
        float: none;
        margin-left: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .card-header .card-tools .btn,
    .card-header .card-tools a.btn {
        flex: 1 1 auto;
        justify-content: center;
        white-space: normal;
    }

    .card-body {
        padding: .75rem;
    }

    .row {
        margin-left: -.35rem;
        margin-right: -.35rem;
    }

    .row > [class*="col-"] {
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .form-group {
        margin-bottom: .75rem;
    }

    .form-control,
    .custom-select,
    .select2-container .select2-selection--single {
        min-height: 38px;
        font-size: 16px;
    }

    .btn {
        min-height: 36px;
        align-items: center;
    }

    .btn-group,
    .btn-group-vertical {
        max-width: 100%;
    }

    .dropdown-menu {
        max-width: calc(100vw - 1rem);
        white-space: normal;
    }

    .table-responsive,
    .dataTables_wrapper {
        width: 100%;
        overflow-x: auto;
    }

    table.table,
    table.dataTable {
        width: 100% !important;
        min-width: 720px;
    }

    table.dataTable th,
    table.dataTable td,
    .table th,
    .table td {
        white-space: nowrap;
        vertical-align: middle !important;
    }

    .dataTables_wrapper .row {
        row-gap: .5rem;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: .35rem;
    }

    .pagination {
        flex-wrap: wrap;
        gap: .25rem;
    }

    .small-box .inner h3,
    .small-box .inner h4 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .small-box .icon {
        display: none;
    }

    .modal-dialog,
    .modal-dialog.modal-md,
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        max-width: none;
        width: calc(100% - 1rem);
        margin: .5rem auto;
    }

    .modal-body {
        max-height: calc(100vh - 9rem);
        overflow-y: auto;
        padding: .85rem;
    }

    #uni_modal .modal-footer,
    #confirm_modal .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }

    #uni_modal .modal-footer .btn,
    #confirm_modal .modal-footer .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .content-header h1,
    h1 {
        font-size: 1.45rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3,
    .card-title {
        font-size: 1.05rem;
    }

    .nav-sidebar .nav-link {
        padding-top: .75rem !important;
        padding-bottom: .75rem !important;
    }

    .form-actions,
    .modal-footer {
        flex-direction: column;
    }

    .form-actions .btn,
    .modal-footer .btn {
        width: 100%;
    }
}
