#about-page .imageContainer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 59%;
    height: 400px;
    border-radius: 24px;
    background: var(--heo-card-bg);
    border: var(--style-border-always);
    box-shadow: var(--heo-shadow-border);
    position: relative;
    overflow: hidden;
}

.imageContainer .carousel {
    display: flex;
    height: 100%;
    width: 100%; /* Ensure the width is 100% of the container */
    transition: transform 0.5s ease-in-out;
}

.imageContainer .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    flex-shrink: 0; /* Prevent images from shrinking */
}
.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.gallery-top {
    height: 100%;
    width: 100%;
    border-radius: 12px;
}

@media screen and (min-width: 1200px) {
    div#bannerGroup2 {
        width: 35rem;
        margin-right: 1rem;
        height: calc(328px + .5rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 12px;
    }

    .blog-slider__content {
        padding: 0 50px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 100%;
        font-size: 1rem;
        color: #FFFFFF;
        text-align: center;
    }

    .blog-slider__content2 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        font-size: 1rem;
        margin: 0 auto 0;
        color: #FFFFFF;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #bannerGroup2 {
        display: none;
    }

    .banner_group2 {
        display: none;
    }
}

/* When the layout gets narrow, make both sides full width */
@media (max-width: 900px) {
  #about-page .aboutContactInfo.author-content-item,
  #about-page .imageContainer {
    width: 100% !important;
  }
}


/* --- restore Magic Words interactivity & keep it above neighbors --- */
#about-page .magic-words {
  position: relative;     /* ensure stacking context */
  z-index: 100;           /* sit above map/carousel blocks */
  pointer-events: auto;   /* make sure it can receive events */
  min-height: 315px;      /* reserve its own hit area */
}

/* overlays inside shouldn't eat the mouse */
#about-page .magic-words .content,
#about-page .magic-words .shapes,
#about-page .magic-words .shape,
#about-page .magic-words .cursor {
  pointer-events: none;
}

/* neighbors: keep below so they don't cover it */
#about-page .aboutMapRight,
#about-page .imageContainer {
  position: relative;
  z-index: 0;
}
