/* TestimonialMosaic widget - theme-agnostic (used on both the wla2026 and legacy
   default-responsive themes), so no dependency on either theme's CSS variables. */
.wla-mosaic-wrap {
    max-width: 980px;
    margin: 0 auto 30px;
    text-align: center;
}

.wla-mosaic-wrap h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #10202E;
}

.wla-mosaic-wrap p.wla-mosaic-sub {
    color: #5C6B79;
    font-size: .95rem;
    margin: 0 0 16px;
}

.wla-mosaic-viewer {
    width: 100%;
    /* Matches the mosaic's actual grid proportions (GRID_COLS/GRID_ROWS in
       cron/generate_photomosaic.php - keep these two in sync). A fixed height here
       independent of the real image aspect ratio is what caused the letterboxed empty
       bands above/below the mosaic (OpenSeadragon fits-to-container without cropping). */
    aspect-ratio: 88 / 23;
    background: #f4f6f9;
    border-radius: 12px;
    border: 1px solid #E6E9EE;
    overflow: hidden;
}

/* Hover preview - positioned near the cursor by JS (the mosaic is a single OpenSeadragon
   canvas, not per-tile DOM elements, so this can't be a plain CSS :hover popout like
   TestimonialFilmReelBackground's - see testimonial-mosaic.js).
   position:absolute (not fixed) + scrollX/Y-adjusted coordinates - the tooltip tracks a
   point in scrollable page content, not the viewport (2026-07-03 fix, same as the reel's). */
.wla-mosaic-tooltip {
    position: absolute;
    z-index: 50;
    width: 240px;
    background: #fff;
    color: #1c1c1c;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: .85rem;
    line-height: 1.45;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
    pointer-events: none;
    text-align: left;
}

.wla-mosaic-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wla-mosaic-tooltip .wla-mosaic-title {
    display: block;
    margin-bottom: 4px;
    font-size: .92rem;
    color: #10202E;
}

.wla-mosaic-tooltip .wla-mosaic-cta {
    display: block;
    margin-top: 8px;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .01em;
    color: #F0584C;
}

@media (max-width: 768px) {
    .wla-mosaic-tooltip {
        display: none; /* hover has no meaning on touch; tap navigates straight through */
    }
}
