@import "~theme/vars";

:host {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    background: $body-bg;
    box-shadow: 0 0 2px black, 0 0 50px #6ef2ff05, 0 0 150px #6854ff14;
}

iframe {
    flex: auto;
    display: block;
    overflow: hidden;
}

img, .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    transition: background-color 0.25s ease-out;

    &:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    strong, small {
        background: rgba(0, 0, 0, .5);
        border-radius: 5px;
        padding: 5px 10px;
    }
}
