#image-handler {
    max-width: 100%;
    margin: 0 auto;
}
.image-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}
/* Meta overlay shown over the image (title/date) */
.image-hero .image-meta{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    transition: opacity .28s ease, transform .28s ease;
    opacity: 1;
    transform: translateY(0);
}
.image-hero .image-meta h1{
    margin: 0 0 6px 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .2px;
}
.image-hero .image-meta .event-date{
    font-size: 16px;
    opacity: .95;
    font-weight: 400;
    text-align: center;
}
/* Hide the title/date when hovering the image (desktop) */
.image-hero:hover .image-meta,
.image-hero.touch-hide .image-meta {
    transform: translateY(100%);
    opacity: 0;
}

.share-event-handler{
    margin-top: 20px;
    margin-bottom: 20px;
}

.rrssb-buttons{
    padding: 0;
    margin: 12px 0;
    width: 100%;
    list-style-type: none;
    display: flex;                  
    justify-content: center;        
    align-items: center;            
    gap: 20px;                      
    flex-wrap: wrap;   
}

.rrssb-buttons li{
    display: inline-block;
    margin: 0;
    padding: 0;
}

.rrssb-buttons .square-button {
    width: 50px !important;
    height: 50px !important;
    background-color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.rrssb-buttons .square-button a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
}

 .share-events-handler{
    clear: both;
    position: relative;
    margin-top: 12px;
}

 @media (max-width:1170px){
    .image-hero { 
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
}

@media (max-width:575px){
    .image-hero{ 
        height: 250px;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
    .image-hero .image-meta{ 
        padding: 14px; 
    }
    .image-hero .image-meta h1{ 
        font-size: 18px; 
    }
    .image-hero .image-meta .event-date { 
        font-size: 12px; 
    }
}

#event-header-no-image {
    background: #00497A;
    color: #ffffff;
    padding: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#event-header-no-image h1{
    font-size: 42px;
    margin: 0;
}

/* Event page menu (placed under the image hero) */
.event-page-menu-wrapper{
    width:100%;
    background: transparent;
    pointer-events: auto;
}
.event-page-menu{
    gap: 8px;
    background: #fff;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.event-page-menu a{
    display: inline-block;
    white-space: nowrap;
    color: #000000;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 0px 16px;
    line-height: 40px;
    border-bottom: 3px solid #ffffff;
}
.event-page-menu a:hover{
    border-bottom: 3px solid #00497A;
}
.event-page-menu a.active{
    border-bottom: 3px solid #00497A;
}
.event-page-menu::-webkit-scrollbar{ 
    height: 6px; 
}
.event-page-menu::-webkit-scrollbar-thumb{ 
    background: rgba(0,0,0,0.08); border-radius: 6px; 
}
 @media (max-width:1170px){
    #event-header-no-image {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
}
@media (max-width:575px){
    .image-hero{ 
        border-top-left-radius: 0px;
        border-top-right-radius: 0px; 
    }
    #event-header-no-image { 
        border-top-left-radius: 0px; 
        border-top-right-radius: 0px; 
        padding: 40px 14px;
    }
    #event-header-no-image h1 {
        font-size: 24px;
    }
    #event-header-no-image .event-date {
        font-size: 12px;
    }
    .event-page-menu{ 
        border-radius: 6px; 
        gap:6px; 
    }
    .event-page-menu a{ 
        padding: 0px; 
        font-size: 13px;
        padding: 6px 12px;
        line-height: 20px;
    }

    .share-events-handler{ 
        margin-top: 14px; 
        padding-top: 8px; 
    }

    .rrssb-buttons .square-button{
        width: 40px !important;
        height: 40px !important;
    }

    .rrssb-buttons .square-button a {
        font-size: 20px;
    }
}