/* Story tabs layout — skeleton */

.immer-story-tabs {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
}

/* Left nav */
.immer-story-tabs__nav {
    flex: 0 0 auto;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
}

/* mobile the tabs should not have this max width */

.immer-story-tabs__nav-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none !important;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    color: inherit !important;
    transition: font-weight 0s;
    font-weight: normal;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.immer-story-tabs__nav-item,
.immer-story-tabs__nav-item:hover,
.immer-story-tabs__nav-item:active,
.immer-story-tabs__nav-item:focus,
.immer-story-tabs__nav-item.is-active {
    background: none !important;
    color: inherit !important;
    font-weight: 700;
}

.immer-story-tabs__nav-item.is-active {
    color: var(--gd-blue) !important;
}

.immer-story-tabs__nav-item:hover {
    color: var(--gd-blue) !important;
}


/* Panels */
.immer-story-tabs__panels {
    flex: 1;
    min-width: 0;
}

.immer-story-tabs__panel {
    display: none;
    gap: 2rem;
    flex-direction: column;
}

.immer-story-tabs__panel.is-active {
    display: block;
    display: flex;
}

.immer-story-tabs__panel-image {
    margin-bottom: 24px;
}

.immer-story-tabs__panel-image .gd-image {
    height: 34rem;
}

.immer-story-tabs__panel-text {
}

.immer-story-tabs__panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Mobile: scroll nav horizontally on top */
@media (max-width: 768px) {
    .immer-story-tabs {
        flex-direction: column;
        gap: 16px;
    }

    .immer-story-tabs__nav {
        flex: none;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
        gap: 0;
        max-width: 100%;

        /* Text of tab should align, not the left padding outside of first item, so tabs moved 1rem to left.  */
        margin-left: -1rem;
    }

    .immer-story-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .immer-story-tabs__nav-item {
        flex: 0 0 auto;
        width: auto;
    }
}
