/* ==========================================================================
   GREEN ATOM Galería - widget de Elementor
   Rejilla redondeada con imágenes y superposición al pasar el cursor.
   ========================================================================== */

.ga-gallery {
	width: 100%;
}

/* Cabecera */

.ga-gallery-header {
	max-width: 900px;
	margin: 0 auto 46px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.ga-gallery-title {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(2.1rem, 4.2vw, 3.1rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: var(--color-principal);
	margin: 0;
}

.ga-gallery-title::after {
	content: "";
	display: block;
	width: 78px;
	height: 8px;
	margin: 20px auto 0;
	border-radius: var(--radio-boton);
	background-color: var(--color-principal);
}

/* Rejilla */

.ga-gallery-grid {
	display: grid;
	gap: 22px;
}

.ga-gallery-item {
	position: relative;
	display: block;
	height: 260px;
	overflow: hidden;
	border: 0;
	border-radius: var(--radio-card);
	background-color: var(--ga-crema);
	cursor: pointer;
	box-shadow: 0 14px 34px var(--ga-sombra);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ga-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-radius: inherit;
	pointer-events: none;
	transition: border-color 0.3s ease;
}

.ga-gallery-item:hover::after,
.ga-gallery-item:focus::after {
	border-color: var(--color-principal);
}

.ga-gallery-item:hover,
.ga-gallery-item:focus {
	box-shadow: 0 20px 46px var(--ga-sombra-media);
}

.ga-gallery-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.45s ease;
}

.ga-gallery-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--ga-velo-galeria);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ga-gallery-item:hover .ga-gallery-img,
.ga-gallery-item:focus .ga-gallery-img {
	transform: scale(1.06);
}

.ga-gallery-item:hover .ga-gallery-overlay,
.ga-gallery-item:focus .ga-gallery-overlay {
	opacity: 1;
}

/* Adaptable */

@media (max-width: 992px) {
	.ga-gallery-item {
		height: 230px;
		border-radius: var(--radio-card);
	}
}

@media (max-width: 767px) {
	.ga-gallery-header {
		margin-bottom: 30px;
	}

	.ga-gallery-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.ga-gallery-item {
		height: 190px;
		border-radius: var(--radio-card);
	}
}

@media (max-width: 480px) {
	.ga-gallery-grid {
		grid-template-columns: 1fr !important;
	}
}
