.carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel img,
.carousel video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: none;
    border-radius: 8px;
}

.carousel img.active,
.carousel video.active {
    display: block;
}

.carousel img.contain,
.carousel video.contain {
    object-fit: contain;
    background: #000;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots span.active {
    background: #738678;
}

.post-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Blog index styles */
.blog-divider {
    border: none;
    border-top: 2px solid #738678;
    margin: 10px 0 20px;
}

.cover-photo {
    width: 100%;
    max-width: 500px;
    height: 250px;
    border-radius: 8px;
    margin: 10px 0;
    overflow: hidden;
}

.cover-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
}

.blog-footer a {
    color: #007bff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .carousel img,
    .carousel video {
        height: 280px;
    }
}
