.popup_container {
	min-width: 300px;
	max-width: 1000px;
	background: #fff;
	border: solid .5ex #999;
	color: #000;
  padding: 5px;
  margin: 0;
  /* css3 */
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 0px 0px 8ex #aaa;
  -moz-box-shadow: 0px 0px 8ex #aaa;
  -webkit-box-shadow: 0px 0px 8ex #aaa;
}

.popup_photo_container {
    padding: 0px;tutaj mogę rzeniem
    max-width: 986px ;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.popup_high_res_photo_container {
    max-width: 1450px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: auto;
    height: auto;
}

.popup_high_res_photo_container .popup_content {
    position:relative;
}

.popup_high_res_photo_container img {
    width: 1440px;
    cursor: pointer;
}

.popup_photo_container .popup_content{
   margin:0;
}

.popup_wrapper {
    max-width: 980px;
    margin: 0 !important;
}

.popup_photo_menu {
    padding: 20px 10px;
    float: none;
    background-color: #f2f2f2;
    display: table-cell;
    margin-top: -1ex;
    vertical-align: top;
    width: 300px !important;
}

.popup_photo_container .popup_message, .popup_high_res_photo_container .popup_message {
    float: none;
    padding: 10px 0 0 0 !important;
    display: table-cell;
    position: relative;
    margin-right: 10px;
}

.popup_photo_container .popup_message table{
    border-spacing: 0;
}

.popup_photo_container .popup_message td {
    padding: 0;
    background-color: white;
}

.photo_in_menu img{
    margin: 0 auto;
}

.photo_presentation_info {
    height: 25px;
    padding: 5px 30px;
    font-size: 10px;
    color: #666666;
    font-weight: bold;
}

.photo_presentation_wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

.photo_presentation_arrow {
    position: absolute;
    display: none;
    z-index: 9999;
    top: 200px;
    cursor: pointer;
}

.photo_presentation_arrow_right {
    left: 595px;
}

.photo_presentation_arrow_left {
    left: 10px;
}

.popup_photo_container .popup_panel_helper {
    max-width: 1080px;
}

.popup-panel-row {
    display: inline-block;
    margin: 8px 5px;
}

.popup_panel_photo, .popup_panel_photo_wrapper {
    width: 640px;
    height: 480px;
}

.popup_panel_thumb {
    box-sizing: border-box;
    width: 120px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #164c9f;
    cursor: pointer;
    padding: 10px;
    float: left;
    height: 95px;
    transition: border-bottom 0.1s linear;
}

.popup-panel-row .popup_panel_thumb:first-child {
    margin-right: 30px;
}

.popup_panel_presentation_thumb {
    box-sizing: border-box;
    width: 270px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #164c9f;
    cursor: pointer;
    padding: 10px;
    margin: 8px 5px;
    height: 95px;
    position: relative;
}

.popup_panel_presentation_thumb_icon {
    position: relative;
    margin-left: 145px;
}

.popup_panel_presentation_thumb_number {
    position: absolute;
    z-index: 1000000;
    display: block;
    bottom: 36px;
    left: 33px;
    font-size: 20px;
    color: #666666;
    font-weight: bold;
}

.photo_presentation_responsive_menu_wrapper {
    display: none;
    background-color: #f2f2f2;
    padding: 0 30px;
}

.photo_presentation_responsive_menu {
    display: none;
    height: 115px;
}

.magnifier-icon {
    cursor: -moz-zoom-in;
    cursor: -webkit-zoom-in;
    cursor: zoom-in;
}

.magnifier-icon-minus {
    cursor: -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}

#popup_panel_loader {
    width:640px;
    height: 480px;
    display:block;
    vertical-align: middle;
    padding-top: 100px;
}

.photo_presentation_spinner {
    margin: 100px auto;
    width: 32px;
    height: 32px;
    position: relative;
}

.photo_in_menu_responsive {
    width: 80px;
    height: 60px;
}

.photo_presentation_slider {
    border-radius: 0 !important;
    height: 30px;
    margin-left: 30px;
    width: 620px;
    display: none;
}

@media (max-width: 1030px) {
    .popup_photo_container .popup_message, .popup_high_res_photo_container .popup_message {
        display: block;
        margin-right: 0;
    }

    .popup_photo_container{
        width: 520px ;
    }

    .popup_photo_menu{
        display: none ;
    }

    .popup_panel_photo, .popup_panel_photo_wrapper {
        width: 480px;
        height: 360px;
    }

    .photo_presentation_slider {
        width: 460px;
    }

    .photo_presentation_arrow {
        top: 175px;
    }

    .photo_presentation_arrow_right {
        left: 435px;
    }

    #popup_panel_loader {
        width:480px;
        height: 320px;
    }

    .photo_presentation_responsive_menu_wrapper {
        display: block;
    }

    .photo_presentation_responsive_menu {
        display: block;
        overflow: visible;
        white-space: nowrap;
    }

    .slick-slider {
        margin-bottom: 0px !important;
    }

    .popup_panel_thumb {
        width: 120px;
        background-color: #FFFFFF;
        border-bottom: 1px solid #999;
        cursor: pointer;
        padding: 10px;
        margin-top: 15px;
        margin-left: 20px;
        float: none;
        display: inline-block;
    }

    .popup_panel_presentation_thumb {
        width: 270px;
        background-color: #FFFFFF;
        border-bottom: 1px solid #999;
        cursor: pointer;
        padding: 10px;
        margin-top: 15px;
        margin-left: 20px;
        margin-bottom: 0;
        float: none;
        display: inline-block;
    }

    .popup_panel_presentation_thumb_icon{
        bottom: 10px;
        position: absolute;
        margin-left: 100px;
    }

    .popup_panel_thumb {
        width: 100px;
        height: 75px;
        margin-left: 30px;
    }

    .popup_panel_presentation_thumb {
        width: 200px;
        height: 75px;
        margin-left: 30px;
    }

    .popup_panel_presentation_thumb_number {
        bottom: 30px;
        left: 25px;
    }

    .photo_presentation_spinner {
        margin: 0px auto;
    }
}

@media (max-width: 768px) {
    .popup_photo_container {
        width: 360px ;
    }

    .popup_photo_menu {
        display: none ;
    }

    .popup_panel_photo, .popup_panel_photo_wrapper {
        width: 320px;
        height: 240px;
    }

    .photo_presentation_slider {
        width: 300px;
    }

    .photo_presentation_arrow {
        top: 100px;
    }

    .photo_presentation_arrow_right {
        left: 280px;
    }

    #popup_panel_loader {
        width:320px;
        height: 240px;
    }

    .popup_panel_thumb {
        margin-left: 15px;
    }

    .popup_panel_presentation_thumb {
        margin-left: 15px;
    }

}

.popup_panel_presentation_selected_thumb {
    border-bottom: 4px solid #164c9f;
    transition: 0.1s linear;
}

.photo_presentation_slider .ui-slider-handle {
    touch-action: manipulation !important;
    border-radius: 0 !important;
}

.photo_presentation_slider .ui-slider-handle:hover {
    cursor: pointer;
}

.photo_presentation_slider {
    background: #f4f4f4 !important;
}

.photo_presentation_slider .ui-state-active {
    background: #164c9f !important;
}

.popup_title {
  display: none;
	text-align: left;
  padding: 0 10px;
	margin: 0px;
  font-size: 1.2em;
  line-height: 24px;
  font-weight: bold;
  color: #fff !important;
  /* css3 */
  background: #1756a3;
  background-image: -moz-linear-gradient(90deg, #1a58a5, #1b5cad 70%, #134c91);
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#134c91), to(#1a58a5), color-stop(.7, #1b5cad));
  text-shadow: #000 0px 0px 3px;
}
.popup_content {
    padding: 0;
    margin: 5px 0 0 0;
    background: transparent 12px 18px no-repeat;
    text-align: left;
}

/**
 * @ticket 3009
.popup_message {
  position:relative;
}
*/

.popup_content.alert {
	background-image: url(../images/info.gif);
}
.popup_content.confirm {
	background-image: url(../images/important.gif);
}
.popup_content.prompt {
	background-image: url(../images/help.gif);
}
.popup_content.alert .popup_message, .popup_content.confirm .popup_message, .popup_content.prompt .popup_message {
    padding-left: 58px;
    padding-top: 22px;
    padding-bottom: 10px;
    padding-right: 30px;
}
#popup_panel, .popup_panel {
	text-align: center;
	margin: 5px 0px 0px 0px;
  clear: both;
}
.popup_panel input[type="button"] {
  _margin: 0 20px 0 0;
}
#popup_prompt {
	margin: .5em 0em;
}

#popup_overlay {
  background: #e7e7e7 !important;
}

.photo_presentation_cube1, .photo_presentation_cube2 {
    background-color: #0064cd;
    width: 30px;
    height: 30px;

    position: absolute;
    top: 0;
    left: -10px;

    -webkit-animation: sk-cubemove 1s infinite ease-in-out;
    animation: sk-cubemove 1.5s infinite ease-in-out;
}

.photo_presentation_cube2 {
    -webkit-animation-delay: -0.75s;
    animation-delay: -0.75s;
}

.slick-prev:before,
.slick-next:before
{
    color: black !important;
}

@-webkit-keyframes sk-cubemove {
    25% { -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5) }
    50% { -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg) }
    75% { -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5) }
    100% { -webkit-transform: rotate(-360deg) }
}

@keyframes sk-cubemove {
    25% {
        transform: translateX(42px) rotate(-90deg) scale(0.5);
        -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
    } 50% {
          transform: translateX(42px) translateY(42px) rotate(-179deg);
          -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
    } 50.1% {
        transform: translateX(42px) translateY(42px) rotate(-180deg);
        -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
    } 75% {
      transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
      -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
    } 100% {
        transform: rotate(-360deg);
        -webkit-transform: rotate(-360deg);
    }
}

