.timp-gallery-header {
	text-align: center;
}

.timp-gallery-container {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(4, 1fr);
	grid-row-gap: 25px;
	margin: 20px auto 20px auto;
}

.timp-gallery-entry {
	display: flex;
	text-align: center;
}

.timp-gallery-entry img {
	position: relative;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width:100%;
	aspect-ratio: 1 / 1;
	height:auto;
	max-height:100%;
	
	transition: transform 250ms;
	transform-origin: 50% 50%;
}

.timp-gallery-entry img:hover {
	transform: translate(-50%, -50%) scale(1.05);
}


#timp-gallery-presenter {
	position: fixed;
	z-index: 1000;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: rgb(1,1,1); 
	background-color: rgba(1,1,1, 0.4); 
}

#timp-gallery-presentation-image {
	position: absolute;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 8px;
	border-bottom-width: 24px;
	border-color: white;
	border-radius: 5px;
}

#timp-gallery-presenter-close,
#timp-gallery-presenter-prev,
#timp-gallery-presenter-next {
	display: inline-block;
	border: none;
	padding: 1rem 2rem;
	margin: 0;
	text-decoration: none;
	background: #1117;
	color: #ffffff;
	font-family: sans-serif;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	text-align: center;
	transition: background 250ms, transform 150ms;
	-webkit-appearance: none;
	-moz-appearance: none;
	font-size:2em;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	position: absolute;
}

#timp-gallery-presenter-close {
	right: 2%;
	top: 2%;
}

#timp-gallery-presenter-prev {
	left: 2%;
	bottom: 2%;
}

#timp-gallery-presenter-next{
	right: 2%;
	bottom: 2%;
}

#timp-gallery-presenter-close:hover,
#timp-gallery-presenter-close:focus {
	background: #1117;
}

#timp-gallery-presenter-close:focus {
	outline: 1px solid #fff;
	outline-offset: -4px;
}

#timp-gallery-presenter-close:active {
	transform: scale(0.8);
}

@media screen and (max-width: 950px) {
	.timp-gallery-container {grid-template-columns: repeat(2, 1fr);}
}
