.touchable-container {
    display: flex;
    position: absolute;
    z-index: 901;
    border: var(--select-border-size) rgba(0, 0, 0, 0) solid;
    /* rotateZ(360deg); doesn't work */
    transform: translate(-50%, -50%) translateZ(0);
}

.touchable-container img {
    position: relative;
    /* must defined here since image swap must maintain aspect ratio */
    object-fit: contain;
    width: 100%;
    left: 0px;
    pointer-events: none;
    flex-shrink: 0;
}

.touchable-container video {
    position: relative;
    width: 100%;
    left: 0px;
}

.custom-image-dialogbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    color: white;
    align-items: center;
    z-index: var(--zindex-dialogbox);
}

.custom-image-grid {
    width: 90%;
    height: 90%;
    background-color: black;
    border: 2px solid white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
}

.my-photie-dialogbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--zindex-dialogbox);
}

.my-photie-grid {
    width: 90%;
    height: 90%;
    max-height: 1200px;
    background-color: black;
    border: 2px solid white;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
}

.my-photie-thumbnail {
    background-color: var(--contents-bg-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    border: 2px solid #333;
    align-items: center;
    transition: border-color 0.3s ease-in-out;
    position: relative;
}

.my-photie-thumbnail:hover,
.my-photie-thumbnail:focus {
    border-color: #fff;
}

.my-photie-thumbnail-div {
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.my-photie-thumbnail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.my-photie-icon {
    filter: invert(1);
    width: 40%;
    height: 40%;
    margin: 5px 5px;
}

.my-photie-icon:hover {
    width: 45%;
    height: 45%;
}

.custom-image-color-button {
    position: absolute;
    background-color: var(--editor-color);
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    color: white;
    opacity: 1.0;
}

.custom-image-color-button:hover {
    opacity: 0.5;
}

.text-property-edit {
    margin-left: 10px;
    width: 100%;
    margin-bottom: 10px;
    font-size: 150%;
    padding: 2px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    min-height: 35px;
    min-width: 200px;
    position: relative;
    outline: 0px solid transparent;
}

.text-property-edit:empty::before {
    content: attr(data-placeholder);
    color: gray;
    position: absolute;
    pointer-events: none;
}

.gltr-iframe-dialog {
    background: var(--contents-bg-color);
    width: 700px;
}

.custom-image-preview {
    background-color: var(--contents-bg-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    border: 2px solid #333;
    align-items: center;
    transition: border-color 0.3s ease-in-out;
    position: relative;
}

.custom-image-preview:hover,
.custom-image-preview:focus {
    border-color: #fff;
}

.custom-image-preview-div {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.custom-image-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: auto;
    width: auto;
}

.vote_label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    font-family: var(--glitz-default-app-font);
    transform: translateX(-50%);
    font-size: 200%;
    font-weight: bold;
    color: var(--editor-select-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}