@import '../../style/variables.scss';

.protected-hosted-event-card{
    padding: 16px;
    border: 1px solid $mainBorder;
    position: relative;
    .card-link{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    @media only screen and (min-width: 640px){
        padding: 20px;
    }
    .image-wrapper{
        img, .image-count,.skeleton-box{
            width: 35px;
            height: 35px;
            border-radius: 100%;
            border: 1px solid $secondary;
            margin-left: -8px;
            &:first-child{
                margin: 0;
            }
        }
        img{
            object-fit: cover;
            object-position: top;
            position: relative;
            z-index: 1;
        }
        .image-count{
            font-size: 12px;
            background: $LightCream;
        }
    }
    .date{
        font-size: 14px;
        line-height: 1.2;
        color: $primary;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        @media only screen and (min-width: 640px) {
            font-size: 16px;
        }
        @media only screen and (min-width: 768px) {
            font-size: 18px;
            line-height: 28px;
        }
    }
    .title{
        font-size: 16px;
        line-height: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 40px;
        @media only screen and (max-width: 1199px) {
            min-height: auto;
        }
    }
    .description,.people-joined{
        color: $lightGrey;
        @media only screen and (min-width: 640px) {
            font-size: 16px;
            line-height: 20px;
        }
    }
    .description{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .location{
        gap: 5px;
        color: $primary;
        min-height: 16px;
        
        @media only screen and (max-width: 1199px) {
            min-height: auto;
        }
        i{
            font-size: 16px;
        }
        span{
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    }
    .time,
    .location{
        font-size: 14px;
        line-height: 16px;
    }
    .description, .time, .location,.people-joined, .image-wrapper,.title{
        margin-bottom: 12px;
        @media only screen and (min-width: 640px) {
            margin-bottom: 16px;
        }
    }
    .title,.time,.people-joined{
        color: $btnText;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    a{
        font-size: 14px;
        color: $tertiary;
        &:hover{
            color: $primary;
        }
    }
}