/* fixes scroll bar jump when switching to fancybox */
html,
body {
	padding: 0;
	margin: 0;
	/* overflow-y: scroll; */
}

body {
	text-decoration: none;
}

* { outline:none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', serif;
  }
  

.badge {
	background-size: contain;
	height: 40px;
	margin: 4px;
	display: inline-block;
	background-position: center top;
	background-repeat: no-repeat;
}

.ref {
	opacity: 0.6;
	filter: grayscale(1);
}

.ref:hover {
	opacity: 1;
	filter: grayscale(0);
}


.txt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 100px;
  margin-top: 100px;
  width: 80%;
  margin: auto;
}

.header-left h1 {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.4;
}

.header-right {
  max-width: 530px;
}

.header-right p {
  font-weight: 400;
  margin-bottom: 35px;
}

.header-right-button {
  padding: 12px 32px;
  font-size: 0.9rem;
  background: #72383d;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  margin-top: 15px;
}

.header-right-button:hover {
  background: #995b60;
}

.switch-button {

  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.4;
  color: #d1c7bd;
  background: inherit;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
}

.switch-button.active {
  color: #72383d;
}
/*
.switch-button:hover {
  color: #995b60;
}
*/


.proj {
    width: 100%;
    margin: auto;
    padding-top: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.proj-cell {
	flex: 0 0 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
	margin-bottom: 0px;
}


.proj-cell img {
    width: 100%;
    height: auto;
}

.cover_text {
	width: 100%;
	z-index: 5;
	bottom: 1%;
	text-align: center;
	position: fixed;
	margin: auto;
}

.anchorOffset {
	position: relative;
}

.text-content {
	width: 50%;
	text-align: left;
}

.logos-content {
	width: 100%;
	text-align: center;
	max-width: 1000px;
	margin: 130px auto 0 auto;
}


.award {
	width: 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	position: relative;
	top: 5px;
	min-height: 20px;
}

.container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	width: 85%;
	margin: auto;
}

.text {
	flex: 1 1 50%;
	padding-right: 20px;
	box-sizing: border-box;
	max-width: 570px;
}

.image {
	flex: 0 1 50%;
	text-align: right;
	box-sizing: border-box;
}

.image img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Desktop */
@media screen and (min-width: 1025px) {

	.header-left {
		margin-bottom: 65px;
	}

	.cover_title {
		max-width: 500px;
		margin: 10% 0 0 6%;
		position: absolute;
	}

	.mobile {
		display: none;
	}

	.ref {
		margin: 15px;
		width: 120px;
	}

	.anchorOffset {
		top: -200px;
	}
}

/* Mobile */
@media (max-device-width: 568px), (max-width: 1024px) {

	.logos-content {
		max-width: 400px;
		margin: 30px auto 0 auto;
	}

	.cover_title {
		position: absolute;
		z-index: 5;
		top: 10%;
		left: 7.5%;
		text-align: left;
		width: 77%;
	}

	.desktop {
		display: none;
	}

	.ref {
		margin: 5px;
		width: 90px;
	}

	.anchorOffset {
		top: -100px;
	}

	.text-content {
		width: 100%;
		margin-top: 0;
	}

	.container {
		flex-direction: column;
		text-align: center;
	}

	.text, .image {
		flex: 1 1 100%;
		padding: 0;
	}

	.image {
		margin-top: 10px;
	}


	.proj {
        flex-direction: column;
		width: 80%;
		margin: auto;
    }

    .proj .proj-cell {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .proj .proj-cell:nth-child(4n-3),
    .proj .proj-cell:nth-child(4n-2),
    .proj .proj-cell:nth-child(4n-1),
    .proj .proj-cell:nth-child(4n) {
        flex: 0 0 100%;
    }
}