/* PLUGIN CSS HERE ---> */

/* KEIKKAKALENTERI SHORTCODE */
.gig_calendar {
    display:flex;
    flex-direction: row;
    flex-wrap:nowrap;
    overflow-x: auto;
    overflow-y:hidden;
}
.gig_calendar .gig_day {
    position:-webkit-sticky;
    position:sticky;
    top:0px;
    padding:14px 12px 0px 12px;
    margin-top:-2px;
    margin-bottom: 0;
    font-size:19px;
    font-weight:800 ;
    line-height: 24px;
}
.gig_calendar.etusivu .gig_day {
    padding-bottom:16px;
    font-size:24px;
    font-weight:800 ;
    line-height: normal;
    border-bottom:1px solid var( --e-global-color-631d613 );
    color:var( --e-global-color-631d613 );
    font-family: var( --e-global-typography-secondary-font-family ), Sans-serif;
}
.gig_calendar .day_wrap {
    min-width:calc((100vw - ((100vw - var(--contentWidth)))) / 4);
    box-sizing: border-box;
    padding:0px;
    margin-bottom:24px;
    /* border-right:1px solid rgba(255,255,255,0.2); */ 
}
.gig_calendar .day_wrap.bg_color {
    background-color:#262626;
}   
.gig_calendar .all_gigs_wrap {
    padding: 0px 24px 12px 12px;
}
.gig_calendar.etusivu .all_gigs_wrap {
    height:450px;
    overflow-x: auto;
    margin-top:12px;
}
.gig_calendar.etusivu .gig_artist {
    font-size:21px;
    line-height:25px;
}
.gig_calendar .gig_place {
    text-transform:uppercase;
}
.gig_calendar.etusivu .all_gigs_wrap::-webkit-scrollbar {
    width:8px
}
.gig_calendar.etusivu .all_gigs_wrap::-webkit-scrollbar-track {
    background-color:rgba(213, 33, 34, 0.15);
    border-radius: 4px;
}
.gig_calendar.etusivu .all_gigs_wrap::-webkit-scrollbar-thumb {
    background-color:var( --e-global-color-631d613 );
    border-radius: 4px;
}
.gig_calendar::-webkit-scrollbar {
    height:8px;
}
.gig_calendar::-webkit-scrollbar-thumb {
    background-color: var( --e-global-color-631d613 );
    border-radius: 4px;
    height: 8px;
}
.gig_calendar::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, transparent, transparent 5px, var( --e-global-color-631d613 ) 5px, var( --e-global-color-631d613 ) 6px, transparent 6px);
    border-radius: 4px;
    height: 8px;
}
.gig_calendar .gig_wrap {
    padding: 4px 0 0 0;
    margin-bottom:12px;
}
.gig_calendar .gig_wrap:not(:last-child) {
    border-bottom:1px solid var( --e-global-color-631d613 );
    border-image: linear-gradient(90deg, var( --e-global-color-631d613 ) 29.9%, rgba(0,0,0,0) 30%) 1;
}
.gig_calendar.etusivu .gig_wrap{
    padding-bottom:20px;
}
.gig_calendar .gig_artist {
    font-weight: bold;
}
.gig_calendar .gig_artist span{
    font-weight: normal;
}

.single-esiintyjat .gig_calendar .day_wrap {
    height:auto;
    border-top:none;
}
.single-esiintyjat .gig_calendar .day_wrap .gig_wrap {
    margin-bottom:0;
    border-bottom:none;
    font-size:16px;
    line-height: 19px;
}
.gig_calendar .gig_tickets_ulr {
    position: relative;
    border: 1px solid #474747;
    border-radius: 15px;
    display: inline-block;
    padding: 1px 21px 4px 1px;
    margin-top:3px;
    pointer-events: none;
}
.gig_calendar .gig_tickets_ulr:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: url('/wp-content/uploads/musta_nuoli_oikea.svg');
    width: 15px;
    height: 8px;
    background-repeat: no-repeat;
}
.gig_calendar .gig_tickets_ulr a{
    color: #474747;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 8px 2px 11px;
    line-height: 1px;
    pointer-events: auto;
}
.gig_calendar .gig_tickets_ulr a:hover{
    color: #A60400;
}
.gig_calendar .gig_tickets_ulr:hover::after{
    background:url('/wp-content/uploads/nuoli_tumma_oikea.svg');
}
.gig_calendar .gig_tickets_ulr:hover{
    border-color: #A60400;
}

@media all and (max-width:1480px) {
    .gig_calendar .day_wrap {
        min-width:calc(100vw / 5);
    }
}
@media all and (max-width:1320px) {
    .gig_calendar .day_wrap {
        min-width:calc(100vw / 4);
    }
}
@media all and (max-width:767px) {
    .gig_calendar .day_wrap {
        min-width:calc(100vw / 3);
    }
}
@media all and (max-width:640px) {
    .gig_calendar .day_wrap {
        min-width:calc(100vw / 2.3);
    }
    .home.gig_calendar {
        height:370px;
    }
    .gig_calendar.etusivu .gig_day {
        font-size:26px;
        line-height:31px;
    }
}

/* Filtterit */
#dt_filter_dropdown {
    color: black !important;
    background: white;
    padding: 0;
    width: 335px;
    list-style: none;
    position: relative;
}
#dt_filter_dropdown:after {
    content: '';
    position: sticky;
    display: block;
    width: 100%;
    height: 30px;
    bottom: -20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) -95.45%, #FFFFFF 100%);
}
#dt_filter_dropdown li a{
    display:block;
    text-decoration: none;
    color: black;

}

/* Filtterien modal */
#modal {
    display:none;
    position: fixed; /* Position the modal in the center of the screen */
    z-index: 100; /* Make sure the modal is on top of other elements */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
    transition: opacity 0.5s ease-in-out;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
#modal.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
#modal.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}
#modal-content {
    background-color: #fefefe; 
    padding: 30px 50px 10px 50px;
    border: 1px solid #888;
    width:100%;
    max-width: 460px; 
    min-width:350px;
    transition: opacity 1s ease-in-out;
    opacity:0;
    height:400px;
}
@media all and (max-width:640px) {
    body.modal_open #modal-content {
        margin-left: 0 !important;
    }
    #modal-content {
        padding: 30px 20px 5px 20px !important; 
        max-width: 340px !important;
    }
    #close-button {
        right: -30px !important;
        padding: 10px 12px !important;
        font-size: 20px !important;
    }
    #close-button:after {
        width: 16px !important;
        height: 16px !important;
        left: 11px !important;
        top: 11px !important;
    }
}
body.modal_open #modal-content {
    opacity:1;
    margin-left:-18px;
}
.close_dt_selected {
    cursor: pointer;
    padding:4px;
}

#modal-header {
    position: relative;
}

#close-button {
    position: absolute;
    top: -50px;
    right: -70px;
    padding: 15px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    border-color: var(--e-global-color-631d613 );
    color: transparent;
    line-height: 17px;
}
#close-button:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    left: 12px;
    top: 12px;
    background-repeat: no-repeat;
    background-color: var(--e-global-color-631d613 );
    -webkit-mask-image: url('/wp-content/uploads/popup_sulje.svg');
    mask-image: url('/wp-content/uploads/popup_sulje.svg');
}

#modal-body {
    padding: 10px;
    height: 90%;
    overflow-y: scroll;
    overflow-x:hidden;
    position: relative;
}
#modal-body::-webkit-scrollbar {
    width:8px
}
#modal-body::-webkit-scrollbar-track {
    background-color:rgba(213, 33, 34, 0.15);
    border-radius: 4px;
}
#modal-body::-webkit-scrollbar-thumb {
    background-color:var( --e-global-color-631d613 );
    border-radius: 4px;
}
body.modal_open {
    height: 100vh;
    overflow-y: hidden;
    padding-right: 18px;
  }

.front_cal_arrow_left, .front_cal_arrow_right, .dt_filter_button {
    cursor: pointer;
}
.dt_filter_button {
    position:relative;    
}
.dt_filter_button path {
    fill:var(--e-global-color-accent);
}
.dt_selected {
    position: absolute;
    top: 30px;
    left: 0;
    font-size: 13px;
    padding: 5px 24px 5px 10px;
    border: 1px solid var( --e-global-color-631d613 );
    border-radius: 18px;
    line-height: 13px;
    width:130px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.close_dt_selected{
    position: absolute;
    top: 0;
    right: 0;
    background-color: var( --e-global-color-631d613 );
    color: white;
    padding: 5px 9px 5px 8px;
    border-left: 3px solid transparent;
    line-height: 13px;
    font-size: 13px;
    z-index:10;
}
  
/* 1.3.2023 */
.gig_calendar {
    position:relative;
    margin-left:30px;
    margin-right:30px;
}
.cal_arrow_left, .cal_arrow_right {
    position:absolute;
    top:50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    cursor: pointer;

    z-index:99;

}
.cal_arrow_right {
    right:-15px;
}
.cal_arrow_left {
    left:-15px;
}
.cal_arrow_right:after {
    content: "\f054";
}
.cal_arrow_left:after {
    content: "\f053";
}
.cal_arrow_left:after, .cal_arrow_right:after {
    content: url(/wp-content/plugins/encore-gigs/includes/css/chevron_right.svg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 34px;
    color: var(--e-global-color-accent);
    height: 20px;
    width: 20px;
}
.cal_arrow_left:after {
    transform: rotate(180deg) !Important;
}
@media all and (max-width:560px) {
    .gig_calendar {
        margin-left:-15px;
        margin-right:-15px;
    }
    .cal_arrow_left, .cal_arrow_right {
        top:18px;
    }
    .cal_arrow_left.arrow_etusivu, .cal_arrow_right.arrow_etusivu {
        top:-24px;
    }
    .cal_arrow_left:after, .cal_arrow_right:after {
        font-size:26px;
    }
}