.preview-container {
    margin-bottom: 10px;
}
.preview-container img, .preview-container object {
    max-width: 200px;
    max-height: 200px;
    margin-right: 10px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.phototab .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #888;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.image-label {
    display: block;
    position: relative;
}

.image-checkbox {
    display: none;
}

.image-checkbox + img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 3px solid transparent;
}

.image-checkbox:checked + img {
    border-color: #007cba;
}

/* Product gallery styles */
.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.product-gallery .gallery-item {
    position: relative;
}

.product-gallery img {
    width: 150px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.product-gallery .delete-btn {
    position: absolute;
    top: 2px;
    /*right: 5px;*/
    background-color:#fa6374;
    color: white;
    border: none;
    /*border-radius: 50%;*/
    width: 25px;
    height: 28px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

/* Select Image button styles */
.actions {
    margin-top: 20px;
    text-align: center;
}

.actions button {
    padding: 10px 20px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.actions button:hover {
    background-color: #005f7c;
}

 /* Highlight styling for selected image */
 .selected-image {
    border: 3px solid #007bff;
    /* Highlight with a blue border */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}