.iml-text-gallery-block {
    background-color: #1d1c1c;;
    color: #ffffff;
    padding: 80px 25px;
}

.iml-text-gallery__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: stretch; /* Bild spannen */
}

/* 3/5 – 2/5 Aufteilung */
.iml-text-gallery__left {
    flex: 3 1 0;
}

.iml-text-gallery__right {
    flex: 2 1 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: 80px;
}

/* Galerie rechts – soll möglichst hoch sein */
.iml-text-gallery__gallery {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;     /* Grundhöhe */
    height: 100%;          /* spannen */
}

.iml-text-gallery__gallery-item {
    width: 100%;
    height: 100%;
}

.iml-text-gallery__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* wie im Screenshot: vollflächig */
}


/* Top Headline */
.iml-text-gallery__top-headline span {
    background: #2E2E2E 0% 0% no-repeat padding-box;
    border-radius: 7px;
    opacity: 1;
    display: block;
    text-align: center;
    padding: 5px 15px;
    font: normal normal normal 20px / 26px Avenir;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 1;
    margin: 0 auto;
    width: fit-content;
    display: inline-block;
}

/* Headline */
.iml-text-gallery__headline h2 {
    font: normal normal 900 50px/60px Avenir;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: capitalize;
}

.iml-text-gallery__headline h2 strong,
.iml-text-gallery__headline h2 b {
    color: #c0153d; /* Akzentfarbe wie im Screenshot */
}

/* Features */
.iml-text-gallery__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
}

.iml-text-gallery__feature {
    display: flex;
    flex-direction: column;
}

.iml-text-gallery__feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.iml-text-gallery__feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Zahl leicht nach rechts versetzt */
.iml-text-gallery__feature-number {
    font-size: 100px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.04);
    margin-left: 4px;
    order: 2;
    line-height: 1;
    padding-left: 70px;
}


.iml-text-gallery__feature-icon {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.iml-text-gallery__feature-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    opacity: 0.6;
}

.iml-text-gallery__feature-content h3.iml-text-gallery__feature-title {
    margin: 0 0 8px;
    font: normal normal medium 25px/34px Avenir;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: capitalize;
    opacity: 1;
}

.iml-text-gallery__feature-text {
    line-height: 1.5;
    margin: 0;
    text-align: left;
    font: normal normal normal 16px / 26px Avenir;
    letter-spacing: 0px;
    color: #C4C4C4;
    opacity: 1;
}

/* Hinweis im Editor */
.iml-text-gallery__feature-note {
    font-size: 11px;
    opacity: 0.6;
}

/* Galerie / Slider rechts */
.iml-text-gallery__gallery {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 10px;
    overflow: hidden;
}

.iml-text-gallery__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ein Bild */
.iml-text-gallery__gallery.is-single .iml-text-gallery__gallery-item {
    display: block;
}

/* Slider-Variante (bei dir dann mit JS ansteuern, z.B. Flickity) */
.iml-text-gallery__gallery.is-slider {
    /* du kannst hier z.B. overflow: hidden lassen
       und per JS das Slider-Plugin initialisieren */
}

/* Pfeile sicherheitshalber ausblenden, falls Flickity CSS sie zeigt */
.iml-text-gallery__gallery .flickity-button {
    display: none !important;
}

/* Dots-Leiste auf dem Bild, mittig unten */
.iml-text-gallery__gallery .flickity-page-dots {
    bottom: 16px;
    padding: 0;
    margin: 0;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

/* Parallelogramm-Dots */
.iml-text-gallery__gallery .flickity-page-dots .dot {
    width: 22px;
    height: 25px;
    margin: 0;
    border-radius: 0;
    transform: skewX(-25deg);
    background: rgba(255, 255, 255, 0.25); /* grau / hell */
    opacity: 1;
    cursor: pointer;
}

/* Aktiver Dot */
.iml-text-gallery__gallery .flickity-page-dots .dot.is-selected {
    background: #c0153d; /* rot wie im Headline-Accent */
}


/* Editor-Preview für mehrere Bilder */
.iml-text-gallery__slider-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.iml-text-gallery__slider-preview-item {
    width: 48%;
}

.iml-text-gallery__slider-preview-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder im Editor rechts */
.iml-text-gallery__gallery-placeholder {
    width: 100%;
    max-width: 480px;
    min-height: 220px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
}

/* Single-image-preview im Editor */
.iml-text-gallery__single-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Galerie-Controls im Editor */
.iml-text-gallery__gallery-control {
    margin-bottom: 16px;
}

.iml-text-gallery__gallery-info {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 960px) {
    .iml-text-gallery__inner {
        flex-direction: column;
        gap: 40px;
    }

    .iml-text-gallery__features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .iml-text-gallery-block {
        padding: 50px 0;
    }

    .iml-text-gallery__headline h2 {
        font-size: 28px;
    }

    .iml-text-gallery__inner {
    padding: 10px 25px;
}
}
