@-webkit-keyframes hive-hotspot-pulse {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(2);
        transform: scale(2);
    }
}

@keyframes hive-hotspot-pulse {
    0% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(2);
        transform: scale(2);
    }
}

.hive-block-hotspot .hotspot-container {
    position: relative;
}

.hive-block-hotspot .hotspot-container > img.hotspot-bg {
    width: 100%;
}
.hive-block-hotspot .hotspot-container .hotspot-item {
    position: absolute;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.hive-block-hotspot .hotspot-container .hotspot-item:not(.empty):hover,
.hive-block-hotspot .hotspot-container .hotspot-item:not(.empty):focus {
    -webkit-transform: translate(-50%, -50%) scale(1.2);
    transform: translate(-50%, -50%) scale(1.2);
    -webkit-box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.4);
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.4);
}
.hive-block-hotspot .hotspot-container .hotspot-item.empty {
    cursor: default;
}

.hive-block-hotspot .hotspot-container .hotspot-item.xs {
    width: 18px;
    height: 18px;
    padding: 4px;
}
.hive-block-hotspot .hotspot-container .hotspot-item.sm {
    width: 24px;
    height: 24px;
    padding: 6px;
}
.hive-block-hotspot .hotspot-container .hotspot-item.md {
    width: 36px;
    height: 36px;
    padding: 9px;
}
.hive-block-hotspot .hotspot-container .hotspot-item.md:focus {
    outline: thin dotted;
    outline: 5px auto Highlight;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
.hive-block-hotspot .hotspot-container .hotspot-item.lg,
.hive-block-hotspot .hotspot-container .hotspot-item.xl {
    width: 48px;
    height: 48px;
    padding: 12px;
}

.hive-block-hotspot .hotspot-container .hotspot-item.xs svg {
    max-height: calc(18px - 8px);
}
.hive-block-hotspot .hotspot-container .hotspot-item.sm svg {
    max-height: calc(24px - 12px);
}
.hive-block-hotspot .hotspot-container .hotspot-item.md svg {
    max-height: calc(36px - 18px);
}
.hive-block-hotspot .hotspot-container .hotspot-item.lg svg,
.hive-block-hotspot .hotspot-container .hotspot-item.xl svg {
    max-height: calc(48px - 24px);
}

@media screen and (min-width: 1024px) {
    .hive-block-hotspot .hotspot-container .hotspot-item.xs {
        width: 22px;
        height: 22px;
        padding: 5px;
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.sm {
        width: 32px;
        height: 32px;
        padding: 8px;
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.md {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.lg,
    .hive-block-hotspot .hotspot-container .hotspot-item.xl {
        width: 68px;
        height: 68px;
        padding: 17px;
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.xs svg {
        max-height: calc(22px - 10px);
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.sm svg {
        max-height: calc(32px - 16px);
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.md svg {
        max-height: calc(48px - 24px);
    }
    .hive-block-hotspot .hotspot-container .hotspot-item.lg svg,
    .hive-block-hotspot .hotspot-container .hotspot-item.xl svg {
        max-height: calc(68px - 34px);
    }
}
.hive-block-hotspot .hotspot-container .hotspot-item svg {
    width: 100%;
    height: 100%;
}
.hive-block-hotspot .hotspot-container .hotspot-item .hotspot-inner .hotspot-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -webkit-animation: hive-hotspot-pulse 2s infinite;
    animation: hive-hotspot-pulse 2s infinite;
}
.hive-block-hotspot .hotspot-container .hotspot-item .hotspot-inner span.hotspot-icon {
    position: relative;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.hive-block-hotspot .popover {
    z-index: 1040;
    min-width: 196px;
    max-width: 276px;
    min-height: auto;
    border: none;
}

/* Mobile modal style popover */
.mq-extraSmall.mq-small .hive-block-hotspot .popover {
    padding: 10px !important;
    position: absolute;
    z-index: 2;
}

.hive-block-hotspot .popover.dark.top > .arrow:after {
    border-top-color: #000;
}
.hive-block-hotspot .popover.dark.bottom > .arrow:after {
    border-bottom-color: #000;
}
.hive-block-hotspot .popover .popover-inner {
    padding: 0.75em;
    max-height: 450px;
    overflow: auto;
}
.hive-block-hotspot .popover button.close {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.8;
    width: 24px;
    height: 24px;
    padding: 0;
}
.hive-block-hotspot .popover button.close:focus {
    outline: thin dotted;
    outline: 5px auto Highlight;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
[dir="rtl"] .hive-block-hotspot .popover button.close {
    right: auto;
    left: 5px;
}
.hive-block-hotspot .popover .carousel .carousel-indicators {
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    padding: 3px 0;
}
.hive-block-hotspot .popover .carousel .carousel-control {
    background: none;
    top: auto;
    height: 26px;
    width: 30px;
    z-index: 15;
}
.hive-block-hotspot .popover .carousel .carousel-control .glyphicon {
    margin: 0;
    width: auto;
    height: auto;
    font-size: 14px;
}
.hive-block-hotspot .popover .carousel .carousel-control .glyphicon.glyphicon-chevron-left {
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.hive-block-hotspot .popover .carousel .carousel-control .glyphicon.glyphicon-chevron-right {
    -webkit-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
}
.hive-block-hotspot .popover .carousel .carousel-inner {
    border-top-left-radius: 5px; /* Match popover radius */
    border-top-right-radius: 5px; /* Match popover radius */
}
.hive-block-hotspot .popover .carousel .carousel-inner .item {
    display: block;
    overflow: hidden;
}
.hive-block-hotspot .popover .carousel .carousel-inner .item img {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.hive-block-hotspot .popover .carousel .carousel-inner .item.active img {
    max-height: 100%;
    height: 100%;
    max-width: none;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img .image-zoom-icon {
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
    display: flex;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img .image-zoom-icon.reduced-height {
    bottom: 26px;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img .image-zoom-icon img {
    width: 52px;
    opacity: 0;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img:focus .image-zoom-icon,
.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img:hover .image-zoom-icon {
    background-color: rgba(0, 0, 0, 0.5);
}

.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img:focus .image-zoom-icon img,
.hive-block-hotspot .popover .carousel .carousel-inner .item.active .enlarge-img:hover .image-zoom-icon img {
    opacity: 1;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item:not(.active) .enlarge-img {
    visibility: hidden;
}

.hive-block-hotspot .popover .carousel .carousel-inner .item .play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../../../../packages/the_hive_multimedia/img/play-btn.png) no-repeat;
    background-position: 50% 50%;
    background-size: 150%;
    opacity: 0.65;
}

.hive-block-hotspot .carousel-fade .carousel-inner .item {
    opacity: 0;
    -webkit-transition-property: opacity;
    transition-property: opacity;
}
.hive-block-hotspot .carousel-fade .carousel-inner .active {
    opacity: 1;
}
.hive-block-hotspot .carousel-fade .carousel-inner .active.left,
.hive-block-hotspot .carousel-fade .carousel-inner .active.right {
    left: 0;
    opacity: 0;
    z-index: 1;
}
.hive-block-hotspot .carousel-fade .carousel-inner .next.left,
.hive-block-hotspot .carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}
.hive-block-hotspot .carousel-fade .carousel-control {
    z-index: 2;
}

.hive-block-hotspot .carousel .carousel-inner .item.active {
    padding-top: 75%; /* 4:3 ratio */
}

.hive-block-hotspot .hotspot-btn-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}
.hive-block-hotspot .hotspot-btn-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: white;
    border: 1px solid #efefef;
}
[dir="rtl"] .hive-block-hotspot .hotspot-btn-container .btn {
    right: auto;
    left: 55px;
}
[dir="rtl"] .hive-block-hotspot .hotspot-btn-container {
    right: auto;
    left: 10px;
}
.hive-block-hotspot.fullscreen .hotspot-btn-container {
    position: fixed;
}

.hive-block-hotspot .hotspot-btn-container .btn:hover,
.hive-block-hotspot .hotspot-btn-container .btn:focus {
    background: #efefef;
}

/* To sit above any hotspots */
.hive-block-hotspot .hotspot-btn-container .btn {
    z-index: 2;
}

/* Embed-specific overrides */
.embed .hive-block-hotspot {
    overflow: hidden;
}
.embed .hive-block-hotspot .hive-block-title,
.embed .hive-block-hotspot .hive-block-description,
.embed .hive-block-hotspot .btn.btn-fullscreen-hotspot {
    display: none;
}

.embed .hive-block-hotspot .popover .popover-inner {
    max-height: calc(100vh - 10px);
    overflow: auto;
}
.embed .hive-block-hotspot .popover.with-media .popover-inner {
    max-height: calc(100vh - 285px * 0.5625); /* 16:9 ratio */
    overflow: auto;
}
.embed .hive-block-hotspot .carousel .carousel-inner .item.active {
    padding-top: 56.25%; /* 16:9 ratio */
}

/* Mobile embed */
.mq-extraSmall .embed .hive-block-hotspot .popover-underlay,
.mq-small .embed .hive-block-hotspot .popover-underlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #373737ad;
}

.mq-extraSmall .embed .hive-block-hotspot .popover-modal,
.mq-small .embed .hive-block-hotspot .popover-modal {
    width: calc(100% - 20px);
    margin: 10px;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
}

.mq-extraSmall .embed .hive-block-hotspot .popover-container,
.mq-small .embed .hive-block-hotspot .popover-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.mq-extraSmall .embed .hive-block-hotspot .popover-container .popover,
.mq-small .embed .hive-block-hotspot .popover-container .popover {
    position: absolute;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 360px;
    overflow-y: auto;
}

.mq-extraSmall .embed .hive-block-hotspot .popover-container .popover .arro,
.mq-small .embed .hive-block-hotspot .popover-container .popover .arrow {
    display: none;
}

.mq-extraSmall .embed .hive-block-hotspot .popover.with-media .popover-inner,
.mq-small .embed .hive-block-hotspot .popover.with-media .popover-inner {
    max-height: none;
}

/**
 * Full screen
 */
.hive-block-hotspot.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    z-index: 1002;
    background-color: black;
    overflow: hidden;
}

.hive-block-hotspot.fullscreen .hotspot-header-container {
    display: none;
}

.hive-block-hotspot.fullscreen .hotspot-fullscreen-container {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
}

.hive-block-hotspot.fullscreen .hotspot-container {
    max-height: 100%;
    max-width: 100%;
}

.hive-block-hotspot.fullscreen .hotspot-container > img.hotspot-bg {
    width: auto;
    max-height: 100%;
    max-height: 100vh;
    max-width: 100%;
}

.hive-block-hotspot .hotspot-icon.white svg {
    fill: white;
}
.hive-block-hotspot .hotspot-icon.black svg {
    fill: black;
}
