input[type="submit"],
	input[type="reset"],
	input[type="button"],
	.button {
		-moz-appearance: none;
		-webkit-appearance: none;
		-ms-appearance: none;
		appearance: none;
		-moz-transition: background-color 0.2s ease-in-out;
		-webkit-transition: background-color 0.2s ease-in-out;
		-ms-transition: background-color 0.2s ease-in-out;
		transition: background-color 0.2s ease-in-out;
		background-color: transparent;
		border-radius: 5px;
		border: 0;
		box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.125);
		color: #ffffff !important;
		cursor: pointer;
		display: inline-block;
		font-family: "Title";
		font-size: 0.8em;
		font-weight: 700;
		height: 3.75em;
		letter-spacing: 0.1em;
		line-height: 3.75em;
		padding: 0 2.25em;
		text-align: center;
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
	}

.page-trabajos #banner {
    margin-bottom: 0;
    height: auto;
}
@media screen and (max-width: 1100px) {
    .page-trabajos #banner {
        height: 13em;
    }
}
@media screen and (max-width: 736px) {
    .page-trabajos #banner {
        height: 13em;
    }
}

@media screen and (max-width: 400px) {
    .page-trabajos #banner {
        height: 13em;
    }
}
 #footer-nav {
         margin-top: auto;
    }

#\Nuestras\ trabajos .inner {
    width: 100%;
    max-width: 1100px;
    padding-bottom: 30px;
}

.inst-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    justify-content: center;
    margin-bottom: 2.5em;
}

.inst-filter-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #000000;
    padding: 0.3em 0.2em;
    font-size: 0.95em;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: "Title";
}

.inst-filter-btn:hover {
    border-bottom-color: rgba(255,255,255,0.4);
}

.inst-filter-btn.active {
    border-bottom: 2px solid #000000;
    font-weight: 600;
}

.inst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8em;
    width: 100%;
}

.inst-card {
    background: var(--color-background-dark);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.inst-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}

.inst-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.inst-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.inst-card:hover .inst-card-thumb img {
    transform: scale(1.04);
}

.inst-card-count {
    position: absolute;
    bottom: 0.6em;
    right: 0.6em;
    background: rgba(0,0,0,0.6);
    color: #000000;
    font-size: 0.75em;
    padding: 0.25em 0.6em;
    border-radius: 1em;
    pointer-events: none;
    display: none;
}

.inst-card-body {
    padding: 1em 1.2em 1.2em;
}

.inst-card-body h3 {
    margin: 0 0 0.35em;
    font-size: 1em;
    line-height: 1.3;
    color: inherit;
}

.inst-card-subtitle {
    margin: 0 0 0.5em;
    font-size: 0.85em;
    opacity: 0.75;
    line-height: 1.3;
}

.inst-card-location {
    margin: 0 0 0.6em;
    font-size: 0.82em;
    opacity: 0.7;
}

/*turned off badge*/
.inst-card-badge {
    display: inline-block;
    background: var(--color-primary, #608046);
    color: #000000;
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2em 0.7em;
    border-radius: 1em;
    display: none;
}

/*LOADING / EMPTY / ERROR*/
.inst-loading,
.inst-empty,
.inst-error {
    text-align: center;
    padding: 3em 1em;
    opacity: 0.7;
    width: 100%;
}
.inst-error, .inst-empty p {
    color: black;
}

.inst-spinner {
    width: 2em;
    height: 2em;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--color-primary, #608046);
    border-radius: 50%;
    animation: inst-spin 0.8s linear infinite;
    margin: 0 auto 1em;
}

@keyframes inst-spin {
    to { transform: rotate(360deg); }
}

/*LIGHTBOX*/
.inst-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.inst-lightbox.active {
    display: flex;
}

.inst-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inst-lightbox-content img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.inst-lightbox-caption {
    margin-top: 0.8em;
    text-align: center;
    color: #000000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
}

.inst-lightbox-caption h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.inst-lightbox-subtitle {
    flex-basis: 100%;
    font-size: 0.85em;
    opacity: 0.85;
}

.inst-lightbox-caption span {
    font-size: 0.85em;
    opacity: 0.7;
}

.inst-lightbox-close,
.inst-lightbox-prev,
.inst-lightbox-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    border-radius: 50%;
}

.inst-lightbox-close:hover,
.inst-lightbox-prev:hover,
.inst-lightbox-next:hover {
    background: var(--color-primary, #608046);
}

.inst-lightbox-close {
    position: fixed;
    top: 2em;
    right: 1.2em;
    font-size: 1.6em;
    width: 2em;
    height: 2em;
}

.inst-lightbox-nav {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    margin-top: 1em;
}

.inst-lightbox-prev,
.inst-lightbox-next {
    position: static;
    font-size: 2em;
    width: 1.8em;
    height: 1.8em;
}

.inst-lightbox-content img {
    max-width: 70vw;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

@media screen and (max-width: 600px) {
    .inst-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1em;
    }
    .inst-lightbox-content img {
        max-width: 88vw;
        max-height: 55vh;
    }
}

@media screen and (max-width: 400px) {
    .inst-grid {
        grid-template-columns: 1fr;
    }
}