/* ============================================================
   GLightbox caption — shared by the homepage gallery and /portfolio/.
   Loaded AFTER glightbox.min.css so these rules win on equal specificity.
   The stock "clean" skin draws a white box that stretches to fill the
   slide (flex: 1 0 100%); we turn it into a compact dark bar under the
   photo with a service link and a quote button.
   ============================================================ */

/* Hidden caption sources (also set by glightbox.min.css, which loads async). */
.glightbox-desc {
    display: none;
}

.glightbox-clean .gslide-description {
    flex: 0 0 auto;
    background: var(--green-900, #0c2b1c);
}

.glightbox-clean .gdesc-inner {
    padding: 0;
}

.glightbox-clean .gslide-desc {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.lb-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding: 0.875rem 1.25rem;
}

.lb-caption-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.lb-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.lb-loc {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--green-200, #c3d8bf);
}

.lb-caption-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
}

.lb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--brand-500, #aedb5b);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
}

.lb-link:hover,
.lb-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.lb-btn {
    white-space: nowrap;
}

/* ---- Mobile: GLightbox's own mobile rules take the caption out of flow,
   pin it to the bottom of the screen and paint a fade-to-dark gradient
   over it, so it floats away from the photo. Put it back in flow so it
   sits directly under the image as the same solid bar as desktop. ---- */
.glightbox-mobile .glightbox-container .gslide-description {
    position: static;
    order: 2;
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: var(--green-900, #0c2b1c);
}

/* Leave room for the caption so photo + bar fit on one screen. */
.glightbox-mobile .glightbox-container .gslide-image img {
    max-height: 65vh;
}

.glightbox-mobile .glightbox-container .gslide-desc,
.glightbox-mobile .glightbox-container .gslide-desc .lb-title {
    color: #fff;
}

.glightbox-mobile .glightbox-container .gslide-desc .lb-loc {
    color: var(--green-200, #c3d8bf);
}

.glightbox-mobile .glightbox-container .gslide-desc .lb-link {
    color: var(--brand-500, #aedb5b);
    font-weight: 600;
}

.glightbox-mobile .glightbox-container .lb-caption {
    padding: 1rem 1rem 1.25rem;
}

.glightbox-mobile .glightbox-container .lb-caption-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.75rem;
}

.glightbox-mobile .glightbox-container .lb-btn {
    justify-content: center;
    width: 100%;
}

.glightbox-mobile .glightbox-container .lb-link {
    justify-content: center;
    white-space: normal;
}
