body.modal-open {
    overflow: hidden;
}

/***FILES***/
.projects-section {
	display: flex;
	flex-wrap: wrap;

	margin: 5rem;
}

.project-container {
	position: relative;

	width: 100%;

	margin-bottom: 2rem;

	cursor: pointer;
}

.project:after {
	content: '';
	display: inline-block;
	position: absolute;

	background-color: #d3ab8e;

	left: 0px;
	right: 225px;
	top: -20px;

	height: 50px;
	border-radius: 4px 4px 0 0;

	z-index: -3;
	clip-path: polygon(0 0, 87% 0, 100% 100%, 0% 100%);
}

.project:before {
	content: '';
	display: inline-block;
	position: absolute;

	background: rgb(222,196,177);
	background: linear-gradient(0deg, rgba(222,196,177,1) 0%, rgba(212,179,156,1) 100%);

	left: 100px;
	right: 0px;
	top: -10px;

	height: 30px;

	border-radius: 4px 4px 0 0;
	z-index: -1;
	clip-path: polygon(2% 0, 100% 0, 100% 100%, 0% 100%);
}

.project {
	border-radius: 0 0 4px 4px;
	width: 100%;
	margin: 1rem auto;
	color: #333;
	background-color: #dec4b1;
	min-height: 200px;
}

.project-img {
	position: absolute;

	height: 100px;

	top: 20px;
	left: 5px;

	z-index: -1;
}

.project-container:hover .project-img {
	transition-duration: .5s;

	top: 0px;
}

.project-title {
	display: flex;
	flex-wrap: wrap;
	position: absolute;

	color: #333;
	text-align: center;
	font-family: "Kalam", cursive;
	font-size: 1rem;
	line-height: 1;

	max-width: 40px;

	top: -30px;
	left: 10px;
	z-index: -2;
}

.project-desc {
	font-family: "Kalam", cursive;
	color: #333;

	position: absolute;

	top: 20px;

	padding: 0 1rem;

	list-style-type: none;
}

/***PROJECT MODAL***/
.project-modal {
    display: none; /*flex when visible*/
    position: absolute;

	background-color: rgba(0, 0, 0, .7);

	top: 0;
    left: 0;

	width: 100vw;
    height: 100vh;

	z-index: 9;
}

/**CLIPBOARD**/
.modal-inner {
	display: flex;
    position: fixed;

	background: #d2a77e;

	top: 50%;
    left: 50%;
	transform: translate(-50%, -45%);

	width: 85vw;
	height: 85vh;

	border-radius: 4px;
}

/*X OUT*/
.x-out-btn {
    position: absolute;

	top: 1rem;
    right: 1rem;
}

.x-out-btn:hover {
    cursor: pointer;
    opacity: .5;
}

/**CLIP**/
.clip {
    position: absolute;

	top: -10vw;
	left: 10%;

	width: 80%;
}

.circle {
    width: 3rem;
    height: 3rem;

    border: 15px solid #dcd7d3;
	border-radius: 50px 50px 40px 40px;
    margin: 0 auto -14px;
}

.rectangle {
    background-color: #dcd7d3;

	width: 100%;
    height: 8vh;

	border-radius: 4px;
    margin: auto;
}

/**PAPER**/
.modal-content {
	display: flex;

	background-color: #eee;

	max-width: 86%;

	margin: 2rem 7%;
}

.project-modal-title {
    box-sizing: border-box;
    position: absolute;

	width: 86%;

    padding: 1rem 0 1rem 5rem;
	border-bottom: 2px solid #c68080;
    margin-top: 0;
    margin-bottom: 1rem;
}

.paper-inner {
	padding: 4.5rem 0 0 0;
    padding-bottom: 1rem;
	border-left: 2px solid #c68080;
    margin: 0 0 0 3em;
}

.paper-lines {
    background-image: linear-gradient(#b5c8cc 1px, transparent 1px);
    background-size: 10px 1.5rem;

	height: 65vh;

	margin-top: 1rem;

	overflow: auto;
}

.project-modal-img {
    display: block;

	max-width: 90%;
    max-height: 300px;

	margin: 1rem auto;
}

.project-modal-desc,
.project-modal-instructions {
    line-height: 1.5rem;

	padding-left: 1rem;
	margin: 0;
}

/***MOBILITY***/
@media screen and (min-width: 768px){
    /***FILE***/
	.project-container {
		width: 45%;

		margin: auto auto 2rem;
	}

    .project:after {
        right: 50%;
    }

	/***MODAL***/
	.clip {
		top: -6vw;
	}

	.modal-inner {
		width: 80vw;
	}
}

@media screen and (min-width: 1000px){
	/***MODAL***/
	.clip {
		top: -5vw;
	}

	.modal-inner {
		width: 60vw;
	}
}

@media screen and (min-width: 1200px){
    /***FILE***/
	.project-container {
		width: 30%;

		margin: auto auto 2rem;
	}

	/***MODAL***/
	.clip {
		top: -3.5vw;
	}

	.modal-inner {
		width: 45vw;
	}

	.modal-content {
		width: 86%;
	}

	.paper-inner {
		width: 100%;
	}
}

@media screen and (min-width: 1700px){
	/***CONTENT***/
	.project-section {
		max-width: 1200px;

		margin: 5rem auto 0;
	}
}