/* Modeless EXIF windows; no jQuery UI stylesheet required. */
.exif-dialog {
    position: fixed;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 350px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    color: #222;
    border: 1px solid #999;
    border-radius: 5px;
    box-shadow: 0 5px 24px rgb(0 0 0 / 25%);
    font: inherit;
}

.exif-dialog__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #eee;
    border-bottom: 1px solid #bbb;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.exif-dialog__title { font-weight: bold; }
.exif-dialog__cross {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.exif-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px;
    overscroll-behavior: contain;
}

.exif-dialog__body table { width: 100%; }
.exif-dialog__body td { overflow-wrap: anywhere; }
.exif-dialog__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    padding: 8px 30px;
    border-top: 1px solid #ddd;
}
.exif-dialog__close { padding: 5px 14px; cursor: pointer; }
.exif-dialog__resize {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27px;
    height: 27px;
    border: 0;
    background: transparent;
    cursor: nwse-resize;
    touch-action: none;
}
.exif-dialog__resize::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 12px;
    height: 12px;
    background: repeating-linear-gradient(135deg, transparent 0 3px, #888 3px 4px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.exif-dialog button:focus-visible { outline: 2px solid #2672b5; outline-offset: 2px; }
