@-webkit-keyframes zoom {
  0% { -webkit-transform: scale(1); }
  100% { -webkit-transform: scale(1.2); }
}

@keyframes zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

.animated-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-animation: zoom 10s ease-in-out infinite;
    animation: zoom 10s ease-in-out infinite;
    -webkit-transform-origin: center center;
    transform-origin: center center;
}

.carousel-caption {
    background-color: rgba(0,0,0,0.5);
    padding: 15px;
    border-radius: 8px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.carousel-caption h3, .carousel-caption p {
    color: #fff;
    margin: 0;
}

.carousel-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
    line-height: 1.5;
}

.btn-warning {
    margin-top: 10px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: #f0ad4e;
    border: none;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-warning:hover {
    background-color: #ec971f;
    text-decoration: none;
}
