@import '/css/modal.css';

.ourwork-wrapper {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	padding: 50px 0;
	font-family: var(--font-en-1-medium);
}

.ourwork-preloader {
	position: relative;
	width: 100%;
	height: 80vh;
	background-color: #00000011;
	background-image: url(/img/svg/preloader-our-works.svg);
	background-size: 8em;
	background-repeat: no-repeat;
	background-position: center;
	transition: opacity 0.5s;
	display: none;
}

.ourwork-preloader span {
	display: block;
	position: absolute;
	left: 50%;
	top: 10%;
	line-height: 1.3em;
	transform: translateX(-50%);
	font-size: 2em;
	color: var(--main-color);
	text-align: center;
	width: 100%;
	max-width: 600px;
}

.ourwork-wrapper section {
	margin-bottom: 100px;
}

.ourwork-wrapper h1 {
	position: relative;
	font-size: 2.5em;
	color: var(--main-color);
	margin-bottom: 40px;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.3em;
}

.ourwork-wrapper__separator {
	width: 100%;
	height: 120px;
	background-image: url(/img/svg/slanted-line.svg);
	background-repeat: no-repeat;
	background-size: cover;
	margin-bottom: 20px;
	transition: height 0.5s;
}

.ourwork-wrapper__separator:not(:nth-of-type(1)) {
	height: 50px;
	margin-bottom: 50px;
}

.ourwork-wrapper .heading {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-bottom: 50px;
	transition: margin 0.5s;
	position: relative;
}

.ourwork-wrapper .heading h2 {
	margin: 0 0 50px 0;
	font-size: 30px;
	transition: margin 0.5s;
	text-align: center;
	line-height: 1.2em;
	max-width: 1200px;
}

.ourwork-wrapper .heading-image {
	position: absolute;
	width: 150px;
	height: 150px;
	left: 250px;
	top: 90px;
	opacity: 0;
	filter: blur(16px);
	transition: filter 0.5s 0.5s, opacity 0.5s 0.5s;
	background-image: url(/img/svg/logo_minify.svg);
}

.ourwork-wrapper .heading p {
	padding-right: 50px;
	text-align: right;
	color: #00000000;
	text-shadow: 0px 0px 2px #00000080;
	max-width: 560px;
	line-height: 1.2em;
}

.collage-section {
	margin: 0 auto;
	width: 1000px;
	height: 600px;
}

.collage-section:hover .collage .collage-item {
	transform: scale(1.2);
}

.collage-section:hover .collage .collage-item:nth-of-type(1) {
	transform: translate(-50px, -50px) scale(1.2);
}

.collage-section:hover .collage .collage-item:nth-of-type(2) {
	transform: translate(-20px, -80px) scale(1.2);
	z-index: 2;
}

.collage-section:hover .collage .collage-item:nth-of-type(3) {
	transform: translate(-80px, 0) scale(1.2);
}

.collage-section:hover .collage .collage-item:nth-of-type(4) {
	transform: translate(-30px, 50px) scale(1.2);
}

.collage-section:hover .collage .collage-item:nth-of-type(7) {
	transform: translate(50px, 50px) scale(1.2);
}

.collage-section:hover .collage .collage-item:nth-of-type(8) {
	transform: translate(-30px, -30px) scale(1.2);
}

.collage {
	position: relative;
	width: 100%;
	height: 100%;
}

.collage .collage-item {
	position: absolute;
	display: block;
	z-index: 1;
	transition: transform 1s, box-shadow 0.3s, border-color 0.3s;
	box-sizing: border-box;
	cursor: zoom-in;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border: 1px solid #00000046;
}

.collage .collage-item > span {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

.collage .collage-item > span::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	border: 1px solid #fff;
	opacity: 0;
	transition: opacity 0.3s;
}

.collage .collage-item:hover {
	box-shadow: 0 0 5px 2px #3838384a;
}

.collage .collage-item:hover > span::after {
	opacity: 1;
}

.collage .collage-item:nth-of-type(1) {
	width: 100px;
	height: 200px;
	background-color: #8a8a8a;
}

.collage .collage-item:nth-of-type(2) {
	width: 100px;
	height: 200px;
	left: 100px;
	background-color: #c28282;
}

.collage .collage-item:nth-of-type(3) {
	width: 200px;
	height: 200px;
	top: 200px;
	background-color: #9e8484;
}

.collage .collage-item:nth-of-type(4) {
	width: 400px;
	height: 200px;
	bottom: 0;
	background-color: #dbc9c9;
}

.collage .collage-item:nth-of-type(5) {
	width: 400px;
	height: 400px;
	left: 200px;
	background-color: #5f5b5b;
}

.collage .collage-item:nth-of-type(6) {
	width: 200px;
	height: 200px;
	bottom: 0;
	left: 400px;
	background-color: #8a8a8a;
	z-index: 2;
}
.collage .collage-item:nth-of-type(7) {
	width: 400px;
	height: 600px;
	right: 0;
	background-color: #a88787;
}

.collage .collage-item:nth-of-type(8) {
	width: 200px;
	height: 200px;
	right: 300px;
	top: 100px;
	background-color: #66bcc2;
}

.collage .collage-item:nth-of-type(9) {
	width: 200px;
	height: 200px;
	right: 69px;
	top: 341px;
	background-color: #5b338f;
}

.ourwork-mobile {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
}

.ourwork-mobile > section {
	width: 100%;
	margin-bottom: 15px;
}

.ourwork-mobile__section {
	width: 100%;
}

.ourwork-mobile__section h2 {
	font-size: 1.2em;
	margin-bottom: 15px;
	background-color: #d92e14;
	width: 100%;
	text-align: center;
	color: white;
	padding: 10px;
	box-sizing: border-box;
	line-height: 1.2em;
}

.ourwork-mobile__section p {
	color: #00000000;
	text-shadow: 0px 0px 2px #00000080;
	text-align: center;
	padding: 10px;
	line-height: 1.2em;
}

.ourwork-mobile__slider {
	margin: 0 auto;
}

/* swiper */
.swiper {
	margin: 50px auto;
	width: 90vw;
	height: auto;
}

.swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	background-color: #fff;
}

.swiper-slide__img {
	display: flex;
	align-items: center;
	width: 100%;
	height: calc(0.5px + 760 * (100vw / 1200));
	background-color: white;
}

.swiper-slide__img > img {
	width: 100%;
	height: fit-content;
}

@media screen and (max-width: 1200px) {
	.ourwork-wrapper {
		padding: 15px 0 20px;
	}

	.ourwork-wrapper h1 {
		font-size: 2em;
		padding: 0 10px;
		margin-bottom: 10px;
	}
}
