.main-photo-block {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 600px;
    background-size: cover;
    background-position: center;
    border-radius: 50px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1;
    pointer-events: none;
}

.text-content {
    background-color: var(--wp--preset--color--custom-steel-blue);
    border-radius: 0 0 500px 500px;
    width: 553px;
    height: 277px;
    text-align: center;
    color: white;
    padding: 1.5em 136px;
}

.text-content h3 {
    color: white;
    margin: 0;
}

.text-content h6 {
    color: white;   
    margin-top: 1em;
}

.bottom-circle {
    position: absolute;
    bottom: -135px; /* Half of the circle's height to cover the bottom part */
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--background);
    overflow: hidden;
}

.rotating-image {
    position: absolute;
    width: 250px; /* 20px smaller than the original size */
    height: 250px;
    animation: rotate360 20s linear infinite;
    top: 10px; /* Center it inside the circle */
    left: 10px;
}

.center-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* No size changes, keeping original size */
}

/* Rotate animation for the outer image */
@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {

    .text-content {
        background-color: unset;
        width: 100%;
        height: 100%;
        padding: 1.5em
    }

    .overlay {
        position: relative;
        transform: unset;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .text-content h3, .text-content h6 {
        color: var(--wp--preset--color--custom-steel-blue); /* Ensure text color */
        background: none; /* No background in the text content */
        margin-bottom: 0;
    }
}

.editor-styles-wrapper .text-content{
    width: 281px;
    height: 229px;
    /* Gutenberg editor fix */
}