* {
	box-sizing: border-box;
}

/***********************************************************************/
.box_filter{
	box-shadow: 2px 2px 4px #575757;
	padding: 0.5rem;
	border-radius: 6px;
}
.box_filter h3{
	text-transform: uppercase;
	border-bottom: 2px solid #1d37aa;/*5a66a4*/
	padding-bottom: 0.4rem;
	margin-bottom: 1rem;
	color: #1d37aa;
}
.ti{
	font-size: 1.5rem;
  	color: #ccc;
}

/***********************************************************************/
.box_gallery {
	font-family: Lato, sans-serif;
	margin: 0;
	padding: 1rem;
	min-height: 60vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(20, 20, 20, 1);
}



.box_gallery .imgs_gallery {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	max-width: 100%;
	width: 1280px;
}

.box_gallery .imgs_gallery figure {
	margin: 0;
	position: relative;
	overflow: hidden;
}

figure::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: rgba(0, 0, 0, 0.5);
	transform-origin: center;
	opacity: 0;
	transform: scale(2);
	transition: opacity 300ms;
}

.box_gallery .imgs_gallery img {
	width: 100%;
	display: block;
	aspect-ratio: 1 / 1;
	object-fit: cover;
    object-position: top;
	transition: transform 1000ms;
}

.box_gallery .imgs_gallery figcaption {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	place-items: center;
	text-align: center;
	padding: 1rem;
	color: white;
	font-size: 1.2rem;
	z-index: 1;
	opacity: 0;
	transition: opacity 600ms, transform 600ms;
}

.box_gallery .imgs_gallery a:is(:hover, :focus) figure::after {
	opacity: 1;
}

.box_gallery .imgs_gallery a:is(:hover, :focus) figcaption {
	opacity: 1;
	transition: opacity 600ms;
}

/* Medium devices (tablets, less than 992px)*/
@media (max-width: 991.98px) { 
    
    .box_gallery {
        padding: 0.5rem;
    }

    .box_gallery .imgs_gallery {
        grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    }

}

@media (prefers-reduced-motion: no-preference) {
	.box_gallery .imgs_gallery figcaption {
		transform: translate3d(0, 2rem, 0);
	}
	
	.box_gallery .imgs_gallery figure::after {
		border-radius: 50%;
		opacity: 1;
		transform: scale(0);
		transition: transform 900ms;
	}
	
	.box_gallery .imgs_gallery a:is(:hover, :focus) figure::after {
		transform: scale(2.5);
	}

	.box_gallery .imgs_gallery a:is(:hover, :focus) figcaption {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		transition: opacity 600ms 400ms, transform 600ms 400ms;
	}

	.box_gallery .imgs_gallery a:is(:hover, :focus) img {
		transform: scale(1.2);
	}
}