/* ======================================================================
 * SECTION SHIFT
 * ======================================================================
*/

/* Prevent overlapping sliders to block each other */

.shift {pointer-events: none}
.shift .col:not(.placeholder) {pointer-events: all}

.shift-container {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.shift-container-slider {
    width: 300%;
    display: flex;
    position: relative;
    left: 0;
    transition: .4s;
}

.shift-container-slider.shift-2 {width: 200%}

.shift-container-slider[data-position="0"] {left: 0}
.shift-container-slider[data-position="1"],
.shift-container-slider[data-position="2"] {left: -100%}
.shift-container-slider:not(.shift-2)[data-position="2"] {left: -200%}

.col {
    width: calc(100%/3);
    padding: var(--col-padding);
    position: relative;
}

.shift-2 .col {width: 50%}
aside .col,
.aside-content .col {padding-top: 0}

.col:not(.active) {
    max-height: 100vh;
    overflow-y: hidden;
}

/* ------------------------------ SHIFT TITLES */

.shift-title {
    color: #fff;
    font-size: 56px;
    position: fixed;
    top: calc(var(--nav-height) + 150px); left: var(--body-padding-lr);
    z-index: 1;
    text-shadow: 0 0 3px #000;
    transition: .4s;
}

.shift-title::after {
    content: "";
    width: calc(100% + 40px);
    height: 65%;
    background-color: var(--transparent-black);
    position: absolute;
    top: 46%; left: -5%;
    z-index: -1;
}

.col:not(.active) .shift-title,
body.scroll .col.active .shift-title,
body.scroll .main-content > .shift-title {
    left: -10%;
    opacity: 0;
}

/* ================================================== SHIFT BUTTONS */

/* ------------------------------ FIXED BUTTONS */

.shift-fixed-buttons {
    width: var(--main-width);
    text-align: center;
    display: flex;
    justify-content: center;
    position: fixed;
    top: calc(var(--nav-height) + 10px);
    left: var(--body-padding-lr);
    z-index: 0;
    pointer-events: none;
    transition: opacity .4s, transform .4s;
}

.shift-buttons-container {
    position: relative;
    pointer-events: all;
}

.shift-buttons-container button span {white-space: nowrap}

.shift-fixed-buttons button,
.shift-button {
    width: 50px;
    height: 50px;
    min-height: 50px;
    color: var(--grey);
    font-size: 20px;
    line-height: 1;
    border: 1px solid #000;
    border-radius: 100%;
    background: none;
    position: relative;
    z-index: 1;
}

.shift-fixed-buttons button.active b {transition: color .4s}

.shift-button span {
    position: absolute;
    top: 0; left: 0;
}

.shift-buttons-disk {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 100%;
    position: absolute;
    top: 5px;
    z-index: 0;
    transition: .4s;
}
.shift-buttons-disk[data-position="0"] {left: 5px}
.shift-buttons-disk[data-position="1"] {left: 50%; transform: translateX(-50%)}
.shift-buttons-disk[data-position="2"] {left: calc(100% - 45px)}
.shift-2-buttons .shift-buttons-disk[data-position="1"] {left: calc(100% - 25px)}

/* ------------------------------ NEXT SECTION */

.shift-next {
    margin: 100px auto 0 auto;
    color: #000;
    border-width: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shift-next svg {
    width: 24px;
    transition: .4s;
}
.shift-next:hover svg {transform: translateX(4px)}

.shift-next span {
    color: #000;
    font-size: 14px;
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* ------------------------------ TWO OPTIONS */

.shift-two-options .shift-buttons-container {display: flex}

.shift-two-options button {
    width: 50%;
    margin: 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.shift-two-options button.active {
    background-color: #000;
    color: #fff;
}
.shift-two-options button.active svg {fill: #fff}

.shift-two-options button svg {
    width: 24px;
    margin-right: 10px;
}

.shift-two-options button:first-of-type {border-radius: 50px 0 0 50px; border-right: none}
.shift-two-options button:last-of-type {border-radius: 0 50px 50px 0; border-left: none}

/* ================================================== ADDITIONNAL SHIFT ELEMENTS */

.col .see-also {
    width: 100%;
    padding: 20px;
    color: var(--grey);
    font-size: 14px;
    text-align: center;
    border: solid var(--grey);
    border-width: 1px 0;
}

.col .see-also button:hover {color: #000}

/* ================================================== FADE-IN ANIMATIONS */

.fade-in > .shift-container > .shift-container-slider {
    margin-top: 100px;
    opacity: 0;
}

.fade-in .shift-fixed-buttons {
    transform: translateY(-20px);
    opacity: 0;
}

.fade-in .shift-title {
    left: -10%;
    opacity: 0;
}