/* Timeline Gallery Widget CSS */
.timeline-gallery-wrapper {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}
.timeline-line {
    position: absolute;
    height: 4px;
    background-color: #2271b1;
    top: 130px;
    left: 0;
    right: 0;
    z-index: 1;
}
.timeline-items {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.timeline-items::-webkit-scrollbar {
    display: none;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    min-width: 160px;
    max-width: 180px;
    box-sizing: border-box;
}
.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}
.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #2271b1;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1);
}
.marker-year {
    font-weight: bold;
    font-size: 18px;
    margin-top: 8px;
}
.timeline-card {
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}
.timeline-card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.card-image {
    position: relative;
}
.card-image img {
    display: block;
    width: 100%;
    /* Height is set inline for configurability */
    object-fit: cover;
    background: #e0e0e0;
}
.card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 10px;
}
.card-title h3 {
    color: #fff;
    margin: 0;
    font-size: 14px;
}
.card-description {
    padding: 10px;
}
.card-description p {
    margin: 0;
    font-size: 13px;
    color: #555;
}
/* Admin styles */
.timeline-item-row {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}
.image-preview {
    margin-top: 10px;
}
/* Block Editor styles */
.wp-block-school-timeline-gallery {
    margin: 30px 0;
}