
/* =========================================
   FLOWMAP - BASE
========================================= */

.flowmap-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    isolation: isolate;
    background: #111;
    touch-action: pan-y;
}

/* Original image */

.flowmap-container > img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* WebGL Canvas */

.flowmap-container canvas.flowmap-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}


/* =========================================
   FLOWMAP SIZES
========================================= */

/* HERO */

.flowmap-hero {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 950px;
}

/* PORTFOLIO */

.flowmap-portfolio {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 250px;
}

/* WIDE */

.flowmap-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
}


/* =========================================
   BETHEME / BEBUILDER IMAGE
========================================= */

.column_image.flowmap-image .flowmap-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    height: auto;
}

.column_image.flowmap-image .flowmap-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .flowmap-container {
        touch-action: pan-y;
    }

    .flowmap-container canvas.flowmap-canvas {
        display: block;
    }

    .flowmap-container > img {
        opacity: 1;
    }

    .flowmap-hero {
        height: 55vh;
        min-height: 350px;
        max-height: none;
    }

    .flowmap-portfolio {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .column_image.flowmap-image .flowmap-container {
        aspect-ratio: 4 / 3;
        min-height: 0;
        height: auto;
    }
}


/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .flowmap-container {
        touch-action: pan-y;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .flowmap-container canvas.flowmap-canvas {
        display: none;
    }

    .flowmap-container > img {
        opacity: 1 !important;
    }

}
