.gallery {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	list-style: none;
	padding: 0;
	justify-content: center;
}

.controls .button {
	padding: 10px 20px;
	background-color: #eee;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s, color 0.3s;
}

.controls .button.active {
	background-color: #4285f4;
	color: white;
}

.box-container {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}

.gallery-item {
	width: calc(25% - 15px);
	box-sizing: border-box;
	overflow: hidden;
}

.gallery-item.video-mode {
  width: calc(50% - 15px);
}

.gallery-item p {
	display: none;
}
.gallery-item img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s;
}

.gallery-item img:hover {
	transform: scale(1.05);
}

@media (max-width: 992px) {
	.gallery-item {
		width: calc(33.333% - 15px);
	}

  .gallery-item.video-mode {
		width: calc(50% - 15px);
	}
}

@media (max-width: 768px) {
	.gallery-item {
		width: calc(50% - 15px);
	}
  .gallery-item.video-mode {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.gallery-item {
		width: 100%;
	}
}
