/* ---------- Gallery Styling ---------- */
.nexal-upload-container,
.nexal-upload-gallery-container {
    margin-top: 10px;
}

.nexal-gallery-grid,
.gallery-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-image-item {
    position: relative;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
}

.remove-gallery-image:hover {
    background-color: #e74c3c;
    color: white;
}

/* ---------- Image Upload Styling ---------- */
.nexal-upload-image-container,
.nexal-upload-container {
    margin-top: 10px;
}

.image-preview-container,
.nexal-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container img,
.nexal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nexal-file-name {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Frontend gallery styles */
.nexal-event-gallery {
    margin: 30px 0;
}

.medusa-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-link {
    display: block;
}