.modal-container{
	/* display: none; */
	visibility: hidden;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	transition: visibility 0.4s;
}

.modal-container.target{
	visibility: visible;
}

.overlay{
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	background: #333333d3;
	transition: opacity 0.4s 0.2s ease-out;
}
.modal-container.target .overlay{
	opacity: 1;
	transition: opacity 0.4s  ease-out;
}


.modal{
	opacity: 0;
	width: 95%;
	max-width: 630px;
	min-width: 300px;
	height: 670px;
	padding: 30px;
	background: #FFF;
	border-radius: 5px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, calc(-50% - 50px));
	transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.modal-container.target .modal{
	opacity: 1;
	transform: translate(-50%, -50%);
	transition: opacity 0.4s 0.2s ease-out, transform 0.4s 0.2s ease-out;
}

.close-modal{
	padding: 8px 10px; 
	border: none;
	background: none;
	font-size: 20px;
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}

.modal h1{
	font-family: 'Work Sans';
	font-size: 26px;
	color: #000000;
	text-align: center;
	margin-top: 20px;
	font-weight: 500;
}

.gallery-title{
	margin-bottom: 46px;
}

.add-title{
	margin-bottom: 20px;
}

.pictures-gallery{
	display: block;
}

.add-picture-gallery{
	display: none;
	flex-direction: column;
	gap: 30px;
	padding: 0px 80px;
	height: 100%;
}

.modal-gallery, .addPicture{
	height: 70%;
	width: 75%;
	border-bottom: 1px solid #B3B3B3;
	margin: auto;
}

.modal-gallery-work{
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 2fr 2fr 2fr 1fr;
	grid-row-gap: 10px;
	width: 100%;
	height: 100%;	
}

.modal-gallery figure{
	margin: auto;
	width: 78.12px;
	height: 120px;
}

.workgallery-container{
	position: relative;
}



.trash-icon{
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	color: white;
	background: black;
	font-size: 9px;
	padding: 4px;
	border-radius: 2px;
	cursor: pointer;
}

.add-title{
	margin-bottom: 0;
}

.addPicture-btn{
	display: block;
	width: 40%;
	height: 36px;
	margin: 24px auto;
	background-color: #1D6154;
	border-radius: 60px;
	border: none;
	color: white;
	font-family: 'Syne';
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	line-height: 17px;
	cursor: pointer;
}


.validate-btn{
	margin: 32px 0 0 118px;
	background: #A7A7A7;
	border-radius: 60px;
	border: none;
	width: 237px;
	height: 36px;
	color: white;
	cursor: pointer;
}
.validate-btn:hover  {
	background: #1D6154;
	transition: 0.4s ease-out;
}

.return-arrow{
	position: absolute;
	left: 30px;
	font-size: 21px;
	cursor: pointer;
}

.addPicture{
	display: flex;
	flex-direction: column;
	gap: 20px;
}



.addImage-container{
	background-color: #E8F1F7;
	height: 169px;
	width: 100%;
	text-align: center;	
	padding: 28px 0px;
	margin-bottom: 30px;
	position: relative;
}

.img-container{

	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.preview-img{
	position: absolute;	
	top: 0;
	display: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: auto;
}

.image-icon{
	font-size: 90px;
	color: #B9C5CC;
	margin-bottom: 21px;
}

.btn-addImage{
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
	margin: 6px;
}

.label-imageFile{
	font: 14px 'Work Sans';
	font-weight: 500;
	color: #306685;
	background: #CBD6DC;
	margin: 0px auto;
	width: 40%;
	padding: 8px 0;
	border-radius: 50px;
	cursor: pointer;
}

.file-type{
	font-size: 10px;
}

.input-container{
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.input-container:nth-child(3){
	border-bottom: 1px solid #B3B3B3;
	padding-bottom: 45px;
	margin-bottom: 0;
}


#add-title, #add-categories{
	height: 51px;
	border: none;
	box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
}

.error-add{
	text-align: center;
}

.delete-msg {
	position: relative;
	top: -25px;
	color: green;
	text-align: center;

}

.delete-gallery{
	font-family: 'Syne';
	font-weight: 400;
	font-size: 14px;
	line-height: 17px;
	color: red;
	text-align: center;
	cursor: pointer;
}


.modal-image{
	width: 80px;
}