/* Basic styling for the carousel */
.medici-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.medici-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.medici-slide {
    flex-shrink: 0;
    width: 100%; /* Each slide takes up 100% of the container width */
}

/* Two-column layout and vertical centering */
.medici-content {
    display: flex;
    align-items: center; /* This centers items vertically */
    justify-content: center; /* This centers items horizontally */
    flex-direction: column; /* Stacks image and text */
    padding: 20px;
    text-align: center;
}

/* For larger screens, use a two-column layout */
@media (min-width: 768px) {
    .medici-content {
        flex-direction: row; /* Arranges image and text side-by-side */
    }

    .medici-image {
        flex: 1; /* Occupies one part of the space */
        padding-right: 20px;
    }

    .medici-text {
        flex: 1; /* Occupies the other part */
        text-align: left;
    }
}
@media (max-width: 768px) {
        .medici-image {
        flex: 1; /* Occupies one part of the space */
        padding-right: 20px;
        padding-left:15%;
    }
        .medici-text {
        flex: 1; /* Occupies the other part */
        text-align: center;
    }
}

/* Style for the image */
.medici-image img {
    max-width: 100%;
    height: auto;
}