/* Styles for individual blog posts in the Bulletin of Dental Education */

.caption {
    font-size: 80%;
}

/* Floated images and divs less than 500 pixels wide */
.float-left-extra-narrow,
.float-right-extra-narrow {
    margin-bottom: 15px;
}

@media (min-width: 480px) {

    .float-left-extra-narrow {
    	float: left;
    	margin-right: 30px;
    	max-width: 40%;
    }
  
    .float-right-extra-narrow {
        float: right;
        margin-left: 30px;
        max-width: 40%;
    }
  
}

/* Floated images and divs exactly 500 pixels wide */
.float-left-500,
.float-right-500 {
    margin-bottom: 30px;
}

img.float-left-500,
img.float-right-500,
div.float-left-500 img,
div.float-right-500 img {
    width: 100%; 
}
  
@media (min-width: 1100px) {

    .float-left-500 {
    	float: left;
    	margin-right: 30px;
    	margin-bottom: 15px;
    	max-width: 45%;
    }
  
    .float-right-500 {
    	float: right;
    	margin-left: 30px;
    	margin-bottom: 15px;
    	max-width: 45%;
    }
}

/* Floated images and divs exactly 700 pixels wide */
.float-left-700,
.float-right-700 {
    margin-bottom: 30px;
}

img.float-left-700,
img.float-right-700,
div.float-left-700 img,
div.float-right-700 img {
    width: 100%; 
}
  
@media (min-width: 1200px) {

    img.float-left-700 {
    	float: left;
    	margin-right: 30px;
    	margin-bottom: 15px;
    	width: auto;
    	max-width: 66%;
    }
  
    img.float-right-700 {
    	float: right;
    	margin-left: 30px;
    	margin-bottom: 15px;
    	width: auto;
    	max-width: 66%;
    }
}

/* Hide/show elements based on screen width */

.show-only-on-extra-small-screens,
.show-only-on-small-screens,
.show-only-on-medium-screens,
.show-only-on-large-screens,
.show-only-on-extra-large-screens,
.show-only-on-xxl-screens {
  display: none;
}


@media (max-width: 479px) {
  
  .show-only-on-extra-small-screens {
    display: initial;
  }  
}

@media (min-width: 480px) and (max-width: 767px) {
  
  .show-only-on-small-screens {
    display: initial;
  }
}

@media (min-width: 768px) and (max-width: 959px) {

  .show-only-on-medium-screens {
    display: initial;
  }
}

@media (min-width: 960px) and (max-width: 1099px) {
  
  .show-only-on-large-screens {
    display: initial;
  }
}

@media (min-width: 1100px) and (max-width: 1695px) {
   
  .show-only-on-extra-large-screens {
    display: initial;
  } 
}

@media (min-width: 1696px) {
  
  .show-only-on-xxl-screens {
    display: initial;
  }  
}

/* Styles for development use


#screen-width-monitor {
  position: fixed;
  top: 100px;
  z-index: 200;
  background-color: blue;
  color: white;
  padding: 10px 15px;
}

*/