/*------------------------------------*\
    #Magnific Popup
\*------------------------------------*/

.mfp-title {
    height: 36px;
    padding-right: 50px;
}

button.mfp-arrow-left {
    background: url(/typo3conf/ext/world_of_toys/Resources/Public/Images/slider-left.png) no-repeat 50%;
    left: 0;
    border-radius: 0 2px 2px 0;
}

button.mfp-arrow-right {
    background: url(/typo3conf/ext/world_of_toys/Resources/Public/Images/slider-right.png) no-repeat 50%;
    right: 0;
    border-radius: 2px 0 0 2px;
}

button.mfp-arrow {
    background-color: #656565;
    width: 39px;
    height: 71px;
    opacity: 1;
}

button.mfp-arrow:hover {
    background-color: #df0029;
}

button.mfp-arrow:before,
button.mfp-arrow:after {
    display: none;
}





/*------------------------------------*\
    #Flexslider
\*------------------------------------*/

a.flex-prev,
a.flex-next {
    display: none;
}

.flexslider.custom.carousel .flex-direction-nav .flex-prev,
.flexslider.custom.carousel .flex-direction-nav .flex-next,
.flexslider.slider-small .flex-direction-nav .flex-prev,
.flexslider.slider-small .flex-direction-nav .flex-next {
    width: 19px;
    height: 35px;
    margin-top: -18px;
}

.flexslider.custom.carousel ul.slides li.flex-active-slide {
    border: 1px solid #df0029;
}

.slider-small > ul.slides {
    line-height: 1.2em;
}

.slider-small .slides li {
    display: inline-block;
    width: 32%;
}


.gallery-slider ul.slides > li {
    background-color: #ddd;
}

#wrapper .gallery-slider ul.slides li img {
    height: 100%;
    min-height: 413px;
    width: auto;
    margin: auto;
    object-fit: contain;
}




/*------------------------------------*\
    #Responsive Definitions
\*------------------------------------*/

/*
 * Tablet Landscape
 */
@media only screen and (min-width: 768px) and (max-width: 959px) {
    #wrapper .gallery-slider ul.slides li img {
        /* Keep ratio: 438 x 292 */
        min-height: 292px !important;
        max-height: 292px;
    }
}

/*
 * Mobile Landscape / Tablet Portrait
 */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    #wrapper .gallery-slider ul.slides li img {
        /* Keep ratio: 360 x 240 */
        min-height: 240px !important;
        max-height: 240px;
    }
}

/*
 * Mobile Portrait
 */
@media only screen and (max-width: 480px) {
    #wrapper .gallery-slider ul.slides li img {
        /* Keep ratio: 260 x 173 */
        min-height: 173px !important;
        max-height: 173px;
    }
}

/*
 * Non-Desktop
 */
@media only screen and (max-width: 959px) {
    .flexslider.custom.carousel {
        display: none !important;
    }

    .flexslider .flex-direction-nav .flex-prev,
    .flexslider .flex-direction-nav .flex-next {
        width: 19px;
        height: 35px;
        margin-top: -18px;
    }

    .mfp-container {
        padding-left: 68px;
        padding-right: 68px;
    }
}
