body {
	--color-text: #000100;
	--color-bg: #e2d9c7;
	--color-link: #395bb5;
	--color-link-hover: #000100;
	--color-gallery-title: #ffffff;
	--color-gallery-number: #ffffff;
	--color-gallery-link: rgb(0, 0, 0);
	--color-gallery-link-bg: #ffffff;
	--color-gallery-link-hover: #fff;
	--color-gallery-link-bg-hover: #000000;

}

.frame {
	padding: 3rem 5vw;
	position: relative;
	z-index: 1000;
}



.content {
	display: flex;
	flex-direction: column;
	margin-top: 10vh;
	height: calc(100vh - 13rem);
	position: relative;
	justify-content: flex-start;
	will-change: transform;
}


.gallery {
	display: flex;
	padding-left: 100px;
	padding-right: 100px;
}



.gallery__item {
	margin: 0 0vw;
	display: grid;
	grid-template-areas: '... ...'
		'... gallery-image '
		'... ...';
	grid-template-columns: 0rem 50vmax;
	grid-template-rows: 8rem 25vmax 3rem;
}

.gallery__item:nth-child(even) {
	padding-top: 10vh;
}

.gallery__item-img {
	grid-area: gallery-image;
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
	transform-origin: 50% 100%;
	z-index: 50;

}

.gallery__item-imginner {
	background-size: cover;
	background-position: 50% 50%;
	height: 100%;
	width: calc(100% + 5vw);
	margin-left: -2vw;
	margin-bottom: 100px;
	height: 100%;
	will-change: transform;
}

/* .gallery__item-caption {
	grid-area: 1 / 1 / 4 / 4;
	display: grid;
	grid-template-areas: 'gallery-number gallery-title'
		'gallery-number ...'
		'gallery-link gallery-tags';
	grid-template-columns: 8rem auto;
	grid-template-rows: 8rem auto 3rem;

} */

/*.gallery__item-caption {
	grid-area: 1 / 1 / 4 / 4;
	display: grid;
	grid-template-areas: 'gallery-tags ...'
		'... gallery-title '
		'gallery-link ... ';
	grid-template-columns: 8rem auto;
	grid-template-rows: 8rem auto 3rem;

}*/

.gallery__item-caption {
	grid-area: 1 / 1 / 4 / 4;
	display: grid;
	grid-template-areas: 'gallery-tags ... ... ...'
		'... gallery-title ... ... '
		'gallery-link ... ... ... '
		'... ...  gallery-number gallery-number ';
	grid-template-columns: 100px 1fr 1fr 1fr;
	grid-template-rows: 8rem 1fr 1fr 1fr;

}

.gallery__item-number {
	grid-area: gallery-number;
	font-size: 6rem;
	justify-self: end;
	align-self: end;
	padding-right: 2rem;
	color: var(--color-gallery-number);
	color: white;
	opacity: 0;
	/* -webkit-text-stroke: 2px #ffffff;
	-webkit-text-fill-color: transparent; */

}

.gallery__item-title {
	grid-area: gallery-title;
	align-self: center;
	justify-self: start;
	color: var(--color-gallery-title);
	/* font-size: 60px;
	line-height: 70px; */
	font-size: 5.5vh;
	line-height: 6.5vh;
	font-weight: 500;
	z-index: 100;
}

/*.gallery__item-number,
.gallery__item-title,
.gallery__text {
	font-family: moret, serif;
	font-weight: 800;
	font-style: italic;
	align-self: center;
}*/

.gallery__item-link {
	grid-area: gallery-link;
	align-self: start;
	justify-self: end;
	margin-right: 2rem;
	font-size: 1.5rem;
	background: var(--color-gallery-link-bg);
	color: var(--color-gallery-link);
	text-decoration: underline;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 80;


}

.gallery__item-link:focus,
.gallery__item-link:hover {
	background: var(--color-gallery-link-bg-hover);
	color: var(--color-gallery-link-hover);
	text-decoration: none;
}

.gallery__item-tags {
	grid-area: gallery-tags;
	justify-self: start;
	align-self: end;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 1.5rem;
	display: grid;
	grid-auto-flow: column;
	grid-gap: 1rem;
	cursor: pointer;
	background-color: rgb(255, 255, 255);
	color: var(--color-text)
}

.gallery__text {
	font-size: 130px;
	line-height: 120px;
	font-weight: 500;
	margin: 25vh 30px 0 0vw;
	text-transform: lowercase;


}

.gallery__text-inner {
	display: block;
}

button {
	padding: 0;
	margin: 0;
	cursor: pointer;
	background: transparent;
	border: 0;
	appearance: none;
	outline: none;
	z-index: 1000;
}


.slider__button-close {
	width: 14.236vw;
	height: 14.236vw;
	position: absolute;
	top: 1vw;
	/*left: 83.68089vw;*/
	right: 0px;

}

.path {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: dash 1s cubic-bezier(.88, .01, .56, 1) forwards;
}

@keyframes dash {
	to {
		stroke-dashoffset: 0;
	}
}




/* --------- MEDIA QUERIES ----------------*/

@media (min-width:1024px) and (max-width:1920px) and (-webkit-min-device-pixel-ratio : 1.5)   {


	.gallery__item-title {
		margin: 50px;
		font-size: 35px;
		line-height: 40px;
		z-index: 200;

	}

	.gallery__item-number {
		grid-area: gallery-number;
		font-size: 4rem;
		justify-self: end;
		padding-right: 2rem;
		color: var(--color-gallery-number);
		/* -webkit-text-stroke: 1px #ffffff;
		-webkit-text-fill-color: transparent; */
	}

	.gallery__item-link {
		grid-area: gallery-link;
		align-self: start;
		justify-self: end;
		margin-right: 4rem;
		font-size: 1.2rem;
		background: var(--color-gallery-link-bg);
		color: var(--color-gallery-link);
		text-decoration: underline;
		width: 90px;
		height: 90px;
		border-radius: 50%;
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		z-index: 300;


	}

	.gallery__item-tags {
		grid-area: gallery-tags;
		justify-self: start;
		align-self: end;
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 1rem;
		display: grid;
		grid-auto-flow: column;
		grid-gap: 1rem;
		cursor: pointer;
		background-color: rgb(255, 255, 255);
		color: var(--color-text)
	}


	.gallery__text {
		font-size: 100px;
		line-height: 120px;
		font-weight: 500;
		margin: 25vh 100px 0 0vw;
		text-transform: lowercase;


	}
}


@media (min-width:1024px) and (max-width:1800px) {


	.gallery__item-title {
		margin: 50px;
		font-size: 35px;
		line-height: 40px;

	}

	.gallery__item-number {
		grid-area: gallery-number;
		font-size: 4rem;
		justify-self: end;
		padding-right: 2rem;
		color: var(--color-gallery-number);
		/* -webkit-text-stroke: 1px #ffffff;
		-webkit-text-fill-color: transparent; */
	}

	.gallery__item-link {
		grid-area: gallery-link;
		align-self: start;
		justify-self: end;
		margin-right: 4rem;
		font-size: 1.2rem;
		background: var(--color-gallery-link-bg);
		color: var(--color-gallery-link);
		text-decoration: underline;
		width: 90px;
		height: 90px;
		border-radius: 50%;
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;


	}

	.gallery__item-tags {
		grid-area: gallery-tags;
		justify-self: start;
		align-self: end;
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 1rem;
		display: grid;
		grid-auto-flow: column;
		grid-gap: 1rem;
		
		background-color: rgb(255, 255, 255);
		color: var(--color-text)
	}


	.gallery__text {
		font-size: 100px;
		line-height: 120px;
		font-weight: 500;
		margin: 25vh 100px 0 0vw;
		text-transform: lowercase;


	}
}



@media (min-width:768px) and (max-width:1024px)  {


	.content {
		height: auto;
		
		width: 100vw;
		margin-top: 10vh;
		will-change: transform;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}


	.gallery {

		width: 100%;
		display: flex;
		flex-direction: column;
		padding-right: 30px;
		padding-left: 30px;


	}



	.gallery__item {

		width: 100%;
		display: grid;
		grid-template-areas: '... ... ...'
			'... gallery-image ...'
			'... ...';
		grid-template-columns: 0px auto 0px;
		grid-template-rows: 10rem auto 3rem;
		padding-top: 10px;
		
	}

	.gallery__item:nth-child(even) {
		padding-bottom: 10px;
	}


	.gallery__item-caption {
		
		display: grid;
		grid-template-areas: 'gallery-title ... ...'
			'gallery-link ... gallery-number '
			'... ... gallery-tags';
		grid-template-columns: 80px 1fr;
		grid-template-rows: 1fr 1fr 4fr;

	}


	.gallery__item-img {
		grid-area: gallery-image;
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: relative;
		transform-origin: 50% 100%;
		z-index: 50;

	}

	.gallery__item-imginner {
		background-size: cover;
		background-position: 50% 50%;
		height: 100%;
		width: 100%;
		margin-left: 0;
		margin-bottom: 100px;
		height: 100%;
		will-change: transform;
	}

	.gallery__item-title {
		grid-area: gallery-title;
		align-self: center;
		justify-self: start;
		color: var(--color-gallery-title);
		font-size: 30px;
		line-height: 40px;
		z-index: 200;
		white-space: nowrap;


	}

	.gallery__item-number {
		grid-area: gallery-number;
		font-size: 4rem;	
		justify-self: end;
		padding-right: 2rem;
		color: var(--color-gallery-number);
		opacity: 0;
		/* -webkit-text-stroke: 1px #ffffff;
		-webkit-text-fill-color: transparent; */
	}

	.gallery__item-link {
		grid-area: gallery-link;
		align-self: center;
		justify-self: left;
		margin-right: 0rem;
		margin-left: 30px;
		font-size: 1.2rem;
		background: var(--color-gallery-link-bg);
		color: var(--color-gallery-link);
		text-decoration: underline;
		width: 90px;
		height: 90px;
		border-radius: 50%;
		position: relative;

		align-items: center;
		cursor: pointer;
		z-index: 200;


	}

	.gallery__item-tags {
		grid-area: gallery-tags;
		justify-self: end;
		align-self: end;
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 1rem;
		display: block;
		grid-auto-flow: column;
		grid-gap: 0rem;
		cursor: default;
		background-color: rgb(255, 255, 255);
		color: var(--color-text);
		z-index: 300;
	}






	.gallery__text {
		font-size: 130px;
		line-height: 120px;
		font-weight: 500;
		margin: 25vh 30px 0 0vw;
		text-transform: lowercase;
		display: none;


	}



}



@media (min-width:320px) and (max-width:768px)  {


	.content {
		height: auto;
		
		width: 100vw;
		margin-top: 10vh;
		will-change: transform;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}


	.gallery {

		width: 100%;
		display: flex;
		flex-direction: column;
		padding-right: 30px;
		padding-left: 30px;


	}



	.gallery__item {

		width: 100%;
		display: grid;
		grid-template-areas: '... ... ...'
			'... gallery-image ...'
			'... ...';
		grid-template-columns: 0px auto 0px;
		grid-template-rows: 10rem auto 3rem;
		padding-top: 10px;
	}

	.gallery__item:nth-child(even) {
		padding-top: 10px;
	}


	.gallery__item-caption {
		
		display: grid;
		grid-template-areas: 'gallery-title ... ...'
			'gallery-link ... gallery-number '
			'... ... gallery-tags';
		grid-template-columns: 80px 1fr;
		grid-template-rows: 1fr 1fr 1fr;

	}


	.gallery__item-img {
		grid-area: gallery-image;
		width: 100%;
		height: 100%;
		overflow: hidden;
		position: relative;
		transform-origin: 50% 100%;

	}

	.gallery__item-imginner {
		background-size: cover;
		background-position: 50% 50%;
		height: 100%;
		width: 100%;
		margin-left: 0;
		margin-bottom: 100px;
		height: 100%;
		will-change: transform;
	}

	.gallery__item-title {
		grid-area: gallery-title;
		align-self: center;
		justify-self: start;
		color: var(--color-gallery-title);
		font-size: 30px;
		line-height: 40px;
		z-index: 100;
		white-space: nowrap;


	}

	.gallery__item-number {
		grid-area: gallery-number;
		font-size: 4rem;	
		justify-self: end;
		padding-right: 2rem;
		color: var(--color-gallery-number);
		opacity: 0;
		/* -webkit-text-stroke: 1px #ffffff;
		-webkit-text-fill-color: transparent; */
	}

	.gallery__item-link {
		grid-area: gallery-link;
		align-self: center;
		justify-self: left;
		margin-right: 0rem;
		margin-left: 30px;
		font-size: 1.2rem;
		background: var(--color-gallery-link-bg);
		color: var(--color-gallery-link);
		text-decoration: underline;
		width: 90px;
		height: 90px;
		border-radius: 50%;
		position: relative;

		align-items: center;
		cursor: pointer;


	}

	.gallery__item-tags {
		grid-area: gallery-tags;
		justify-self: end;
		align-self: end;
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 10px;
		padding-bottom: 10px;
		font-size: 1rem;
		display: block;
		grid-auto-flow: column;
		grid-gap: 0rem;
		cursor: default;
		background-color: rgb(255, 255, 255);
		color: var(--color-text);
		z-index: 100;
	}






	.gallery__text {
		font-size: 130px;
		line-height: 120px;
		font-weight: 500;
		margin: 25vh 30px 0 0vw;
		text-transform: lowercase;
		display: none;


	}



}

