/*VIDEO GALERIE*/

.mobile-gallery iframe {
    display: block !important;
}

.p-image-wrapper.iframe-show .p-image > *:not(iframe) {
    display: none;
}

.p-image-wrapper.iframe-show .p-image {
    display: block !important;
}

.p-image-wrapper.iframe-show .image360 {
    display: none !important;
}

.video-thumbnail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 8px;

    padding: 5px;
    width: 100px;
    height: 100px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    border: 1px solid #d1e4f0;
    color: #fff;
    text-align: center;
    background-color: #1C63AD;
    cursor: pointer;
}

.video-thumbnail[style="background-color: #bce7ff"] {
    color: #3875B5;
}

.video-thumbnail[style="background-color: #bce7ff"]:hover {
    color: #3875B5;
}

.video-thumbnail[style="background-color: #bce7ff"] img {
    filter: none;
}

.video-thumbnail:hover {
    color: #fff;
}

.video-thumbnail img {
    border: none !important;
    filter: brightness(0) invert(1);
}

.video-thumbnail.ftp-video {
    padding: 0;

    background: transparent;
}

.video-thumbnail.ftp-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 93, 172, .3);
}

.video-thumbnail.ftp-video::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    mask-image: url('/user/documents/upload/kodovani/video.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-image: url('/user/documents/upload/kodovani/video.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    background-color: #fff;
    z-index: 2;
}

.video-thumbnail.ftp-video img {
    filter: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p-image iframe,
.p-image video {
    display: none;
    position: relative;
    z-index: 2;
}

.p-image video {
    width: auto;
    height: 500px;
}

.video-inner {
    display: flex !important;
    align-items: center;
    height: inherit;
    margin: 0 20px 0 20px;
    width: auto !important;
}

.video-inner:has(>.ftp-video-element) {
    margin: 0 0 20px;
}

.have-mobile-gallery .video-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 8px;

    position: relative;
    width: 100%;
    height: 100%;
    padding: 5px;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    border: 1px solid #d1e4f0;
    color: #fff;
    text-align: center;
    background-color: #1C63AD;
}

.have-mobile-gallery .video-holder.ftp-video {
    padding: 0;

    background-color: transparent;
}


.have-mobile-gallery .video-holder.ftp-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 93, 172, .3);
}

.have-mobile-gallery .video-holder.ftp-video::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    mask-image: url('/user/documents/upload/kodovani/video.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-image: url('/user/documents/upload/kodovani/video.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    background-color: #fff;
    z-index: 2;
}


.have-mobile-gallery .video-holder.ftp-video img {
    filter: unset;
}

.have-mobile-gallery .video-holder img {
    border: none !important;
    filter: brightness(0) invert(1);
}


.have-mobile-gallery .video-holder[style="background-color: #bce7ff"] {
    color: #3875B5;
}

.have-mobile-gallery .video-holder[style="background-color: #bce7ff"]:hover {
    color: #3875B5;
}

.have-mobile-gallery .video-holder[style="background-color: #bce7ff"] img {
    filter: none;
}

/*PŘÍZNAK VIDEO*/

.flag.flag-video {
    display: inline-block;
    min-width: 38px !important;
    min-height: 26px !important;
    font-size: 0;
    padding: 0;
    background-image: url("/user/documents/upload/kodovani/video.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    background-color: transparent !important;
}

.p-image-wrapper .flag.flag-video {
    cursor: pointer;
}

.myflags {
    margin-bottom: 4px;
}

.myflags a {
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
}

/*FTP VIDEO*/


/*RESPO*/

@media (max-width: 1439px) {

}

@media (max-width: 1199px) {

}

@media (max-width: 991px) {

}

@media (max-width: 767px) {
    .p-image iframe,
    .p-image video {
        display: none !important;
    }

    .ftp-video-element {
        max-width: 100%;
    }
}

@media (max-width: 499px) {

}

@media (max-width: 479px) {
}

@media (max-width: 400px) {
}

