#HomePopup {
    padding: 0 !important;
}

#HomePopup .modal-dialog {
    width: 100%;
    margin: 0;
    padding: 0;
}

#HomePopup .modal-content {
    width: 100%;
    height: 100vh;
    background-color: transparent;
    flex-direction: column;
}

#HomePopup .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#HomePopup .modal-body.preview-mode {
    background-color: lightgrey;
}

#HomePopup .modal-body .home-popup-button {
    position: relative;
    width: 80%;
    max-width: 1200px;
    z-index: 999;
}

#HomePopup .modal-body .home-popup-button button {
    position: absolute;
    right: -18px;
    top: 18px;
    opacity: 1;
    background-color: #c76464;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding-bottom: 3px;
}

#HomePopup .modal-body .home-popup-button button:hover {
    background-color: #890000;
}


#HomePopup .modal-body .home-popup-button button .fa {
    font-size: 18px;
    color: white;
}

#HomePopup .modal-body .home-popup-button button:hover .fa {
    color: lightgray;
}

#HomePopup .modal-body .home-popup-slide-link {
    position: absolute;
    bottom: 30px;
    right: 15px;
    padding: 3px 6px;
    background-color: #f7f7f7;
    border-radius: 3px;
    font-size: 12px;
    color: #1243a5;
}

#HomePopup .modal-body .home-popup-slide-link:hover {
    opacity: 0.7;
}


#HomePopup .modal-body .slide-display {
    width: 80%;
    max-width: 1200px;
    height: calc(100vh - 85px);
    background-color: white;
    margin-top: 35px;
}

#HomePopup .carousel-inner .item .home-popup-slide {
    height: calc(100vh - 85px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px;
}

#HomePopup .carousel-inner img {
    max-width: 100% !important;
    height: auto !important;
}

#HomePopup .carousel-inner .home-popup-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 115px);
    justify-content: center;
    padding-bottom: 30px;
}

#HomePopup .carousel-inner .item .home-popup-slide::-webkit-scrollbar {
    width: 3px;
}

#HomePopup .carousel-inner .item .home-popup-slide::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-image: -webkit-gradient(
            linear,
            left bottom,
            left top,
            color-stop(0.44, rgb(122,153,217)),
            color-stop(0.72, rgb(73,125,189)),
            color-stop(0.86, rgb(28,58,148))
    );
}

#HomePopup .carousel-control {
    left: -70px;
    width: 70px;
}

#HomePopup .carousel-control.right {
    right: -70px;
    left: auto;
    background-image: none;
}

#HomePopup .carousel-control.left {
    background-image: none;
}

#HomePopup .carousel-indicators li {
    background-color: white;
    border: 1px solid #777;
    width: 20px;
    height: 12px;
}

#HomePopup .carousel-indicators .active {
    background-color: #4267b2;
    margin: 1px;
}
