#expand-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#expanded-media-container {
    position: fixed;
    z-index: 997;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);

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

#expanded-media:hover ~ .expanded-media-hover {
    opacity: 1;
    transition: 0.2s;
}

#expanded-media {
    opacity: 0;
    z-index: 998;
}

.expanded-media-hover {
    position: absolute;
    left: 0;
    opacity: 0;
    transition: 0.2s;
    z-index: 999;
    pointer-events: none;
}

.expanded-media {
    max-height: 80vh;
    max-width: 80vw;
}

.bg-grey-out {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 996;
}

.grey-out-show {
    opacity: 0.7;
    pointer-events: unset;
}

.show-transition {
    transition: opacity 0.3s;
}

#expanded-media-loading {
    position: absolute;
    z-index: 997;
}
#expanded-media-loading img {
    height: 30px;

    font-size: 30px;
    color: white;
}

#expanded-media-close {
    position: absolute;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    right: -50px;
    top: -60px;
    padding: 20px;

    opacity: 0;

    background-color: unset;
    border: none;

    z-index: 999;
}

#expanded-media-close:hover {
    cursor: pointer;
    color: #ec0000;
}

#expand-container.description .expanded-media {
    max-width: 50vw;
    max-height: 75vh;
    /*border-top-left-radius: 10px;*/
    /*border-bottom-left-radius: 10px;*/
}

#expand-container.description #expanded-media-container {
    align-items: unset;
    border-radius: 15px;
    /*border: 4px solid #f381e1;*/
    overflow: hidden;
    max-height: 75vh;
}

#expand-container.description #expanded-media-close {
    top: -10px;
    right: 0;
}

.description-container {
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    padding-left: 50px;
    width: 30vw;
    margin-right: 50px;
}

.description-container .description-text p {
    white-space: pre-wrap;
    line-height: inherit;
    margin: 0;
    overflow-wrap: break-word;
}

.description-container .title {
    margin-top: 35px;
    font-size: 30px;
    color: #f381e1;
}

.background-blur {
    background-color: rgba(0,0,0,0.3);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(10px);
}

.media-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bgimg {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    /*background-color: var(--primary);*/
    /*background-image: url("https://d2cu19dycsqkc9.cloudfront.net/62394262-c5a0-4b0e-8272-e2e741b3f1ad.JPEG");*/
    filter: blur(20px) brightness(0.8);
    z-index: -1;
}

.description-text {
    overflow-y: scroll;
    height: 60%;
    max-height: 50vh;
    margin: 20px 0;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .playbutton {
        width: 50px;
        height: 50px;
    }

    .triangle {
        border-width: 11.5px 0 11.5px 21.3px;
    }

    .expanded-media {
        max-width: 90vw;
        max-height: 80vw;
    }

    #expanded-media-close {
        font-size: 1rem;
        right: -34px;
        top: -38px;
    }

}


@media (max-width: 1000px) {
    #expand-container.description #expanded-media-container {
        overflow: unset;
        overflow-x: hidden;
        overflow-y: auto;

        flex-direction: column;
        justify-content: unset;
        align-items: center;

        width: 90vw;
        max-height: 90vh;
        height: unset;

        border: 4px solid #552a4e;
    }

    #expand-container.description .expanded-media {
        max-width: 90vw;
        max-height: 80vh;
    }

    .description-container {
        width: 90%;
        padding: 0;
        margin: 0;
    }

    .shopify-container-expanded {
        bottom: unset;
        position: unset;
        padding-bottom: 40px;
    }

    .shopify-button-expanded-container {
        position: relative;
    }

    .shopify-button-placeholder.expanded {
        top: 20px;
    }

    .media-container {
        flex-direction: column;
        align-items: center;
    }

    .description-text {
        overflow-y: unset;
        height: unset;
        max-height: unset;
    }

    .image-container {
        width: 90vw;
    }

    .expanded-media-hover {
        left: unset;
    }

    .bgimg {
        width: 100%;
        height: unset;
        top: unset;
        left: 0;
    }
}