/**********************************************************************/
/******************************* Text ********************************/
/**********************************************************************/

#works
{
	padding-top: max(5vw, 5rem);
	padding-bottom: max(10vw, 10rem);
}

#works div.works_wrapper
{
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.title_category
{
	position:sticky;
	top: 5rem;
}

.title_category h1,
.title_category h2
{
	font-size: clamp(1.1rem, 5vw, 1.75rem);
}

.title_category h1 a,
.title_category h2 a
{
	border-bottom: none;
	color:rgb(168, 27, 75);
}

#caterories
{
	margin-top: 1rem;
	margin-bottom: 1rem;
}

#caterories > div
{
	display:flex;
	flex-direction: column;
}

#caterories a.cat
{
	display: flex;
	flex-wrap: nowrap;
	white-space: nowrap;
	align-items: center;
	font-family: serif, "A1 Mincho", 'YuMin_36pKn-Medium';
	font-weight: 400;
	margin-bottom: .5em;
	font-size: .9rem;
	color:rgb(168, 27, 75);
}

#caterories a.cat .ch
{
	flex-grow:0;
	flex-shrink:0;
	width: .75rem;
	height: .75rem;
	border: 1px solid rgb(168, 27, 75);
	margin-right: .5em;
}

#caterories a.cat._n .ch:before
{
	content:"";
	display:block;
	position: absolute;
	border-color: rgb(168, 27, 75);
	border-style: solid;
	width: .2em;
	height: .3em;
	border-width: 0px 1px 1px 0;
	transform: rotate(45deg) translateX(.15em) translateY(-.1em);
}

#works .cont
{
	padding-top: 1.5em;
	width:calc(100% - 10rem);
	display: flex;
	flex-wrap: wrap;
}

#works .cont.list
{
	margin: -1rem;
}

#works .tile
{
	width: calc(50% - 2rem);
	margin: 1rem;
}

#works .textWrapper,
#works .textlink > div
{
	display: flex;
	justify-content:flex-start;
	align-items: flex-start;
}

#works .textlink
{
	color: rgb(0, 62, 52);
	padding: 1rem 2rem 0 0;
	background-color: rgb(230, 230, 230);
	max-width: calc(100% - min(10rem, 10vw));
	margin-top: -2rem;
}

body:not(.touch) #works .textlink:hover
{
	color:rgb(150, 150, 150);
}


#works .textWrapper h4
{
	font-size: clamp(.8rem, 2vh, 1rem);
}

#works a._img
{
	display: block;
	width: 100%;
	aspect-ratio:3 / 2;
	height: auto;
	overflow: hidden;
}
#works a._img img
{
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit:cover;
	object-position: 50% 50%;
	
	-webkit-transition: all .5s ease;
	-moz-transition: all .5s ease;
	-ms-transition: all .5s ease;
	-o-transition: all .5s ease;
	transition: all .5s ease;
}

body:not(.touch) #works a._img:hover img
{
	transform: scale(1.1);
}

#works .view
{
	position: absolute;
	bottom: -.5rem;
	right: 0rem;
	display: flex;
	align-items:center;
	justify-content: center;
	line-height: 1;
	color: rgb(255, 255, 255);
	background-color: rgb(0, 62, 52);
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
}
#works .view:before
{
	content:"View";
}

/*//////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA SCREEN ////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////*/

@media screen and (max-width: 650px)
{
	#works > div
	{
		flex-direction: column;
	}
	#works .cont
	{
		width: calc(100% + 2rem);
	}
	
	.title_category
	{
		position: static;
		width: 100%;
		border-bottom: 2px solid rgb(255, 255, 255);
		padding-bottom: 1rem;
	}
	
	#caterories
	{
		overflow-x: auto;
		overflow-y: hidden;
		width: calc(100% + 1rem);
		margin-left: -.5rem;
		margin-bottom: 0;
	}
	
	#caterories > div
	{
		flex-direction: row;
	}
	#caterories a.cat
	{
		margin: .5rem;
	}
}

@media screen and (max-width: 800px)
{
	#works .tile
	{
		width: calc(100% - 1rem);
	}
}