/* assets/css/image-gallery.css */

.gallery-container {
    margin-top: 20px;
}

.gallery-main-image {
    width: 100%;
    height: 450px; /* Fixed height for the main image container */
    background-color: #1a1a1a;
    border: 1px solid #555;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole image is visible without distortion */
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-thumbnails img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border: 2px solid #555;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.2s;
}

.gallery-thumbnails img:hover {
    border-color: #888;
    transform: scale(1.05);
}

.gallery-thumbnails img.active-thumb {
    border-color: var(--primary-color, #5a95ff);
    transform: scale(1.05);
}

.thumbnail-wrapper {
    position: relative;
}

.delete-thumb-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color, #e74c3c);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #fff;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: scale(0.8);
}

.thumbnail-wrapper:hover .delete-thumb-btn {
    opacity: 1;
    transform: scale(1);
}