/*
 * JE Camera standalone compatibility frontend (Joomla 3.10)
 * Keeps the historic module configuration but avoids the obsolete Camera/
 * jQuery runtime so the slider cannot be broken by page-level jQuery conflicts.
 */

.je_camera_host {
    clear: both;
    display: block;
    position: relative;
    width: 100%;
}
.je_camera_v5 {
    box-sizing: border-box;
    display: block !important;
    float: none;
    overflow: visible;
    position: relative;
    width: 100%;
    z-index: 0;
}
.je_camera_v5 *, .je_camera_v5 *::before, .je_camera_v5 *::after { box-sizing: border-box; }
.je_camera_stage {
    background: #fff;
    height: 400px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.je_camera_slide {
    bottom: 0;
    display: none;
    left: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    transform: translate3d(0,0,0);
    width: 100%;
    z-index: 1;
}
.je_camera_slide.je_camera_active {
    display: block;
    opacity: 1;
    z-index: 2;
}
.je_camera_slide.je_camera_incoming,
.je_camera_slide.je_camera_outgoing {
    display: block;
    z-index: 3;
}
.je_camera_slide.je_camera_outgoing { z-index: 2; }
.je_camera_image {
    border: 0;
    display: block;
    height: 100% !important;
    left: 0;
    max-width: none !important;
    object-fit: cover;
    object-position: 50% 50%;
    position: absolute;
    top: 0;
    user-select: none;
    width: 100% !important;
}
.je_camera_video {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 4;
}
.je_camera_link {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}
.je_camera_caption {
    bottom: 0;
    display: block;
    left: 0;
    position: absolute;
    width: 100%;
    z-index: 6;
}
.je_camera_caption > div {
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 10px 20px;
}

.je_camera_v5 .je_camera_caption a,
.je_camera_v5 .je_camera_caption a:link,
.je_camera_v5 .je_camera_caption a:visited,
.je_camera_v5 .je_camera_caption a:hover,
.je_camera_v5 .je_camera_caption a:active {
    color: #fff !important;
    text-decoration: underline;
}
.je_camera_loading {
    align-items: center;
    background: rgba(255,255,255,.9);
    border: 1px solid #fff;
    border-radius: 18px;
    display: none;
    height: 36px;
    justify-content: center;
    left: 50%;
    margin: -18px 0 0 -18px;
    position: absolute;
    top: 50%;
    width: 36px;
    z-index: 30;
}
.je_camera_loading.je_camera_visible { display: flex; }
.je_camera_loading span {
    animation: jeCameraSpin .8s linear infinite;
    border: 3px solid rgba(0,0,0,.28);
    border-radius: 50%;
    border-top-color: rgba(0,0,0,.72);
    display: block;
    height: 22px;
    width: 22px;
}
@keyframes jeCameraSpin { to { transform: rotate(360deg); } }


/* Historic Camera slide-duration indicator. */
.je_camera_progress {
    display: block;
    opacity: .8;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 24;
}
.je_camera_progress_pie {
    --je-loader-color: #eeeeee;
    --je-loader-bg: #222222;
    --je-progress-angle: 0deg;
    background: conic-gradient(var(--je-loader-color) var(--je-progress-angle), var(--je-loader-bg) 0deg) !important;
    border-radius: 50%;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
.je_camera_progress_pie > span { display: none; }
.je_camera_pie_rightTop { right: 0; top: 0; }
.je_camera_pie_leftTop { left: 0; top: 0; }
.je_camera_pie_leftBottom { bottom: 0; left: 0; }
.je_camera_pie_rightBottom { bottom: 0; right: 0; }

.je_camera_progress_bar {
    --je-loader-color: #eeeeee;
    --je-loader-bg: #222222;
    background: var(--je-loader-bg) !important;
}
.je_camera_progress_bar > span {
    background: var(--je-loader-color);
    display: block;
    height: 0;
    position: absolute;
    width: 0;
}
.je_camera_bar_top, .je_camera_bar_bottom { height: 7px; left: 0; right: 0; }
.je_camera_bar_top { top: 0; }
.je_camera_bar_bottom { bottom: 0; }
.je_camera_bar_left, .je_camera_bar_right { bottom: 0; top: 0; width: 7px; }
.je_camera_bar_left { left: 0; }
.je_camera_bar_right { right: 0; }
.je_camera_bar_dir_leftToRight > span { bottom: 0; left: 0; top: 0; }
.je_camera_bar_dir_rightToLeft > span { bottom: 0; right: 0; top: 0; }
.je_camera_bar_dir_topToBottom > span { left: 0; right: 0; top: 0; }
.je_camera_bar_dir_bottomToTop > span { bottom: 0; left: 0; right: 0; }

.je_camera_prev, .je_camera_next, .je_camera_playpause {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(20,20,20,.62);
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    height: 40px;
    margin: -20px 0 0;
    opacity: .72;
    padding: 0;
    position: absolute;
    top: 50%;
    transition: opacity .18s ease, background .18s ease;
    width: 40px;
    z-index: 20;
}
.je_camera_prev { left: 0; }
.je_camera_next { right: 0; }
.je_camera_playpause { right: 41px; }
.je_camera_prev:hover, .je_camera_next:hover, .je_camera_playpause:hover { background: rgba(20,20,20,.82); opacity: 1; }
.je_camera_prev > span, .je_camera_next > span {
    display: block;
    font: 38px/36px Arial, Helvetica, sans-serif;
    height: 40px;
    text-align: center;
    width: 40px;
}
.je_camera_playpause > span::before {
    content: "";
    border-left: 5px solid #fff;
    border-right: 5px solid #fff;
    display: block;
    height: 18px;
    margin: 11px auto 0;
    width: 15px;
}
.je_camera_v5.je_camera_paused .je_camera_playpause > span::before {
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0;
    border-top: 9px solid transparent;
    height: 0;
    margin-top: 11px;
    width: 0;
}
.je_camera_v5.je_camera_nav_hover .je_camera_prev,
.je_camera_v5.je_camera_nav_hover .je_camera_next,
.je_camera_v5.je_camera_nav_hover .je_camera_playpause { opacity: 0; pointer-events: none; }
.je_camera_v5.je_camera_nav_hover:hover .je_camera_prev,
.je_camera_v5.je_camera_nav_hover:hover .je_camera_next,
.je_camera_v5.je_camera_nav_hover:hover .je_camera_playpause,
.je_camera_v5.je_camera_nav_hover:focus-within .je_camera_prev,
.je_camera_v5.je_camera_nav_hover:focus-within .je_camera_next,
.je_camera_v5.je_camera_nav_hover:focus-within .je_camera_playpause { opacity: .72; pointer-events: auto; }

.je_camera_pagination {
    border: 0 !important;
    clear: both;
    line-height: 0;
    padding: 10px 0 7px;
    text-align: center;
    width: 100%;
}
.je_camera_dot {
    appearance: none;
    -webkit-appearance: none;
    background: #777;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 12px;
    margin: 0 5px;
    opacity: .55;
    padding: 0;
    width: 12px;
}
.je_camera_dot.je_camera_current { opacity: 1; }

.je_camera_thumbs {
    border: 0 !important;
    clear: both;
    float: none;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.je_camera_thumbs > div { width: 100%; }
.je_camera_thumbs ul {
    list-style: none;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 8px;
    text-align: center;
    white-space: nowrap;
}
.je_camera_thumbs li {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0 4px;
}
.je_camera_thumb_button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.je_camera_thumb_button img {
    border: 1px solid #999;
    display: block;
    height: auto;
    max-width: none !important;
    opacity: .72;
}
.je_camera_thumb_button.je_camera_current img { border-color: #333; opacity: 1; }

/* Alignment values inherited from the original Camera settings. */
.je_camera_v5[data-je-align="topLeft"] .je_camera_image { object-position: 0 0; }
.je_camera_v5[data-je-align="topCenter"] .je_camera_image { object-position: 50% 0; }
.je_camera_v5[data-je-align="topRight"] .je_camera_image { object-position: 100% 0; }
.je_camera_v5[data-je-align="centerLeft"] .je_camera_image { object-position: 0 50%; }
.je_camera_v5[data-je-align="center"] .je_camera_image { object-position: 50% 50%; }
.je_camera_v5[data-je-align="centerRight"] .je_camera_image { object-position: 100% 50%; }
.je_camera_v5[data-je-align="bottomLeft"] .je_camera_image { object-position: 0 100%; }
.je_camera_v5[data-je-align="bottomCenter"] .je_camera_image { object-position: 50% 100%; }
.je_camera_v5[data-je-align="bottomRight"] .je_camera_image { object-position: 100% 100%; }

@media (prefers-reduced-motion: reduce) {
    .je_camera_slide, .je_camera_prev, .je_camera_next, .je_camera_playpause { transition: none !important; }
    .je_camera_loading span { animation-duration: 1.6s; }
}
