.ft1-gallery {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.ft1-gallery__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.ft1-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ft1-gallery__toolbar-right {
	flex-shrink: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.ft1-gallery__export {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.ft1-btn-export {
	padding: 0.4rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	font-size: 0.8rem;
	cursor: pointer;
	color: #334155;
	text-decoration: none;
}

.ft1-btn-export:hover {
	border-color: #1a5f4a;
	color: #1a5f4a;
}

.ft1-btn-export--link {
	display: inline-flex;
	align-items: center;
}

.ft1-filter {
	padding: 0.4rem 0.85rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ft1-filter:hover {
	border-color: #1a5f4a;
	color: #1a5f4a;
}

.ft1-filter--active {
	background: #1a5f4a;
	border-color: #1a5f4a;
	color: #fff;
}

.ft1-filter--fav.ft1-filter--active {
	background: #be123c;
	border-color: #be123c;
}

.ft1-gallery__fav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	margin-left: 0.35rem;
	padding: 0 0.35rem;
	font-size: 0.7rem;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
}

.ft1-filter--fav:not(.ft1-filter--active) .ft1-gallery__fav-count {
	background: #fef2f2;
	color: #be123c;
}

.ft1-gallery__no-filter {
	text-align: center;
	color: #64748b;
	padding: 2rem 1rem;
}

.ft1-gallery__grid {
	display: grid;
	gap: 1.5rem;
}

.ft1-gallery--cols-1 .ft1-gallery__grid { grid-template-columns: 1fr; }
.ft1-gallery--cols-2 .ft1-gallery__grid { grid-template-columns: repeat(2, 1fr); }
.ft1-gallery--cols-3 .ft1-gallery__grid { grid-template-columns: repeat(3, 1fr); }
.ft1-gallery--cols-4 .ft1-gallery__grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.ft1-gallery--cols-3 .ft1-gallery__grid,
	.ft1-gallery--cols-4 .ft1-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.ft1-gallery__grid {
		grid-template-columns: 1fr !important;
	}
}

.ft1-gallery__card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s, transform 0.2s;
}

.ft1-gallery__card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.ft1-gallery__photo {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f1f5f9;
}

.ft1-gallery__photo-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ft1-gallery__fav {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s, background 0.15s;
	z-index: 2;
}

.ft1-gallery__fav:hover {
	transform: scale(1.08);
}

.ft1-gallery__fav.is-favorite {
	background: #fef2f2;
}

.ft1-gallery__fav-icon {
	font-size: 1.15rem;
	line-height: 1;
	color: #be123c;
}

.ft1-gallery__fav.is-favorite .ft1-gallery__fav-icon {
	color: #be123c;
}

.ft1-gallery__temas li {
	cursor: pointer;
}

.ft1-gallery__temas li:hover {
	background: #d1fae5;
}

.ft1-gallery__name a {
	color: inherit;
	text-decoration: none;
}

.ft1-gallery__name a:hover {
	color: #1a5f4a;
}

.ft1-gallery__link {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a5f4a;
	text-decoration: none;
}

.ft1-gallery__link:hover {
	text-decoration: underline;
}

.ft1-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ft1-gallery__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.ft1-gallery__body {
	padding: 1rem 1.15rem 1.25rem;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.ft1-gallery__categoria {
	margin: 0 0 0.35rem;
	color: #1a5f4a;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ft1-gallery__name {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.ft1-gallery__temas {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ft1-gallery__temas li {
	font-size: 0.75rem;
	padding: 0.2rem 0.55rem;
	background: #ecfdf5;
	color: #065f46;
	border-radius: 999px;
}

.ft1-gallery__cv {
	margin: 0;
	font-size: 0.9rem;
	color: #64748b;
	line-height: 1.5;
}

.ft1-gallery__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
}

.ft1-gallery__actions .ft1-gallery__link {
	margin-top: 0;
}

.ft1-contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border: 1px solid #1a5f4a;
	border-radius: 7px;
	background: #1a5f4a;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.ft1-contact-button:hover,
.ft1-contact-button:focus {
	background: #144a3a;
	color: #fff;
	text-decoration: none;
}

.ft1-gallery__empty {
	text-align: center;
	color: #64748b;
	padding: 2rem;
}
