﻿    .HeaderDiv {/*div containing the property name*/
        padding-left: 15px;
    }

    .TextDiv {/*div containing both the details and description of the property*/
        clear: left;
    }

    .OverrideImgWidth {/*Applied if the image is not wide enough. Also oversizes the width to make sure the image fills out the height of the div*/
        background-size: 275px auto !important;
    }

    .PreviewContainer {/*div that contains the preview image div and the link to open the slideshow*/
        float: right !important;
    }

    .ImagePreviewDiv {/*div that contains the preview image as it's background*/
        background-size: auto 160px;
        background-repeat: no-repeat;
        background-position: center;
        overflow: hidden;
        float: right;
        height: 160px;
        width: 240px;
        margin: 0px 0px 0px 15px;
        text-align:center;       
    }

    .previewImgCaption{
        width:100%;
        text-align:center;
        margin: 0px 0px 15px 5px;
        clear:both;
        color:black;
    }

    .DetailParagraph {/*Paragraph containing the location, managment company, and type of property details*/
        color: #77787B;
        font-weight: 700;
        clear: left;
    }

    .DetailParagraph > a {/*Enable links to wrap without a space*/
        word-break: break-all;
    }

    @media screen and (max-width:670px) { /*Shrink image div when 670 or lower*/
        .ImagePreviewDiv {
            height: 120px;
            width: 180px;
            margin: 5px 0px 0px 0px;
        }
    }

    @media screen and (max-width:597px) {   /*Force image between the title and details paragraph when 597 or lower*/
        .PreviewContainer {
            float: left !important;
        }

        .DetailParagraph {
            clear: both;
        }
    }

    .sliding-img {
        vertical-align: middle;
    }

    .prev, .next {/* Next & previous buttons on slideshow*/
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 16px;
        margin-top: -22px;
        color: white;
        background-color: rgba(0,0,0,0.5);
        font-weight: bold;
        font-size: 15px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
    }

    .next {/* Position the "next button" to the right */
        right: 20px;
        border-radius: 3px 0 0 3px;
    }

    /* On hover, add a black background color with a little bit see-through */
    .prev:hover, .next:hover {
        background-color: rgba(0,0,0,0.8);
    }

    .dot {/*Footer dots at the bottom of the slideshow*/
        cursor: pointer;
        height: 15px;
        width: 15px;
        margin: 0 2px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }
    

    .active, .dot:hover {/*darken the current dot, or if hovering the mouse over a dot*/
        background-color: #717171;
    }

    .fade {/*adds the fade in and out effect to modal slidshow div*/
        -webkit-animation-name: fade;
        -webkit-animation-duration: 1.5s;
        animation-name: fade;
        animation-duration: 1.5s;
    }

    .boxclose { /*positions and styles the link in the header of the modal div*/
        float: right;
        margin-top: -30px;
        margin-right: -30px;
        cursor: pointer;
        color: #fff;
        border: 1px solid #AEAEAE;
        border-radius: 30px;
        background: #605F61;
        font-size: 31px;
        font-weight: bold;
        display: inline-block;
        line-height: 0px;
        padding: 11px 3px;
    }

    .boxclose:before {/*puts an X in the link*/
        content: "×";
    }