.gallery-container {
	overflow-x: hidden;
}

.grid-container {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 20px;
}

.grid-item {
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	width: 157px;
	height: 400px;
	transition: width 0.1s linear;
}

.grid-item:hover {
	width: 274px;
}

.grid-item-open {
	width: 274px !important;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 0%, transparent 40%, black 100%);
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 20px;
	color: white;
	transition: opacity 0.3s ease;
}

.grid-item:hover .overlay {
	opacity: 1;
}

.content {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.text-content {
	display: flex;
	flex-direction: column; /* Organiza en columna */
	align-items: flex-start; /* Alinea a la izquierda */
	justify-content: flex-end;
	flex-grow: 1;
}

.title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 5px;
}

.text {
	font-size: 1rem;
}

.link-content {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
}

@media screen and (max-width: 600px) {
	.gallery-container {
			overflow-x: scroll;
	}
	.grid-container {
			flex-wrap: nowrap; /* Para evitar que los elementos se envuelvan en filas en dispositivos móviles */
	}
}