/* Modal */

.modal-window {
	--modal-close-button-width: 40px;
	--modal-close-button-height: 40px;
	--modal-close-button-top: -20px;
	--modal-close-button-right: -20px;
	--modal-close-button-radius: 50%;
	--modal-close-button-border: 0 none;
	--modal-close-button-bg-colour: #999;
	--modal-close-button-bg-colour-hover: #555;
	--modal-close-icon-width: 20px;
	--modal-close-icon-height: 20px;
	--modal-close-icon-colour: #fff;
	--modal-close-icon-colour-hover: #fff;
	--modal-width: 90vw;
	--modal-max-width: 1000px;
	--modal-max-height: 80vh;
	--modal-bg-colour: #fff;
	--modal-padding: 20px;
	--modal-radius: 5px;
	--modal-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);

	position: relative;
}
/* Modal Overlay */
.modal-fader {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 99998; /* Adjust as needed */
}

/* Modal Window */
.modal-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--modal-bg-colour); /* Background color of the modal */
    box-shadow: var(--modal-shadow);
    z-index: 99999; /* Ensure the modal appears above the overlay */
    width: var(--modal-width); /* Adjust as needed */
    max-width: var(--modal-max-width); /* Adjust as needed */
    background-color: var(--modal-bg-colour);
    padding: var(--modal-padding);
    border-radius: var(--modal-radius);
}
.modal-content {
	
}

/* Active state for both modal overlay and modal window */
.modal-fader.active, .modal-window.active {
    display: block;
}
.modal-hide {
	position: absolute;
	top: var(--modal-close-button-top);
    right: var(--modal-close-button-right);
    width: var(--modal-close-button-width);
    height: var(--modal-close-button-height);
    border-radius: 50%;
    display: grid;
    place-content: center;
    background-color: var(--modal-close-button-bg-colour);
    border-radius: var(--modal-close-button-radius);
    border: var(--modal-close-button-border);
   
}
.modal-hide .close-icon {
    display: block;
    width: var(--modal-close-icon-width);
    height: var(--modal-close-icon-height);
    -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/%3E%3C/svg%3E') center/cover no-repeat;
    mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/%3E%3C/svg%3E') center/cover no-repeat;
	background-color: var(--modal-close-icon-colour);
    
}
.modal-hide:hover {
    background-color: var(--modal-close-button-bg-colour-hover);
}
.modal-hide:hover .close-icon {
    background-color: var(--modal-close-icon-colour-hover);
}

