button.modal-button {
    position: relative;
    display: block;
    width: 50px;
    height: 60px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 0.85;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
}

button.modal-button:hover,
button.modal-button:active,
button.modal-button:focus {
    transition: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.modal-icon {
    fill: #ffffff;
    color: #4f4f4f;
    width: 32px;
    height: 32px;
    overflow: hidden;
    pointer-events: none;
}

.modal-icon-shadow {
    stroke: #4f4f4f;
    stroke-width: 2;
    fill: none;
}
.media-modal-backdrop {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
}

.media-modal {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-inner {
    position: relative;
}

.modal-inner > * {
    max-width: 100vw;
    max-height: 100vh;
}

.media-buttons {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;

    display: flex;
    justify-content: center;
    align-items: center;
}

.media-buttons > a {
    display: flex;
    align-content: center;
}

.media-buttons a > img {
    width: 2.5rem;
}

.modal-top-bar {
    display: flex;
    flex-direction: row-reverse;
    position: absolute;
    top: 0;
    width: 100%;
    height: 63px;
    background-color: transparent;
    padding-right: 2em;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.modal-arrow {
    width: 64px;
    height: 64px;
}

.modal-arrow .modal-button {
    margin: 0 auto;
}

.modal-arrow .modal-icon {
    width: 100%;
    height: 100%;
}

.modal-arrow.right {
    right: 0;
}

.modal-arrow.left {
    left: 0;
}

@media (min-width: 992px) {
    .modal-arrow.right {
        right: 1.5em;
    }

    .modal-arrow.left {
        left: 1.5em;
    }
}

#media-modal {
    position: relative;
    z-index: 999999999999;
}