.blog-carousel .owl-stage-outer {
    padding-left: 10px;
}

.blog-carousel .owl-item {
    padding-right: 70px;
    box-sizing: border-box;
}

.blog-carousel .owl-item:last-child {
    padding-right: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 550px; /* Matches the actual image height */
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 60px;
    z-index: 1;
}

.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-buttons button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 5px;
}

.carousel-thumbs {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-thumbs img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.7;
    transition: border 0.3s, opacity 0.3s;
}

.carousel-thumbs img.active {
    border-color: #007bff;
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: auto; /* Let it adapt on mobile */
    }

    .carousel-images img {
        height: auto;
        object-fit: contain;
    }
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #f9f9f9; /* Optional: to fill empty space if image is smaller */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}