


#previewContainer,
#galleryContainer {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0px;
    gap: 10px;
    border-radius: 10px;
    background-color: #f1f1f1;
    cursor: default;
    padding: 10px;
    border: 2px dashed #ccc;
    margin: 10px 0px;
}


.thumbnail {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    user-select: none;
    border: 1px solid gray;
    border-radius: 10px;
    object-fit: cover;
}

.thumbnail img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.thumbnail.heic-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    overflow: hidden;
}

.heic-preview-label {
    font-size: 0.65rem;
    text-align: center;
    padding: 4px;
    word-break: break-all;
    color: #444;
    line-height: 1.2;
    max-height: 100%;
    overflow: hidden;
}

.pointer {
    cursor: pointer;
}

.remove-btn,
.download-btn {
    position: absolute;
    right: 5px;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    user-select: none;
}

.remove-btn {
    top: 5px;
    background: red;
}

.remove-btn::after {
    content: 'x';
}

.download-btn {
    bottom: 5px;
    background: blue;
}

.download-btn::after {
    content: '↓';
}

#fullScreenView {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#fullScreenView img {
    max-width: 90%;
    max-height: 90%;
}

/* .converter-privacy-notice — see tools-common.css (.tool-privacy-notice) */

.converter-desc {
    margin: 0 0 12px;
    color: #555;
}

.converter-hint {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.converter-quality {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.converter-quality input[type="range"] {
    flex: 1;
    max-width: 240px;
}