﻿﻿/* Base fancybox styles */
#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1104;
    display: none !important; /* Добавляем !important */
    visibility: hidden; /* Добавляем дополнительное скрытие */
    opacity: 0; /* Добавляем прозрачность */
}

#fancybox-loading div {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 480px;
    background-image: url(./../images/fancybox.png);
    display: none !important; /* Также скрываем внутренний div */
    visibility: hidden;
    opacity: 0;
}

/* Core elements */
#fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    display: none;
    overflow: hidden;
}

#fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    overflow: auto;
    display: none;
}

#fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 1101;
    outline: none;
    display: none;
}

#fancybox-outer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #353535;
}

#fancybox-content {
    position: relative;
    width: 0;
    height: 0;
    padding: 0;
    border: 0px solid #353535;
    outline: none;
    overflow: hidden;
    z-index: 1102;
}

/* Navigation elements */
#fancybox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: transparent url(./../images/fancybox.png) -40px 0px;
    cursor: pointer;
    z-index: 1103;
    display: none;
}

#fancybox-left, #fancybox-right {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 35%;
    cursor: pointer;
    outline: none;
    background: transparent url(./../images/fancy_blank.gif);
    z-index: 1102;
    display: none;
}

#fancybox-left { left: 0; }
#fancybox-right { right: 0; }

#fancybox-left-ico, #fancybox-right-ico {
    position: absolute;
    top: 50%;
    left: -9999px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    cursor: pointer;
    z-index: 1102;
    display: block;
    background-image: url(./../images/fancybox.png);
}

#fancybox-left-ico { background-position: -40px -30px; }
#fancybox-right-ico { background-position: -40px -60px; }

#fancybox-left:hover span { left: 20px; }
#fancybox-right:hover span { left: auto; right: 20px; }

/* Background elements */
.fancybox-bg {
    position: absolute;
    padding: 0;
    margin: 0;
    border: 0;
    width: 20px;
    height: 20px;
    z-index: 1001;
}

/* Background positions */
#fancybox-bg-n {
    top: -20px;
    left: 0;
    width: 100%;
    background: url(./../images/fancybox-x.png);
}

#fancybox-bg-ne {
    top: -20px;
    right: -20px;
    background: url(./../images/fancybox.png) -40px -162px;
}

#fancybox-bg-e {
    top: 0;
    right: -20px;
    height: 100%;
    background: url(./../images/fancybox-y.png) -20px 0;
}

#fancybox-bg-se {
    bottom: -20px;
    right: -20px;
    background: url(./../images/fancybox.png) -40px -182px; 
}

#fancybox-bg-s {
    bottom: -20px;
    left: 0;
    width: 100%;
    background: url(./../images/fancybox-x.png) 0 -20px;
}

#fancybox-bg-sw {
    bottom: -20px;
    left: -20px;
    background: url(./../images/fancybox.png) -40px -142px;
}

#fancybox-bg-w {
    top: 0;
    left: -20px;
    height: 100%;
    background: url(./../images/fancybox-y.png);
}

#fancybox-bg-nw {
    top: -20px;
    left: -20px;
    background: url(./../images/fancybox.png) -40px -122px;
}

/* Title styles */
#fancybox-title {
    font: 12px Helvetica;
    z-index: 1102;
}

.fancybox-title-inside {
    padding-bottom: 10px;
    text-align: center;
    color: #333;
    background: #fff;
    position: relative;
}

.fancybox-title-outside {
    padding-top: 10px;
    color: #fff;
}

.fancybox-title-over {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #FFF;
    text-align: left;
}

#fancybox-title-over {
    padding: 10px;
    background-image: url(./../images/fancy_title_over.png);
    display: block;
}

/* Modern browsers only */
@supports not (-ms-high-contrast: none) {
    .fancybox-ie6,
    .fancybox-ie,
    #fancybox-loading.fancybox-ie6,
    .fancybox-ie6 #fancybox-close,
    .fancybox-ie6 #fancybox-left-ico,
    .fancybox-ie6 #fancybox-right-ico,
    .fancybox-ie6 #fancybox-bg-w,
    .fancybox-ie6 #fancybox-bg-e,
    .fancybox-ie6 #fancybox-left,
    .fancybox-ie6 #fancybox-right,
    #fancybox-hide-sel-frame,
    .fancybox-ie .fancybox-bg {
        /* These styles are not needed for modern browsers */
        display: none !important;
    }
}