@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#gallery {
	padding: 20px;
	/* Adjust the value as per your preference */
}

#gallery h2 {
	text-align: center;
}
 
.container {
	margin-left: 35px;
	position: relative;
	width: 90%;
	display: flex;
	flex-wrap: wrap;

}
.img-container{
	margin-left: 35px;
	position: relative;
	width: 90%;
	display: flex;
	flex-wrap: wrap;

}

@media (max-width: 767px) {
  #gallery {
    padding: 0;
    display: flex;
    justify-content: flex-end;
    box-sizing: content-box;
  }

  .img-container {
    margin-left: auto;
    margin-right: 55px;
    width: calc(100% - 110px);
  }
}

.filter_buttons {
	flex-wrap: wrap;
	margin-left: 25px;
}

button.active {
	background: #505393;
	color: #d3d4e4;
}

.filterable_cards {
	display: flex;
	margin-top: 15px;
	flex-wrap: wrap;
}

.card {
	flex-grow: 1;
	flex-basis: 300px;
	width: 240px; 
	background-color: #fff;
	padding: 3px;
	border-radius: 8px;
	padding: 5px;
	margin-left: 5px;
	position: relative;
}

.card_body {
	text-align: center;
}


.card.hide {
	display: none;
}

.card img {
	width: 100%;
	height: 380px;
	object-fit: cover;
	border-radius: 8px 8px 0 0;
}

.card_body {
	padding: 15x 20px 20px;
}

.card_title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.card_title_ss {
	font-size: 17px;
	font-weight: 700;
	color: #333;
}



.card .image_overlay {
	position: relative;
	display: block;
}

.card .image_overlay::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card .image_overlay:hover::before {
	opacity: 1;
}

.card .card_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card .image_overlay:hover .card_overlay {
	opacity: 1;
}

.card .card_content {
	text-align: center;
	color: #d3d4e4; 
}



.card .card_description {
	list-style-type: none;
	font-size: 15px;
	font-weight: 500;
}

.card .block {
	position: absolute;
	top: -0.5px;
	left: -0.5 px;
	width: 80px;
	height: 30px;
	background-color: #505393;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
}

.card .block_text {
	color: #d3d4e4;
	font-size: 14px;
	font-weight: 500;
}