/* STS Upcoming Events Styles */
.sts-events-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sts-events-list .sts-event {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    align-items: stretch;
    max-height: 300px;
    transition: none !important;
}

.sts-events-list .sts-event:hover {
    background-color: #f0f0f0;
    box-shadow: none !important;
    transform: none !important;
}

.sts-events-list .sts-event__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px 20px;
}

.sts-events-list .sts-event__header {
    display: flex;
    align-items: flex-start;
    padding: 0 0 10px 0;
}

.sts-events-list .sts-event__datebox {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 12px;
    width: 60px;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: filter 0.2s ease;
}

.sts-events-list .sts-event__datebox:hover {
    filter: brightness(85%);
}

.sts-events-list .sts-event__datebox span {
    display: block;
}

.sts-events-list .sts-event__datebox span:first-child {
    font-size: 14px;
}

.sts-events-list .sts-event__datebox span:last-child {
    font-size: 24px;
}

.sts-events-list .sts-datebox-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sts-events-list .sts-event__title {
    margin: 0;
    font-size: 24px;
    color: #0073aa;
    align-self: center;
}

.sts-events-list .sts-event__details {
    padding: 0;
}

.sts-events-list .sts-event__time,
.sts-events-list .sts-event__location,
.sts-events-list .sts-event__description {
    margin-bottom: 5px;
    font-size: 16px;
}

.sts-events-list .sts-event__time {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sts-events-list .sts-event__label {
    font-weight: bold;
    margin-right: 5px;
}

.sts-events-list .sts-event__image {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.sts-events-list .sts-event__image img,
.sts-events-list .sts-event__image .sts-event__image-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 3px;
}














/* STS Archived Events Styles */
.sts-events-archives {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sts-events-archives .sts-event {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    align-items: stretch;
}

.sts-events-archives .sts-event:hover {
    background-color: #f0f0f0;
}

.sts-events-archives .sts-event__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sts-events-archives .sts-event__header {
    display: flex;
    flex-direction: column;
    padding: 0 0 10px 0;
}

.sts-events-archives .sts-event__title {
    margin: 0;
    font-size: 24px;
    color: #0073aa;
}

.sts-events-archives .sts-event__subtitle-date {
    font-size: 16px;
    color: #999;
    margin-top: 5px;
}

.sts-events-archives .sts-event__details {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.sts-events-archives .sts-event__archive-writeup-container {
    max-width: 100%;
}

.sts-events-archives .sts-event__archive-writeup {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
    transition: max-height 0.3s ease;
    text-align: justify;
    font-size: 16px;
}

.sts-events-archives .sts-event__archive-writeup strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.sts-events-archives .sts-event__archive-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #0073aa;
    transition: transform 0.3s;
    align-self: center;
}

.sts-events-archives .sts-event.expanded .sts-event__archive-toggle {
    transform: rotate(180deg);
}

.sts-events-archives .sts-event__image {
    /*flex: 0 0 300px;*/
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.sts-events-archives .sts-event__image .sts-event-gallery {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(4, 100px);
    gap: 0;
    width: 100%;
   /* height: 100%;*/
    overflow: hidden;
    direction: rtl;
}

.sts-events-archives .sts-event__image .sts-event-gallery img,
.sts-events-archives .sts-event__image .sts-event-gallery .sts-event-gallery-placeholder {
    width: 100px;
    /*height: 100px;*/
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
}

.sts-event.archive-size-small {
    height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: height 0.3s;
}

.sts-event.archive-size-medium {
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: height 0.3s;
}

.sts-event.archive-size-large {
    height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: height 0.3s;
}

.sts-event.expanded.can-expand.archive-size-small {
    min-height: 200px;
    height: auto;
    overflow: visible;
}

.sts-event.expanded.can-expand.archive-size-medium {
    min-height: 300px;
    height: auto;
    overflow: visible;
}

.sts-event.expanded.can-expand.archive-size-large {
    min-height: 400px;
    height: auto;
    overflow: visible;
}

.sts-event__content,
.sts-event__image {
    height: 100%;
    overflow: hidden;
}

.sts-event__image .sts-event-gallery {
   /* height: 100%;*/
}

.sts-event.archive-size-small .sts-event__archive-writeup {
    -webkit-line-clamp: 2;
}

.sts-event.archive-size-medium .sts-event__archive-writeup {
    -webkit-line-clamp: 5;
}

.sts-event.archive-size-large .sts-event__archive-writeup {
    -webkit-line-clamp: 8;
}

.sts-event.archive-size-small .sts-event__title {
    font-size: 20px;
    margin-bottom: 4px;
}

.sts-event.archive-size-small .sts-event__subtitle-date {
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.sts-event.archive-size-small .sts-event__header {
    padding-bottom: 4px;
}

.sts-event.archive-size-small .sts-event__details {
    margin-bottom: 2px;
}

.sts-event.expanded .sts-event__archive-writeup {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    height: auto;
    overflow: visible;
    text-align: justify;
}

.sts-event.expanded .sts-event__image {
    height: auto;
    max-height: none;
    overflow: visible;
}

/* Mobile Styles */
@media (max-width: 820px) {
    .sts-events-archives .sts-event {
        flex-direction: column;
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .sts-events-archives .sts-event.archive-size-small {
        height: auto;
        overflow: visible;
    }

    .sts-events-archives .sts-event__content {
        width: 100% !important;
        order: 1;
        height: auto;
    }

    .sts-events-archives .sts-event__image {
        width: 100% !important;
       /* aspect-ratio: 4 / 3 !important;*/
        order: 2;
        border-radius: 0 0 8px 8px;
        padding: 0;
        height: auto;
        overflow: visible;
    }

    .sts-events-archives .sts-event__image .sts-event-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        grid-template-rows: auto !important;
        gap: 0px;
        width: 100% !important;
        justify-content: center;
    }

    .sts-events-archives .sts-event__image .sts-event-gallery img,
    .sts-events-archives .sts-event__image .sts-event-gallery .sts-event-gallery-placeholder {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover;
        border-radius: 3px;
    }

    .sts-events-archives .sts-event__title {
        font-size: 20px !important;
    }

    .sts-events-archives .sts-event__subtitle-date {
        font-size: 14px;
    }

    .sts-events-archives .sts-event__archive-writeup {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .sts-events-archives .sts-event__archive-writeup strong {
        font-size: 16px;
    }
}

@media (max-width: 700px) {
    .sts-events-archives .sts-event {
        display: block !important;
        position: relative;
        height: auto;
        overflow: visible;
    }

    .sts-events-archives .sts-event__content {
        width: 100% !important;
        display: block !important;
        height: auto;
    }

    .sts-events-archives .sts-event__image {
        width: 100% !important;
        margin-top: 1em;
        display: block !important;
        text-align: center;
        position: static;
        height: auto;
        overflow: visible;
    }

    .sts-events-archives .sts-event-gallery {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        grid-template-rows: auto !important;
        gap: 4px;
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto;
        min-height: 0;
        height: auto;
    }

    .sts-events-archives .sts-event-gallery img,
    .sts-events-archives .sts-event-gallery .sts-event-gallery-placeholder {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 3px;
    }

    .sts-event.archive-size-small .sts-event__archive-writeup {
        -webkit-line-clamp: 2;
    }

    .sts-event.expanded .sts-event__archive-writeup {
        -webkit-line-clamp: unset;
        max-height: none;
        height: auto;
        overflow: visible;
    }
}






/* Timeline Filter (Archives) */
.sts-timeline-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.sts-timeline-search, .sts-timeline-sort {
    padding: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    font-size: 16px;
}

/* Modal Gallery (Archives) */
.sts-gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
}

.sts-gallery-lightbox.active {
    display: flex;
}

.sts-gallery-lightbox__container {
    position: relative;
    width: 800px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}

.sts-gallery-lightbox__container.modal-size-small {
    width: 400px;
    height: 300px;
}
.sts-gallery-lightbox__container.modal-size-medium {
    width: 800px;
    height: 600px;
}
.sts-gallery-lightbox__container.modal-size-large {
    width: 1000px;
    height: 750px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}

.sts-gallery-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sts-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.sts-gallery-lightbox__nav button {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 5px;
}

.sts-gallery-lightbox__nav button:hover {
    background: rgba(0,0,0,0.7);
}

.sts-gallery-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.sts-gallery-lightbox__close:hover {
    background: rgba(0,0,0,0.7);
}

/* Admin Styles (Shared) */
.sts-event-details, .sts-archive-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sts-event-details p, .sts-archive-details p {
    flex: 1 1 300px;
    margin: 0;
}

.sts-event-details label, .sts-archive-details label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.sts-event-details input, .sts-event-details textarea,
.sts-archive-details textarea {
    width: 100%;
    padding: 5px;
}

.sts-event-details .char-count, .sts-archive-details .char-count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.sts-archive-details .error {
    color: red;
    font-size: 12px;
}

#sts_event_gallery_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

#sts_event_gallery_container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 4px;
    margin: 5px;
    background: #f8f8f8;
    box-shadow: 0 1px 4px #0001;
}

#sts_event_gallery_button, #sts_event_gallery_remove {
    padding: 5px 10px;
    margin-right: 10px;
    width: auto;
    height: auto;
    min-width: unset;
    min-height: unset;
    max-width: unset;
    max-height: unset;
    display: inline-block;
    align-items: unset;
    justify-content: unset;
    border-radius: 3px;
    font-size: 1em;
    font-weight: 400;
    background: #f8f8f8;
    color: #0073aa;
    border: 1px solid #bbb;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    text-align: center;
}
#sts_event_gallery_button:hover, #sts_event_gallery_remove:hover {
    border-color: #0073aa;
    background: #e6f4fa;
    color: #005077;
}

.sts-toggle-switch {
    display: inline-block;
    width: 120px;
    height: 40px;
    position: relative;
}

.sts-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sts-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #625c5c;
    transition: .2s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding-left: 40px;
}

.sts-toggle-slider .sts-toggle-label {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: transform .2s;
}

.sts-toggle-slider:before {
    position: absolute;
    content: "";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .sts-toggle-slider {
    background-color: #2196F3;
    padding-left: 10px;
    padding-right: 40px;
    color: white;
}

input:checked + .sts-toggle-slider:before {
    transform: translateX(80px);
}

input:checked + .sts-toggle-slider .sts-toggle-label {
    transform: translateX(0);
}

/* Settings Page Styles */
.sts-color-field {
    width: 80px;
}

.sts-event.expanded .sts-event__archive-toggle {
    transform: rotate(180deg);
}

.sts-event.expanded .sts-event__archive-writeup {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    height: auto;
    overflow: visible;
    text-align: justify;
}

.sts-event.expanded .sts-event__image {
    height: auto;
    max-height: none;
    overflow: visible;
}

.sts-event-gallery-img.gallery-image--hidden {
    display: none;
}

.sts-event.expanded .sts-event-gallery-img.gallery-image--hidden {
    display: inline-block;
}

.sts-event.archive-size-small,
.sts-event.archive-size-medium,
.sts-event.archive-size-large {
    position: relative;
}







.sts-year-separator {
    display: flex;
    align-items: center;
    margin: 32px 0 16px 0;
    font-size: 1.3em;
    color: #0073aa;
    font-weight: bold;
}

.sts-year-separator span {
    background: #fff;
    padding: 0 16px;
    z-index: 1;
}

.sts-year-separator:before,
.sts-year-separator:after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e2e2e2;
    margin: 0 8px;
    z-index: 0;
}

/* Modern Drag-and-Drop Uploader Styles */
.sts-modern-dropzone {
    border: 2px dashed #bbb;
    border-radius: 14px;
    background: #fafbfc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 28px 18px 18px 18px;
    text-align: center;
    margin-top: 18px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
}
.sts-modern-dropzone:hover, .sts-modern-dropzone.dragover {
    border-color: #0073aa;
    background: #f0f8ff;
    box-shadow: 0 4px 16px rgba(0,123,170,0.08);
}
.sts-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.sts-dropzone-icon {
    font-size: 2.2em;
    color: #0073aa;
    margin-bottom: 2px;
}
.sts-dropzone-or {
    color: #888;
    font-size: 0.95em;
    margin: 0 4px;
}
.sts-dropzone-browse {
    color: #0073aa;
    cursor: pointer;
    font-weight: 500;
}
.sts-dropzone-hint {
    color: #888;
    font-size: 0.92em;
    margin-top: 2px;
}
.sts-dropzone-progress-list {
    width: 100%;
    margin-top: 10px;
}
.sts-dropzone-progress-bar {
    width: 100%;
    background: #e6e6e6;
    border-radius: 6px;
    height: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}
.sts-dropzone-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00b4d8 100%);
    width: 0%;
    border-radius: 6px;
    transition: width 0.2s;
}
.sts-dropzone-progress-label {
    position: absolute;
    left: 10px;
    top: 0;
    font-size: 0.92em;
    color: #333;
    line-height: 12px;
}
.sts-dropzone-progress-bar.sts-success .sts-dropzone-progress-bar-inner {
    background: linear-gradient(90deg, #43c463 0%, #0073aa 100%);
}
.sts-dropzone-progress-bar.sts-error .sts-dropzone-progress-bar-inner {
    background: linear-gradient(90deg, #e74c3c 0%, #ffb347 100%);


   
