@media all and (min-width: 800px) {

    /* Give space around window */
    .fancybox-custom-layout {
        border: 40px solid #c7bfbf;
    }

    /* Update tumbnail grid background color to match color around area */
    .fancybox-custom-layout .fancybox-thumbs {
        background: #c7bfbf;
    }

    /* Give background solid color */
    .fancybox-custom-layout .fancybox-bg {
        background: #efefef;
        opacity: 1;
    }

    /* Move caption area to the right side */
    .fancybox-custom-layout .fancybox-caption-wrap {
        top: 0;
        right: 44px;
        bottom: 0;
        left: auto;
        width: 300px;
        padding: 0;
        background: #1a4d8d;
    }

    /* Adjust content area and right arrow position */
    /* In this example, right distance is caption width (300) + toolbar width (44) */
    .fancybox-custom-layout .fancybox-stage,
    .fancybox-custom-layout .fancybox-arrow--right {
        right: 344px;
    }

    /* Remove top border from caption */
    .fancybox-custom-layout .fancybox-caption {
        padding: 30px 20px;
        border: 0;
    }

    /* Align buttons at the right side  */
    .fancybox-custom-layout .fancybox-toolbar {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 44px;
        background: #5E4950;
    }

    /* Remove background from buttons */
    .fancybox-custom-layout .fancybox-button {
        background: transparent;
    }

    /* Simple advert space */
    .ad {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 15px;
        color: #fff;
    }

    .ad p {
        margin-top: 0px;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .ad p a {
        color: #fff;
    }

}