/* /static/css/image_expansion.css */


/* image_expansion css */
.fully-exapandable{
	cursor: pointer;
}


/* The overlay background (unchanged) */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 3rem 0;
    cursor: pointer;
}

/* The expanded image (unchanged) */
.image-overlay .expanded-image {
    display: block;
    width: 95%;
    max-width: 1600px;
    max-height: none;
    margin: 0 auto;
    cursor: default;
}

/* --- MODIFIED SECTION START --- */

/* The close button */
.image-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 30px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;

    /* MODIFIED: Set the initial background to a solid blue */
    background-color: #0056b3; /* A professional, solid blue */

    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* MODIFIED: Updated hover state for the new background */
.image-overlay .close-btn:hover,
.image-overlay .close-btn:focus {
    color: #fff;
    /* MODIFIED: Changed the hover background to a solid red */
    background-color: #c82333; /* A solid, clear red for hover */
    text-decoration: none;
}
/* --- MODIFIED SECTION END --- */