/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
    margin: 0px;
    overflow: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 19px;
    line-height: 1.5em;
}

.v3d-container {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.fullscreen-button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-size: 100% 100%;
    display: none;
    z-index: 1;
}

.fullscreen-open {
    background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
    background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* { -webkit-tap-highlight-color:rgba(0,0,0,0); }

/* Dark Theme */

.v3d-simple-preloader-background {
    background-color: #181818;
}

.v3d-simple-preloader-container {
    filter: drop-shadow(0px 0px 4px #2a69bd);
}

.v3d-simple-preloader-container {
    filter: none;
}

.v3d-simple-preloader-logo {
    background: url('media/android-chrome-512x512.png') no-repeat 0/contain !important;
    width: 300px;
    height: 300px;
    transform: translate(-25%,-25%);
}

.v3d-simple-preloader-bar {
    background: linear-gradient(90deg, #9b4700, #ef7d05) !important;
    border-color: #3e3e3e !important;
    transform: translate(-25px,-150px) !important;
}

#popup-container {
    display: none;
}

#popup-inside {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup {
    position: relative;
    width: 60%;
    background: rgba(0,0,0,.8);
    box-sizing: border-box;
}

.popup-content {
    display: none;
    color: white;
}

.popup-content-inside {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 35vh;
    padding: 27px;
}

.popup-content .popup-gallery {
    width: 48%;
    height: 100%;
    position: relative;
}

.popup-content .popup-single-content {
    width: 100%;
    height: 100%;
}

.popup-content .popup-gallery img, .popup-content .popup-single-content img, .popup-content .popup-single-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content .popup-gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content .popup-text {
    overflow-y: scroll;
    height: 90%;
    padding-right: 80px;
    box-sizing: border-box;
}

.popup-content .popup-text h1 {
    margin-top: 0;
}

.popup-content .popup-gallery ~ .popup-text {
    position: relative;
    top: 45px;
    width: 42%;
    height: 83%;
    padding-right: 80px;
    padding-bottom: 20px;
    overflow-y: scroll;
    box-sizing: border-box;
}

.popup-button a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    padding: 10px 25px;
    transition: background-color 250ms;
}

.popup-button a:hover {
    background-color: rgba(255,255,255,0.4);
}

#popup-close {
    background: #e3000b;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    font-size: 40px;
    text-align: center;
    cursor: pointer;
    line-height: initial;
    transition: background-color 250ms;
    z-index: 1000;
}

#popup-close:hover {
    background-color: #ab1c22;
}

/* width */
::-webkit-scrollbar {
    width: 17px;
}

/* Track */
::-webkit-scrollbar-track {
    background-color: #888;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: black;
}

.popup-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.popup-gallery-slider img {
    opacity: 0;
    transition: opacity 400ms;
    position: absolute;
    top: 0;
    left: 0;
}

.popup-gallery-slider img.active {
    opacity: 1;
}

.popup-gallery-menu a {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
}

.popup-gallery-menu a img {
    width: 100%;
    height: 100%;
}

.popup-gallery-menu a.slider-prev {
    left: 0;
}

.popup-gallery-menu a.slider-next {
    right: 0;
}

@media screen and (max-width: 1500px) {
    #popup {
        width: 90%;
    }
    .popup-content-inside {
        height: 55vh;
    }
}

@media screen and (max-width: 1024px) {
    #popup {
        width: 95%;
        height: 95vh;
    }
    .popup-content-inside {
        height: 90vh;
    }
}
