/*==============================*/
/*=====----- TEMPLATE -----=====*/
/*==============================*/

.tabbed-side-by-side {
    --tabs-height: 50px;
    --border-color: rgba(0, 0, 0, 0.149);

    position: relative;
    margin-bottom: 80px;
    color: var(--black-30);
}

.tabbed-side-by-side .template-header {
    padding: 0 20px;
    margin-bottom: 14px;
    text-align: center;
}

.tabbed-side-by-side .template-title {
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 45px;
    line-height: calc(10/9);
    letter-spacing: -0.05em;
    color: var(--blue-00);
}

.tabbed-side-by-side .template-inner {
    position: relative;
    background: var(--white);
    box-shadow: 2.5px 4.33px 18px rgba(0, 0, 0, 0.078);
    overflow: hidden;
    transition: height var(--transition-appendix);
}

.tabbed-side-by-side .slides {
    position: relative;
    z-index: 1;
}

/*----- tabs -----*/

.tabbed-side-by-side .tabs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: var(--tabs-height);
}

.tabbed-side-by-side .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: var(--tabs-height);
    padding: 13px 22px;
    margin: 0;
    background: var(--white);
    border: none;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 20px;
    letter-spacing: -0.05em;
    line-height: 1.2;
    text-align: left;
    color: inherit;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity var(--transition-appendix);
}

.tabbed-side-by-side .tab::after {
    transform: none;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f107';
    font-size: 16px;
    opacity: 0;
    transition:
        opacity var(--transition-appendix),
        transform var(--transition-appendix);
}

/* active tab */

.tabbed-side-by-side .tabs.active .tab {
    opacity: 1;
    pointer-events: all;
}

.tabbed-side-by-side .tabs.active .tab::after {
    transform: rotateX(180deg);
}

.tabbed-side-by-side .tab.active {
    order: -1;
    opacity: 1;
    pointer-events: all;
}

.tabbed-side-by-side .tab.active::after {
    opacity: 1;
}

/*============================*/
/*=====----- SLIDES -----=====*/
/*============================*/

.tabbed-side-by-side .slide,
.tabbed-side-by-side .img-cont,
.tabbed-side-by-side .slide-img {
    position: relative;
    z-index: 1;
}

.tabbed-side-by-side .slide {
    position: relative;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-appendix);
}

.tabbed-side-by-side .slide + .slide {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 1;
}

.tabbed-side-by-side .img-cont::before {
    position: absolute;
    inset: 50% 0 0 0;
    z-index: 2;
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    content: '';
    pointer-events: none;
}

.tabbed-side-by-side .slide-img {
    width: 100%;
}

.tabbed-side-by-side .slide-title {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 30px;
    line-height: calc(7/6);
    letter-spacing: -0.05em;
    color: var(--white);
    pointer-events: none;
}

.tabbed-side-by-side .content-section {
    max-width: 851px;
    padding: 14px 21px 23px;
}

.tabbed-side-by-side .desc-title {
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.05em;
    color: inherit;
}

.tabbed-side-by-side .slide-desc {
    font-family: var(--font-body);
    font-weight: normal;
    font-size: 16px;
    line-height: 1.5;
    color: inherit;
}

.tabbed-side-by-side .slide-footer {
    margin-top: 20px;
}

.tabbed-side-by-side .related-links {
    display: grid;
    grid-template: auto / max-content minmax(0, 1fr);
    gap: 12px 22px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tabbed-side-by-side .related-links-heading {
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}

.tabbed-side-by-side .related-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    grid-column: 2;
    font-family: var(--font-body);
    font-weight: normal;
    font-style: italic;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}

.tabbed-side-by-side .related-link::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
}

.tabbed-side-by-side .related-link.events::before {
    content: '\f073';
}
.tabbed-side-by-side .related-link.food::before {
    content: '\f2e7';
}
.tabbed-side-by-side .related-link.hotels::before {
    content: '\f594';
}

/*----- active slide -----*/

.tabbed-side-by-side .slide.active {
    opacity: 1;
    pointer-events: all;
}

/*===================================*/
/*=====----- MEDIA QUERIES -----=====*/
/*===================================*/

@media (min-width: 40em) {
    .tabbed-side-by-side .tabs {
        border-bottom: 1px solid var(--border-color);
    }

    .tabbed-side-by-side .slide .inner {
        display: grid;
        grid-template: auto / repeat(2, minmax(0, 1fr));
    }

    .tabbed-side-by-side .img-cont,
    .tabbed-side-by-side .slide-img {
        width: 100%;
        height: 100%;
    }

    .tabbed-side-by-side .slide-img {
        object-fit: cover;
    }
}

@media (min-width: 64em) {
    .tabbed-side-by-side {
        --content-width: 59.1%;
        --tabs-height: 98px;

        margin-bottom: 108px;
    }

    .tabbed-side-by-side .template-header {
        margin-bottom: 25px;
    }

    .tabbed-side-by-side .template-title {
        font-size: 70px;
    }

    /*----- tabs -----*/

    .tabbed-side-by-side .tabs {
        position: absolute;
        top: 0;
        right: 0;
        flex-direction: row;
        width: var(--content-width);
        border: none;
        overflow: hidden;
    }

    .tabbed-side-by-side .tab {
        position: relative;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-grow: 1;
        order: 0 !important;
        padding: 24px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
        text-align: center;
        color: var(--white);
        opacity: 1;
        pointer-events: all;
    }

    .tabbed-side-by-side .tab:first-child {
        background: var(--blue-2c);
    }
    .tabbed-side-by-side .tab:nth-child(2) {
        z-index: 3;
        background: var(--blue-00);
    }
    .tabbed-side-by-side .tab:nth-child(3) {
        z-index: 2;
        background: var(--green-6e);
    }
    .tabbed-side-by-side .tab:last-child {
        z-index: 1;
        background: var(--orange-cf);
    }

    .tabbed-side-by-side .tab::after {
        display: none;
    }

    /* active tab */

    .tabbed-side-by-side .tab.active {
        z-index: 5;
        background: var(--white);
        color: inherit;
    }

    /*----- slides -----*/

    .tabbed-side-by-side .slide .inner {
        grid-template: auto / minmax(0, 1fr) var(--content-width);
    }

    .tabbed-side-by-side .content-section {
        padding-top: calc(var(--tabs-height) + 23px);
    }
}

@media (min-width: 90em) {
    .tabbed-side-by-side .slide-title {
        padding: 42px 48px;
        font-size: 50px;
        line-height: 1.1;
    }

    .tabbed-side-by-side .content-section {
        padding: calc(var(--tabs-height) + 23px) 58px 57px 49px;
    }

    .tabbed-side-by-side .desc-title {
        font-size: 35px;
    }

    .tabbed-side-by-side .slide-desc {
        line-height: 1.75;
    }

    .tabbed-side-by-side .slide-footer {
        margin-top: 44px;
    }

    .tabbed-side-by-side .related-links {
        display: flex;
        align-items: baseline;
        gap: 36px;
        margin-top: 47px;
    }
}