.announcements-rack {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcements-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.announcement-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--fade-duration, 1s) ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.announcement-item.active {
    opacity: 1;
}

.announcement-thumb {
    max-height: 80%;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.announcement-caption {
    margin-top: 8px;
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    padding: 0 6px;
}

/* Lightbox */
.announcement-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.announcement-lightbox img {
    max-height: 90%;
    max-width: 90%;
}
