.template-9820 .layout__toggle {
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--color-9) border-box;
    border: 1px solid transparent;
    border-radius: 50px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 4px;
    box-sizing: border-box;
    align-items: stretch;
}

/* Hide radios visually but keep accessible */

.template-9820 .layout__toggle-input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.template-9820 .layout__toggle-label {
    cursor: pointer;
    user-select: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(50px - 4px);
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
    background: var(--color-9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    z-index: 2;
}

/* Responsive of the toggle */

@media (min-width: 991.92px) {
    
    .template-9820 .layout__toggle {
        height: 46px;
    }

    .template-9820 .layout__toggle-label {
        font-size: 14px;
    }
}

@media (min-width: 1199.92px) {
    
    .template-9820 .layout__toggle {
        height: 56px;
    }

    .template-9820 .layout__toggle-label {
        font-size: 16px;
    }
}

/* Sliding gradient thumb */

.template-9820 .layout__toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 4px * 2);
    border-radius: calc(50px - 4px);
    background: var(--color-9);
    box-shadow: 0 8px 20px rgba(106, 47, 177, 0.18);
    transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
    z-index: 1;
}

/* Active label */

.template-9820 #desktop:checked ~ .layout__toggle-label[for="desktop"],
.template-9820 #mobile:checked ~ .layout__toggle-label[for="mobile"] {
    background: var(--color-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Move the thumb */

.template-9820 #desktop:checked ~ .layout__toggle-thumb { transform: translateX(0%); }
.template-9820 #mobile:checked ~ .layout__toggle-thumb { transform: translateX(100%); }

/* Focus ring for keyboard users */

.template-9820 .layout__toggle:focus-within {
    box-shadow: unset;
}

.template-9820 .layout__icon {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* Icons active styles */

.template-9820 .layout__icon--desktop.is-active path, 
.template-9820 .layout__icon--mobile.is-active path {
    stroke: var(--color-3);
    fill: var(--color-3);
    transition: 0.3s;
}

.template-9820 .layout__icon--desktop img,
.template-9820 .layout__icon--desktop svg {
    max-width: 50px;
    max-height: 60px;
}

.template-9820 .layout__icon--mobile img,
.template-9820 .layout__icon--mobile svg {
    max-width: 25px;
    max-height: 60px;
}

@media (min-width: 374.92px) {
    
    .template-9820 .layout__icon--desktop img,
    .template-9820 .layout__icon--desktop svg {
        max-width: 60px;
    }

    .template-9820 .layout__icon--mobile img,
    .template-9820 .layout__icon--mobile svg {
        max-width: 30px;
    }
}

@media (min-width: 575.92px) {
    
    .template-9820 .layout__icon--desktop img,
    .template-9820 .layout__icon--desktop svg {
        max-width: 80px;
        max-height: 80px;
    }

    .template-9820 .layout__icon--mobile img,
    .template-9820 .layout__icon--mobile svg {
        max-width: 35px;
        max-height: 80px;
    }   
}

@media (min-width: 1199.92px) {
    
    .template-9820 .layout__icon--desktop img,
    .template-9820 .layout__icon--desktop svg {
        max-width: 110px;
        max-height: 95px;
    }

    .template-9820 .layout__icon--mobile img,
    .template-9820 .layout__icon--mobile svg {
        max-width: 50px;
        max-height: 95px;
    }   
}

/* Images styling and active styles */

.template-9820 .layout__image--desktop,
.template-9820 .layout__image--desktop img,
.template-9820 .layout__image--mobile,
.template-9820 .layout__image--mobile img {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s linear;
    height: 0;
}

.template-9820 .layout__image--desktop.is-active,
.template-9820 .layout__image--desktop.is-active img,
.template-9820 .layout__image--mobile.is-active,
.template-9820 .layout__image--mobile.is-active img {
    visibility: visible;
    opacity: 1;
    height: 100%;
}

@media (min-width: 991.92px) {
    
    .template-9820 .layout__image--mobile.is-active,
    .template-9820 .layout__image--desktop.is-active {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        cursor: zoom-in;
    }

    .template-9820 .layout__image--mobile.is-active::after,
    .template-9820 .layout__image--desktop.is-active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
        background-color: #76767643;
        transition: opacity 0.3s;
    }

    .template-9820 .layout__image--mobile.is-active:hover::after,
    .template-9820 .layout__image--desktop.is-active:hover::after {
        opacity: 1;
    }
}

/* @media (min-width: 1199.92px) {
    
    .template-9820 .layout__image--mobile img {
        max-width: 50%;
    }
} */

/* gallery disabled on mobile/tablet */

@media (max-width: 991.92px) {

    .template-9820 .layout__content.layout__content--gallery-disabled-on-mobile-tablet {
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

/* Magnific Popup styles */

.mfp-gallery .mfp-img {
    max-height: 100% !important;
}

.mfp-gallery .mfp-arrow {
    position: fixed;
}

.mfp-wrap.mfp-gallery .mfp-close {
    position: fixed;
    top: 12px;
    right: 16px !important;
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 44px;
    text-align: center;
    font-size: 32px !important;
    color: #fff;
    background: rgba(11, 11, 11, 0.72);
    border-radius: 50%;
    opacity: 1;
    z-index: 1047;
}

.mfp-wrap.mfp-gallery .mfp-close:hover,
.mfp-wrap.mfp-gallery .mfp-close:focus,
.mfp-wrap.mfp-gallery .mfp-close:active {
    top: 12px;
    opacity: 1;
}

/* Sticky header styles */

.template-9820.is-sticky .layout__header {
    z-index: 9;
}
