/* BEGIN OFFICE-LISTING CSS -------------------------------------> */

#mainContent
{
	float: none;
	width: 100%;
}


#officeList::after
{
	/* make div stretch to height of content */
	content: '';
	clear: both;
	display: block;
}

#officeList ul,
#officeList ul li
{
	list-style: none;
	margin: 0;
	padding: 0;
}

#officeList ul li
{
	position: relative;
	padding: 60px 60px 25px max(25px, 
             min(70px, 25px + (70 - 25) * ((100vw - 767px) / (1920 - 767))
	));
}

#officeList ul li::after 
{
	position: absolute;
	bottom: 0;
	left: 0;
	content: '';
	display: block;
	width: calc(100% - 30px);
	height: calc(100% - 30px);
	background: rgba(255, 255, 255, .95);
	z-index: 0;
}

#officeList ul li:is(:hover,:focus-within)::before
{
	position: absolute;
	top: -13px;
	right: -13px;
	content: '';
	display: block;
	width: 88px;
	height: 88px;

	background: url('../i/icon-chevron.svgz') no-repeat; /* data-uri */
	background-size: 100%;
	transform: rotate(-135deg);
	z-index: 10;
}

#officeList ul 
{
	display: grid;
	grid-gap: 93px;
}

#officeList .image 
{

	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#officeList img 
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

#officeList .title 
{
	position: relative;
	z-index: 5;
	--max-margin-bottom: 20;
	font-family: 'playfair_display';
	--max-font-size: 45;
}

#officeList .content 
{
	position: relative;
	z-index: 5;
}

#officeList .address,
#officeList .phone 
{
	padding-left: 28px;
	margin-bottom: 22px;
	box-sizing: border-box;
	background: url('../i/icon-map.svgz') no-repeat; /* data-uri */
	background-position: left 2px;
}

#officeList .phone 
{
	background: url('../i/icon-phone.svgz') no-repeat; /* data-uri */
	background-position: left 3px;
}


#officeList .title a 
{
	display: block;
	color: inherit;
}

@media (min-width: 600px)
{
	
	#officeList ul li
	{
		padding-top: 70px;
		padding-bottom: 35px;
	}

	#officeList ul 
	{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-gap:  max(50px, 
             min(101px, 50px + (101 - 50) * ((100vw - 767px) / (1920 - 767))
		));
	}
}

@media (min-width: 1280px)
{
	
	#officeList .content
	{
		opacity: 0;

	}

	#officeList .title 
	{

		top: calc(100% - 70px);
		color: #ffffff;
		transition: all 800ms ease;

	}

	#officeList .image::after 
	{
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		content: '';
		background: linear-gradient(to top, rgba(0, 0, 0, .8) 10%, rgba(0, 0, 0, 0) 60%);
	}

	#officeList ul li::after
	{
		transition: transform 800ms ease;
		transform-origin: left bottom;
		transform: scale(0);
		z-index: 1;
	}

	#officeList ul li:is(:hover, :focus-within)::after
	{
		transform: scale(1);
	}

	#officeList ul li:is(:hover, :focus-within) .title 
	{
		color: #000000;
		top: 0;
	}


	#officeList ul li:is(:hover, :focus-within) .content 
	{
		opacity: 1;
		transition: opacity 250ms ease 600ms;
	}

}

/* END OFFICE-LISTING CSS ---------------------------------------> */