

#black-bg {
    background-color: black !important;
}



#message-container {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1000; /* Adjust the z-index to ensure it's on top of other content */
    padding: 20px;
}

.image-container {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(235, 236, 230); /* placeholder background */
    overflow: hidden;
}

.event-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.card-link {
    text-decoration: none;
    color: inherit;
    width: auto;
}

.card-img-top:not(.tox-tinymce img)  {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.start-date {
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(244,244, 244, 0.7);
    color: black;
    padding: 2px 5px;
    font-size: 3rem;
    border-radius: 3px;
}

.event-name-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(244,244, 244, 0.7);
    color: black;
    text-align: center;
    font-size: 1.6rem;
    padding: 5px 0;
}

.placeholder-mono {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
}

.placeholder-colour {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 1) 0%,
        rgba(255, 154, 0, 1) 10%,
        rgba(208, 222, 33, 1) 20%,
        rgba(79, 220, 74, 1) 30%,
        rgba(63, 218, 216, 1) 40%,
        rgba(47, 201, 226, 1) 50%,
        rgba(28, 127, 238, 1) 60%,
        rgba(95, 21, 242, 1) 70%,
        rgba(186, 12, 248, 1) 80%,
        rgba(251, 7, 217, 1) 90%,
        rgba(255, 0, 0, 1) 100%
    ); 
}

.carousel-item {
    max-width: 100vw; /* Ensure banner within window */
    max-height: 100vh;
}

.carousel-item img:not(.tox-tinymce img)  {
    max-width: 100vw; /* Ensure image doesn't exceed container */
    max-height: 100vh;
}

.carousel-item div .hidden {
    width: 0px;
    height: 0px;
    color: rgba(0,0,0,0);
}




.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
  
.image-gallery > li {
    flex: 1 1 auto;
    list-style-type: none;
    height: 120px;
    cursor: pointer;
    position: relative;
}

.image-gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 5px;
}

.image-gallery::after {
    content: "";
    flex-grow: 999;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    padding-left: 10px;
    background: rgba(57, 57, 57, 0.502);
    top: 0;
    left: 0;
    transform: scale(0);
    transition: all 0.1s 0.1s ease-in-out;
    color: #fff;
    border-radius: 5px;
    font-size: 9pt;
    /* center overlay text 
    display: flex;
    align-items: center;
    justify-content: center;*/
}

/* hover */
.image-gallery li:hover .overlay {
    transform: scale(1);
}

.picframe {
    float: left;
    width: 146px;
    height: auto;
    margin-bottom: 4px;
    margin-right: 4px;
}

.smallcard {
    width: 150px;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}  

.modal-content {
    max-width: 95vw;
    width: auto; 
}

.-modal-show .modal-dialog {
}

.wacc-modal-body img {
    max-width: 95vw; /* Ensure image doesn't exceed container's width */
    max-height: 95vh; /* Ensure image doesn't exceed container's height */
    padding: 1em;
}

.wacc-modal-body-voting img {
    max-width: 95vw; /* Ensure image doesn't exceed container's width */
    max-height: 85vh; /* Ensure image doesn't exceed container's height */
    padding: 1em;
}

.wacc-table td {
    font-size: 10pt;
}

.wacc-table th {
    font-size: 12pt;
}
/*img .fullpic {
    object-fit: none;
} */

.eoy-label {
    margin-left:auto; 
    margin-right:auto; 
}

.eoy-label tr {
    width: 100%;
}
.eoy-label td {
    font-size: 30pt;
    padding-top: 10pt;
    padding-bottom: 10pt;
    text-align: center;
    width: 100%;
}

.event-list {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
.event-list > li {
    box-shadow: 0px 0px 5px rgb(51, 51, 51);
    box-shadow: 0px 0px 5px rgba(51, 51, 51, 0.7);
    padding: 0px;
    margin: 0px 0px 20px;
}
.event-list > li > time {
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--bs-light);
    background-color: var(--bs-primary);
    padding: 5px;
    text-align: center;
    text-transform: uppercase;
}

.event-list > li > time:hover {
    cursor: hand;
    cursor: pointer;
    opacity: .9;
}

a.divLink {
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   text-decoration: none;
   /* Makes sure the link doesn't get underlined */
   z-index: 10;
   display: block;
}

/* prevent link working in info div */
.event-list > li > time > a.divLink {
    width: 120px;
}

.event-list > li > time > span {
    display: none;
}
.event-list > li > time > .day {
    display: block;
    font-size: 50pt;
    font-weight: 100;
    line-height: 1;
}

.event-list > li > time > .day-sm {
    display: block;
    font-size: 30pt;
    font-weight: 100;
    line-height: 1.5;
}

.event-list > li time > .month {
    display: block;
    font-size: 24pt;
    font-weight: 900;
    line-height: 1;
}

.event-list > li time > .month-sm {
    display: block;
    font-size: 18pt;
    font-weight: 900;
    line-height: 1;
}

.event-list > li time > .time {
    display: block;
    font-size: 12pt;
    font-weight: 50;
    line-height: 1;
}
.event-list > li > img {
    width: 100%;
}
.event-list > li > .info {
    padding-top: 5px;
    text-align: center;
}
.event-list > li > .info > .title {
    margin-bottom: 10px;
}

.event-list > li > .info > .desc {
    font-size: 13pt;
    font-weight: 300;
    margin: 0px;
}
.event-list > li > .info > ul,
.event-list > li > .social > ul {
    display: table;
    list-style: none;
    margin: 10px 0px 0px;
    padding: 0px;
    width: 100%;
    text-align: center;
}
.event-list > li > .social > ul {
    margin: 0px;
}
.event-list > li > .info > ul > li,
.event-list > li > .social > ul > li {
    display: table-cell;
    cursor: pointer;
    color: rgb(30, 30, 30);
    font-size: 11pt;
    font-weight: 300;
    padding: 3px 0px;
}
.event-list > li > .info > ul > li > a {
    display: block;
    width: 100%;
    color: rgb(30, 30, 30);
    text-decoration: none;
} 
.event-list > li > .social > ul > li {    
    padding: 0px;
}
.event-list > li > .social > ul > li > a {
    padding: 3px 0px;
} 
/*.event-list > li > .info > ul > li:hover,
.event-list > li > .social > ul > li:hover {
    color: rgb(30, 30, 30);
    background-color: bs-dark;
}*/

.carousel-control-prev {
    border: 0px;
    background: rgba(0,0,0,0);
    color: rgba(0,0,0,0);
}

.carousel-control-next {
    border: 0px;
    background: rgba(0,0,0,0);
    color: rgba(0,0,0,0);
}

#wacc-hidden-text {
    color: rgba(0,0,0,0);
}

.navbar.bg-light {
    background-color: #F28E2B !important;   /* orange background */
}

/* Proper centering */
.navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

/* Base link styling */
.navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 600;
    font-size: 1rem;   
    color: #424242 !important;
    margin: 0 14px;
    position: relative;       /* anchor for underline */
    padding: 12px 0;          /* restore vertical centering */
}

/* Underline (hidden by default) */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #AD372E;
    bottom: -8px;          /* pushes underline to the bottom of the orange bar */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

/* Hover / Focus shows underline + updates colour */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #AD372E !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
}

/* Active link keeps underline */
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Ensure left + right columns are the same width */
.navbar-balance-left,
.navbar-balance-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;   /* don't grow, only use content/JS width */
}

/* Right column sizes itself naturally */
.navbar-balance-right {
    justify-content: flex-end;
}

/* Left column copies right column width perfectly */
.navbar-balance-left {
    visibility: hidden;           /* doesn't show anything */
}



@media (min-width: 768px) {
    .image-gallery > li {
        height: 240px;
    }

    .overlay {
        font-size: 14pt;
    }

    .wacc-table td {
        font-size: 12pt;
    }
    
    .wacc-table th {
        font-size: 16pt;
    }
    .event-list > li {
        position: relative;
        display: block;
        width: 100%;
        height: 120px;
        padding: 0px;
    }
    .event-list > li > time,
    .event-list > li > img  {
        display: inline-block;
    }
    .event-list > li > time,
    .event-list > li > img {
        width: 120px;
        float: left;
    }
    .event-list > li > .info {
        background-color: bs-dark;
        overflow: hidden;
    }
    .event-list > li > time,
    .event-list > li > img {
        width: 120px;
        height: 120px;
        padding: 0px;
        margin: 0px;
    }
    .event-list > li > .info {
        position: relative;
        height: 120px;
        text-align: left;
        padding-right: 40px;
    }	
    .event-list > li > .info > .title, 
    .event-list > li > .info > .desc {
        padding: 0px 10px;
    }
    .event-list > li > .info > ul {
        position: absolute;
        left: 0px;
        bottom: 0px;
    }
    .event-list > li > .social {
        position: absolute;
        top: 0px;
        right: 0px;
        display: block;
        width: 40px;
    }
    .event-list > li > .social > ul {
        border-left: 1px solid rgb(230, 230, 230);
    }
    .event-list > li > .social > ul > li {			
        display: block;
        padding: 0px;
    }
    .event-list > li > .social > ul > li > a {
        display: block;
        width: 40px;
        padding: 10px 0px 9px;
    }
}

/* Open dropdown on hover (desktop only) */
@media (min-width: 992px) {   /* lg breakpoint */
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* fixes slight jump */
    }

    /* Also make the toggle look active while hovering */
    .navbar .dropdown:hover .nav-link.dropdown-toggle {
        color: #AD372E !important;
        border-bottom: 3px solid #AD372E;
    }
}

/* FORCE TinyMCE editor wrapper to accept autosize */
.tox-tinymce {
    min-height: 850px !important;
    height: auto !important;
}

/* Make sure TinyMCE internal iframe isn't constrained */
.tox-edit-area iframe {
    min-height: 850px !important;
    height: auto !important;
}

/* Prevent global img rules from affecting TinyMCE */
.tox-tinymce img {
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: initial !important;
}