/*
 * .-----------------------------------------------------.
 * |                     SHARE LINK                      |
 * '-----------------------------------------------------'
 */

html.no-js .ar20-sharelink {
    display: none;
}

.ar20-sharelink a {
    display: block;
    width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.ar20-sharelink svg {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.ar20-sharelink svg.ar20-sharelink-hover {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.ar20-sharelink a:hover svg {
    opacity: 0;
}

.ar20-sharelink a:hover svg.ar20-sharelink-hover {
    opacity: 1;
}

/*
 * .-----------------------------------------------------.
 * |                     SHARE MODAL                     |
 * '-----------------------------------------------------'
 */

.ar20-sharemodal {
    display: flex;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 998;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    pointer-events: none;
    overflow: hidden;
}

html.no-js .ar20-sharemodal {
    display: none;
}

.ar20-sharemodal-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(.16,.72,.88,.58);
    transition-delay: 0.3s;
}

.ar20-sharemodal-window {
    width: 100%;
    max-width: 700px;
    z-index: 2;
    transform: translate(50%, 0%);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 0;
}

/* --- Shown --- */

.ar20-sharemodal-shown {
    pointer-events: all;
}

.ar20-sharemodal-shown .ar20-sharemodal-bg {
    transform: translate(0, 0);
}

.ar20-sharemodal-shown .ar20-sharemodal-window {
    transform: translate(0, 0);
    opacity: 1;
}

/* --- Close Button --- */

.ar20-sharemodal-close {
    margin-bottom: 15px;
    widt: 100%;
}

.ar20-sharemodal-close button {
    display: block;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 0;
    color: inherit;
    outline: 0;
    overflow: visible;
}

.ar20-sharemodal-close svg {
    float: left;
    width: 40px;
    height: 40px;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    fill: currentColor;
}

.ar20-sharemodal-close span {
    float: left;
    font-size: 15px;
    line-height: 40px;
    padding-left: 15px;
}

.ar20-sharemodal-close button:hover svg {
    transform: translateX(-10px);
}

/* --- Modal Content --- */

.ar20-sharemodal-content {
    background: #fff;
    padding: 36px 60px 0;
    box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 55px);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow-y: auto;
}

.ar20-sharemodal-image {
    width: 100%;
    height: 0;
    padding-bottom: 52.3333%;
    overflow: hidden;
    position: relative;
}

.ar20-sharemodal-image img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

p.ar20-sharemodal-description {
    font-size: 21px;
    line-height: 28px;
    margin: 10px 0 25px;
}

.ar20-sharemodal-actions {
    display: flex;
    border-top: 3px solid currentColor;
    padding-top: 15px;
    padding-bottom: 25px;
}

a.ar20-sharemodal-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0 !important;
    border: 0;
}

a.ar20-sharemodal-button.facebook {
    color: #4267b2;
}

a.ar20-sharemodal-button.twitter {
    color: #38a1f3;
}

a.ar20-sharemodal-button.facebook:hover {
    color: #5280dd;
}

a.ar20-sharemodal-button.twitter:hover {
    color: #3fb6ff;
}

a.ar20-sharemodal-button:first-child {
    padding-right: 20px;
}

a.ar20-sharemodal-button:last-child {
    border-left: 1px solid #4a4a4a;
    padding-left: 30px;
}

a.ar20-sharemodal-button span {
    display: block;
    width: calc(100% - 65px);
    padding-bottom: 1px;
    font-size: 21px;
    line-height: 28px;
    text-decoration: none;
}

a.ar20-sharemodal-button svg {
    width: 40px;
    height: 40px;
    margin-left: 15px;
    fill: currentColor;
}

@media only screen and (max-width: 768px) {
    .ar20-sharemodal-close {
        padding-left: 20px;
    }
}

@media only screen and (max-width: 700px) {
    .ar20-sharemodal-content {
        padding: 24px 24px 15px;
    }
}

@media only screen and (max-width: 500px) {
    .ar20-sharemodal-close svg,
    .ar20-sharemodal-button svg {
        width: 30px;
        height: 30px;
    }

    .ar20-sharemodal-close {
        margin-bottom: 10px;
    }

    .ar20-sharemodal-close span {
        line-height: 30px;
    }

    .ar20-sharemodal-content {
        padding-bottom: 0;
        max-height: calc(100vh - 40px);
    }

    p.ar20-sharemodal-description {
        font-size: 18px;
        line-height: 26px;
    }

    .ar20-sharemodal-actions {
        display: block;
        padding-top: 0;
    }

    a.ar20-sharemodal-button {
        padding: 17px 0;
        border: 0;
    }

    .ar20-sharemodal-actions a.ar20-sharemodal-button:last-child {
        border-left: 0;
        padding-left: 0;
        padding-right: 20px;
        border-top: 1px solid #4a4a4a;
    }

    a.ar20-sharemodal-button span {
        font-size: 18px;
        line-height: 26px;
        width: calc(100% - 55px);
    }
}
