/* ── Agency Image Carousel ───────────────────────────────────────────── */

.agency-image-carousel {
    width: 100%;
}

.agency-image-carousel__item {
    aspect-ratio: var(--aspect-ratio, 16 / 9);
    border-radius: var(--border-radius, 0);
    overflow: hidden;
    display: block;
    position: relative;
    margin: 0;
}

.agency-image-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.agency-image-carousel__item:hover img {
    transform: scale(1.03);
}

/* ── Captions ────────────────────────────────────────────────────────── */

.agency-image-carousel__caption--overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 12px;
    color: #fff;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.agency-image-carousel__item:hover .agency-image-carousel__caption--overlay {
    opacity: 1;
}

.agency-image-carousel__caption--below {
    padding: 6px 0;
    font-size: 0.875rem;
    color: #555;
}

/* ── Splide theme overrides ──────────────────────────────────────────── */

.agency-image-carousel .splide__arrow {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s;
}

.agency-image-carousel .splide__arrow:hover {
    background: #fff;
}

.agency-image-carousel .splide__arrow svg {
    fill: #333;
    width: 14px;
    height: 14px;
}

.agency-image-carousel .splide__pagination__page {
    background: #ccc;
    opacity: 1;
}

.agency-image-carousel .splide__pagination__page.is-active {
    background: #333;
    transform: scale(1.2);
}

/* ── Lightbox ────────────────────────────────────────────────────────── */

.agency-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-lightbox__inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agency-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.agency-lightbox__close,
.agency-lightbox__prev,
.agency-lightbox__next {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 100000;
}

.agency-lightbox__close:hover,
.agency-lightbox__prev:hover,
.agency-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.agency-lightbox__close {
    top: 16px;
    right: 16px;
    font-size: 2rem;
    padding: 8px 14px;
}

.agency-lightbox__prev,
.agency-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    padding: 8px 16px;
}

.agency-lightbox__prev {
    left: 16px;
}

.agency-lightbox__next {
    right: 16px;
}
