.ifsig-sections {
    font-family: "Boombox 2", sans-serif;
    margin-top: 0;
    padding-top: 0;
}

/* =========================
   WRAPPER
   ========================= */

.ifsig-carousel-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
}

.ifsig-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================
   GRID
   ========================= */

.ifsig-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;

    width: max-content;

    transition: transform .9s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}

/* =========================
   DESKTOP
   4 POSTS
   ========================= */

.ifsig-post {

    flex: 0 0 calc((100vw - 220px) / 4);
    min-width: calc((100vw - 220px) / 4);

    max-width: 420px;

    border: 1px solid rgb(129,129,129);
    border-radius: 18px;

    overflow: hidden;

    background: #fff;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    flex-shrink: 0;
}

/* =========================
   TABLET
   2 POSTS
   ========================= */

@media (max-width:1024px) {

    .ifsig-post {

        flex: 0 0 calc((100vw - 90px) / 2);
        min-width: calc((100vw - 90px) / 2);

        max-width: none;
    }
}

/* =========================
   MOBILE
   1 POST VOLLBREITE
   ========================= */

@media (max-width:600px) {

    .ifsig-carousel {

        padding-left: 8px;
        padding-right: 8px;

        box-sizing: border-box;
    }

    .ifsig-grid {
        gap: 12px;
    }

    .ifsig-post {

        flex: 0 0 calc(100vw - 16px);
        min-width: calc(100vw - 16px);

        max-width: none;
    }
}

/* =========================
   OUTER NAVIGATION
   ========================= */

.ifsig-carousel-nav {

    position: absolute;

    top: 50%;
    left: 10px;
    right: 10px;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;

    pointer-events: none;

    z-index: 9999;
}

@media (max-width:1400px) {

    .ifsig-carousel-nav {

        left: 10px;
        right: 10px;
    }
}

@media (max-width:600px) {

    .ifsig-carousel-nav {
        display: none;
    }
}

/* =========================
   OUTER BUTTONS
   ========================= */

.ifsig-carousel-arrow {

    width: 58px;
    height: 58px;

    border: none;
    border-radius: 999px;

    background: rgba(0,0,0,.85);

    color: #fff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: auto;

    box-shadow: 0 8px 24px rgba(0,0,0,.25);

    transition:
        transform .25s ease,
        background .25s ease;
}

.ifsig-carousel-arrow:hover {

    transform: scale(1.08);

    background: rgba(0,0,0,.95);
}

/* =========================
   IMAGE
   ========================= */

.ifsig-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.ifsig-track {

    display: flex;

    width: 100%;
    height: 100%;

    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.ifsig-track::-webkit-scrollbar {
    display: none;
}

.ifsig-slide {

    min-width: 100%;
    height: 100%;

    scroll-snap-align: start;
}

.ifsig-slide img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================
   IMAGE BUTTONS
   ========================= */

.ifsig-prev,
.ifsig-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,.55);

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    z-index: 5;
}

.ifsig-prev {
    left: 10px;
}

.ifsig-next {
    right: 10px;
}

@media (max-width:600px) {

    .ifsig-prev,
    .ifsig-next {
        display: none;
    }
}

/* =========================
   CONTENT
   ========================= */

.ifsig-content {

    padding: 18px 20px 24px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

/* =========================
   TITLE
   ========================= */

.ifsig-title {

    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

/* =========================
   DATE
   ========================= */

.ifsig-date {

    font-size: 16px;

    opacity: .75;

    margin-top: 6px;
    margin-bottom: 18px;
}

/* =========================
   TEXT
   ========================= */

.ifsig-text-slider {
    overflow: hidden;
}

.ifsig-text-track {

    display: flex;

    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;
}

.ifsig-text-track::-webkit-scrollbar {
    display: none;
}

.ifsig-text-page {

    min-width: 100%;

    font-family: system-ui;

    font-size: 18px;
    line-height: 1.6;

    scroll-snap-align: start;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;

    overflow: hidden;
}

/* =========================
   MOBILE CONTENT
   ========================= */

@media (max-width:600px) {

    .ifsig-content {
        padding: 14px;
    }

    .ifsig-title {
        font-size: 1.2rem;
    }

    .ifsig-date {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .ifsig-text-page {

        font-size: 15px;
        line-height: 1.45;
    }
}

/* =========================
   TEXT NAVIGATION
   ========================= */

.ifsig-text-nav {

    display: flex;
    justify-content: center;

    gap: 12px;

    margin-top: 18px;
}

@media (max-width:600px) {

    .ifsig-text-nav {
        display: none;
    }
}

.ifsig-text-prev,
.ifsig-text-next {

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,.55);

    color: #fff;

    font-size: 22px;

    cursor: pointer;
}

/* =========================
   DARK MODE
   ========================= */

body.dark-mode .ifsig-post {

    background: var(--dct-bg-dark) !important;

    border-color: rgba(255,255,255,.12);

    color: var(--dct-text-dark) !important;
}

body.dark-mode .ifsig-title,
body.dark-mode .ifsig-date,
body.dark-mode .ifsig-text-page,
body.dark-mode .ifsig-content {

    color: var(--dct-text-dark) !important;
}

body.dark-mode .ifsig-post * {
    color: inherit;
}

/* =========================
   OUTER DOTS
   ========================= */

.ifsig-dots{

    display:flex;
    justify-content:center;
    align-items:center;

    width:100%;

    gap:14px;

    margin-top:24px;
    margin-bottom:12px;
}

.ifsig-dot{

    width:14px;
    height:14px;

    padding:0;

    border:none;
    border-radius:50%;

    background:#cfcfcf;

    cursor:pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;

    box-shadow:
        0 2px 8px rgba(0,0,0,.15);
}

.ifsig-dot:hover{

    transform:scale(1.15);
}

.ifsig-dot.active{

    background:#000;

    transform:scale(1.45);

    box-shadow:
        0 0 0 4px rgba(0,0,0,.12),
        0 6px 18px rgba(0,0,0,.35);
}

body.dark-mode .ifsig-dot{

    background:#666;
}

body.dark-mode .ifsig-dot.active{

    background:#fff;

    box-shadow:
        0 0 0 4px rgba(255,255,255,.12),
        0 6px 18px rgba(255,255,255,.25);
}