
/*ensure uniform caption text (file-gallery uses caption-text)*/
.wp-caption p.wp-caption-text, .caption-text {
font-size:11px!important;
line-height:14px!important;
margin:0!important;
padding:3px 2px;!important;
}
/*ensure theme line height does not interfere with size of caption div*/
.wp-caption {
    line-height: 0%!important;
}
/*caption wrapper*/
.wp-caption-wrapper {
    position:absolute; /* absolute position (so we can position it where we want)*/  
    bottom:0; /* position will be on bottom */  
    left:0;
    right:0; 
    /* styling below */  
    background-color:black;  
    color:white;  
}
.desktop .wp-caption-wrapper {
    display:none; /* hide it */
}
.responsive .wp-caption-wrapper {
    display:block; /* show captions always if phone or tablet, as hover is not possible */
opacity: 0.7!important;
}
.wp-caption-wrapper
{
width:auto!important; /*ensure it is responsive*/
}

/*end of caption wrapper*/

/*caption alignment fixes*/
.mills-sheet .wp-caption
{
position: relative;
background: transparent;
border:none;
padding:0;
margin: 0;
}
.wp-caption.aligncenter {
margin-left:auto!important;
margin-right: auto!important;
}
img.alignright, .wp-caption.alignright {
margin:2px 0px 10px 10px!important;
}
img.alignleft, .wp-caption.alignleft {
margin:2px 10px 10px 0px!important;
}
img.aligncenter, .wp-caption.aligncenter {
margin-top:10px!important;
margin-bottom:10px!important;
}
/*end of caption alignment fixes*/
/***********************************************
image rules*/
/*ensure images are centered when in single column mobile mode*/
.responsive.responsive-phone .mills-content-layout img:not(.size-thumbnail-natural-height, .thumbnail) {
   margin: 1% auto!important;
}

/*half width images - responsive in tablet mode*/
.responsive-tablet .vc_col-sm-12 img.alignleft.size-half-content-width-natural-height, .responsive-tablet .vc_col-sm-12 img.alignright.size-half-content-width-natural-height, .responsive-tablet .vc_col-sm-12 img.alignleft.size-half-content-width-landscape, .responsive-tablet .vc_col-sm-12 img.alignright.size-half-content-width-landscape
{
    max-width:50%!important;
}

/*fix image margins*/
.wp-caption a {
    line-height: 100%!important;
}

.wp-caption > a {
    font-size:0!important;
}

/*make images responsive*/
img {
   max-width: 100%;
   height: auto;
}

/*make captions responsive*/
.wp-caption {
    max-width: 100%!important;
}