.galpatid {
	font-size: 11px;
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.galpatid a{
color: #000;
	text-decoration: none;
}
.beforeafter {
	width: 100%;
	text-align: center;
		font-size: 42px;
	padding-top: 30px;
	padding-bottom: 30px;
}
@media all and (max-width: 800px) and (min-width: 1px){
.beforeafter {
	font-size: 32px;
	}

 }

.gallery #PageBody {
  display: block;
  background-image: none;
}


.gallery .content-inner { margin: 0px; }

.gallery-head {
  min-height: 50px;
  margin: 0;
  text-align: center;
  overflow: hidden; }


.gallery-head .gallery-disclaimer {
  color: #5987bd;
  font-size: 0.75em;
  text-transform: uppercase;
  width: 320px;
  margin-bottom: 10px;
  display: inline-block; }

.gallery-head .view-favorites {
  display: inline-block;
  margin: 0;
  padding: 0 15px;
  text-align: center;
  list-style-type: none;
  width: auto;
  height: 35px;
  line-height: 35px;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff;
  background-color: #b2a19a; }

.gallery-head .view-favorites:hover { background-color: #5987bd; }

.gallery .content {
  width: 100%;
  max-width: 960px;
  margin-left:auto;
	margin-right:auto;
	margin-top: 0;
	margin-bottom: 0;
  float: none; }




/* Patients area */

#Content.gallery-list-patients-wrap {
  float: right;
  width: calc(100% - 300px);
  margin: 20px 0px 20px 0;
  overflow: visible; margin-right: -40px;}

#Content.gallery-list-patients-wrap.gallery-landing { /*width: auto; max-width: 567px;*/}

.gallery-list-patients {
  margin: 0;
  padding: 0;
  opacity: inherit;
  overflow: hidden;
  filter: inherit; }





.gallery-list-patients li {
  width: auto;
  max-width: 300px;
	 min-width: 300px;
  margin: 0 8px 8px 0;
  padding: 0;
  float: left;
  list-style: none;
  font-size: 0.8em;
  line-height: 0;
  text-align: right;
  text-transform: uppercase;
  border: 1px solid #fff;
  background-color: #e4e5e5;
  box-sizing: border-box;
  box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.25); }

.gallery-list-patients li.no-results {
  background: transparent;
  text-align: left;
  line-height: 1.3;
  box-shadow: none;
  width: auto;
  float: none;
  font-size: 1.2em; }

  .gallery-list-patients li.no-results h3 { margin-top: 0; }

.gallery-list-patients li.even { margin-right: 10px!important; }


.gallery-list-patients li .gallery-list-inner {
  display: block;
  overflow: hidden;
  margin: 0px; }

.gallery-list-patients li .gallery-list-patient-head,
.gallery-list-patients li .gallery-list-patient-foot {
  position: relative;
  display: block;
  width: auto;
  line-height: 1.6;
  overflow: hidden; 
width: 95%;
margin-left: auto;
margin-right: auto;
font-siz: 11px!important;
}


.gallery .gallery-favorite-wrap input[type='checkbox'] {
  position: absolute;
  top: -100%;
  left: 0;
  visibility: hidden; }

.gallery-list-patients li .gallery-list-patient-foot {
  margin: 8px auto 2px auto;
  text-align: left; }

.gallery-list-patients li .gallery-list-patient-foot a { color: #000; }

.gallery-list-patients li a { text-decoration: none; }

.gallery-list-patients li a:hover { text-decoration: underline; }

.gallery-list-patients li a.gallery-list-procedure {
  letter-spacing: 0.05em;
  color: #595556; }

.gallery-list-patients li .gallery-list-patient-img {
  display: block;
  max-width: 100%;
  line-height: 0;
  margin: 0px auto 0 0;
  overflow: hidden;
  text-align: center; }

.gallery-list-patients li .gallery-list-patient-img img {
  margin: 0 auto;
  max-width: 50%;
	min-width: 50%;
	min-height: 130px;
	max-height: 130px;
	object-fit: cover;
  vertical-align: center!important;
  image-orientation: unset; 
}

.gallery-list-patients li a.patient-favorite-link { color: #92848C }

.gallery-list-patients li a.patient-favorite-link.view {
  color: #8A416E;
  text-decoration: underline; }

.gallery-list-patients li a.patient-favorite-link.remove { color: #8A416E; }




/* Teaser */

.gallery-list-patients li.gallery-teaser-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  text-align: center;
  background-color: #edeae2;
  /* background-image: repeating-linear-gradient(90deg, transparent, transparent 10px, #e8e4dc 12px, #e8e4dc 25px), linear-gradient( to bottom, #e8e4dc, #edeae2 ); */
  background-image: url('../images/gallery-bg.png');
  box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.3); }

.gallery-list-patients li.gallery-teaser-wrap .inner {
  padding: 6% 6% 10% 6%;
  margin: 0;
  text-align: center;
background-color: #fff;
 }

.gallery-teaser-wrap .teaser-banner {
  font-size: 2.1em;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.05em;
  color: #2a2929; }

.gallery-teaser-wrap .teaser-banner strong {
  display: block;
  margin: 0;
  font-size: 1.7em;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #9b758d; }

#Content .gallery-teaser-wrap .teaser-banner p {
  line-height: 1.2;
  font-size: 0.75em;
  line-height: 1.4;
  color: #767369;
  margin: 13px 0; }

.gallery-teaser-wrap .teaser-banner em {
  font-size: 0.8em;
  color: #fff;
  font-style: normal;
  margin-left: -1em;
  margin-bottom: 5px;
  display: block; 
text-transform: uppercase;}

.gallery-teaser-wrap .teaser-banner .disclaimer {
  display: block;
  font-size: 0.5em;
  font-style: italic;
  color: #767369; }

.gallery-teaser-img { margin: 20px auto; }





/* Galery Filters */

#Sidebar.gallery-list-filters {
  width: 240px;
  float: left;
  line-height: 1.3;
  margin: 10px;
  padding-top: 0;
  background-image: none;
}

.gallery-list-filters .inner { margin: 0; }

.gallery-list-filters .inner-body { background-color: transparent;  }

.gallery-list-filters form {
  opacity: inherit;
  filter: inherit; }

.gallery-list-filters .gallery-filter-row { border-bottom: 1px solid #dedede; }

.gallery-list-filters .gallery-filter-row.active { border-bottom: none; }


  
.gallery-list-filters h4 {
  margin: 0;
  padding: 0.7em 0 0.5em 0;
  font-size: 0.8em;
  line-height: 1;
  color: #76854f;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 1px solid #fff; }

.gallery-list-filters ul {
  margin: 0;
  padding: 0; }

.gallery-filter-current-active { display: none; }

.gallery-list-filters ul li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none; }

.gallery-list-filters ul li input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: -100px; }


.gallery-list-filters ul li label {
  display: block;
  font-size: 0.95em;
  line-height: 1.8;
  padding: 10px;
  text-align: left;
  letter-spacing: 0; }


.gallery-list-filters ul.gallery-filter-optlist li.active,
.gallery-list-filters ul.gallery-filter-optlist li label:hover {
  cursor: default;
  background-color: #fff; }

.gallery-list-filters ul.gallery-filter-optlist li.active,
.gallery-list-filters ul.gallery-filter-optlist li label:hover input[type="radio"] {
  cursor: pointer;
  background-color: #fff; }
  
.gallery-patient-details li.patient-detail .patient-meta .click-to-remove .uncheck {
  display: inline-block;
  margin: 0em;
  padding: 3px 2px 0px 2px;
  color: #FFF;
  font-size: 0.9em;
  line-height: 1;
  vertical-align: text-bottom;
  text-align: center;
  letter-spacing: 0px;
  background: #f0e4f5; }

.gallery-patient-details li.patient-detail .patient-meta .click-to-remove:hover .uncheck { color: #656565; }


.gallery-list-filters .gallery-filter-row h5 {
  margin: 0;
  padding: 0.3em 0 0.2em 0;
  font-size: .8em;
  text-align: left;
  text-transform: uppercase;
  line-height: 1; }

.gallery-list-filters .gallery-filter-row:first-child h5 { padding-top: 0; }
  
.gallery-list-filters .gallery-filter-row.active h5 { border-top: none; }

.gallery-list-filters .gallery-filter-row.active h5 {  }



.gallery-list-filters .gallery-filter-row h5 a {
  color: #956c87;
  text-decoration: none;
 }
.resetfilters a {
	font-size: 10px;
	color: #000;
	margin-top: 20px;
}
.gallery-list-filters .gallery-filter-row h5 a:hover .label { text-decoration: underline; }

.gallery-list-filters .gallery-filter-row h5 .label { vertical-align: middle; font-size: 10px!important; color: #000!important; line-height: 2.5; }

.gallery-list-filters .gallery-filter-row h5 .raquo {
  display: inline-block;
  height: 14px;
  line-height: 1.8em;
  vertical-align: middle;
  /*font-size: 1.2em;*/
	vertical-align: middle;
	float: right;
  color: #000;
  text-indent: 0;
  margin-left: 2px;}

/*.gallery-list-filters .gallery-filter-row.active h5 .raquo {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}
*/

.gallery-list-filters .gallery-filter-row .gallery-filter-optlist {
  display: none;
  font-size: 0.5em;
  overflow: auto; }

.gallery-list-filters .gallery-filter-row.active .gallery-filter-optlist {display: block; }

.gallery-list-filters .gallery-filter-row.patient-gender.active ul { margin-top: 10px; }


.gallery-list-filters ul.gallery-filter-optlist li {
  position: relative;
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 0px 0;
  color: #2a2929;
  text-align: right;
  background-color: #fff;
  overflow: hidden; }


.gallery-list-filters ul.gallery-filter-optlist li.even { margin-right: 0; font-size: 11px!important;}

.gallery-list-filters ul.gallery-filter-optlist li.odd { font-size: 11px!important; }

/*applied fix for first item not sizing on initial view*/

.gallery-list-patient-img { height: 140px!important; overflow: hidden!important; }

.double{ height: 150px!important; overflow: hidden!important; 
vertical-align: bottom!important}

/*applied fix for first item not sizing on initial view*/
input[type='radio'] {
    -webkit-appearance:none;
    width:12px;
    height:12px;
    border:1px solid darkgray;
    border-radius:50%;
    outline:none;
    box-shadow:0 0 5px 0px gray inset;
}
input[type='radio']:hover {
    box-shadow:0 0 5px 0px orange inset;
}
input[type='radio']:before {
    content:'';
    display:block;
    width:60%;
    height:60%;
    margin: 20% auto;    
    border-radius:50%;    
}
input[type='radio']:checked:before {
    background:#a34a82;
}

.gallery-list-filters ul.gallery-filter-optlist.age li { width: 67px; }



.gallery-list-filters ul.gallery-filter-optlist li.gallery-filter-split {
  display: block;
  width: auto;
  margin: 0 0 3% 0;
  padding: 7px 0;
  text-indent: 0px;
  float: none;
  clear: both;
  font-size: 1.4em;
	font-weight: bold;
  text-align: left;
  letter-spacing: 0.05em;
  line-height: 1;
    background-color: #fff;
  text-transform: uppercase; }

li.gallery-filter-split.active{
  background-color: #f0eaee!important;
  }



.gallery-list-filters .procedures ul.gallery-filter-optlist li.gallery-filter-split {
  cursor: pointer;
}

.gallery-list-filters .procedures ul.gallery-filter-optlist li.gallery-filter-split .raquo {
    display: inline-block;
    font-size: 12px;
	line-height: 9;
    text-indent: 0;
    text-align: right;
}
.gallery-filter-row .plus {
    display: inline-block;
    font-size: 12px;
    text-indent: 0;
	    text-align: right;
    background-image: url(../plus.png);
    background-position: center right;
    background-size: contain;
	background-color: #fff!important;
    background-repeat: no-repeat;
	margin-top: 5px;
}
.gallery-filter-row.active .plus  {
    display: inline-block;
    font-size: 12px;
    text-indent: 0;
    text-align: right;
    background-image: url(../minus.png);
    background-position: center right;
    background-size: contain;
	background-color: #fff!important;
    background-repeat: no-repeat;
}


.gallery-list-filters .procedures ul.gallery-filter-optlist li.gallery-filter-split.active .raquo {
  position: relative;
  top: 1px;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); }

.gallery-list-filters .submit {
  background-color: #3AB8E9;
  display: block;
  border: none;
  line-height: 1;
  padding: 0 0;
  color: #fff;
  text-transform: uppercase;
  text-shadow: -1px -1px 0px #4899B8;
  border-radius: 4px;
  margin: 0.5em 0 0 auto;
  font-size: 0.9em;
  letter-spacing: 1px; }
  
.gallery-list-filters .submit:hover { background-color: #37abd6; }



/* Gallery Page Numbers */

.gallery-list-patients-wrap .gallery-controls {
  margin-top: 25px;
  text-align: right;
  text-transform: uppercase;
  color: #00467f;
  opacity: inherit;
  filter: inherit;
}

.gallery-list-patients-wrap .gallery-controls .page-overview,
.gallery-list-patients-wrap .gallery-controls ul {
  display: inline-block;
  vertical-align: middle;
}

.gallery-list-patients-wrap .gallery-controls ul {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.gallery-list-patients-wrap .gallery-controls ul li {
  display: inline-block;
  margin: 0 0 0 5px;
  padding: 0;
  text-align: center;
  list-style-type: none;
  width: auto;
  height: auto;
}

.gallery-list-patients-wrap .gallery-controls ul li a,
.gallery-list-patients-wrap .gallery-controls ul li span,
.gallery-list-patients-wrap a.see-all {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.2em;
  color: #835f77;
  line-height: 1;
  text-decoration: none; }

.gallery-list-patients-wrap a.see-all {
  width: auto;
  padding: 0.2em;
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1; }

.gallery-list-patients-wrap .gallery-controls ul li .current,
.gallery-list-patients-wrap .gallery-controls ul li a:hover,
.gallery-list-patients-wrap a.see-all:hover {
  color: #94459c;
  text-decoration: underline; }







/* Single Patient */

body.gallery-patient { position: static; }

.gallery-patient .content {
  background-color: #fff;
  overflow: hidden; 
padding: 15px;}


.gallery-patient .gallery-head {
  min-height: 0;
  margin: 20px 0;
  overflow: visible; }

.gallery-patient .gallery-patient-nav {
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  line-height: 0;
  position: relative;
  z-index: 1; }

.gallery-patient .gallery-patient-nav.next-only { text-align: right; }

.gallery-patient .gallery-patient-nav:after {
  display: inline-block;
  content: '';
  width: 100%; }

.gallery-patient .gallery-patient-nav a {
  display: inline-block;
  margin: 0;
  text-align: center;
  list-style-type: none;
  font-size: 1.2em;
  width: auto;
  height: 1.8em;
  line-height: 1.8;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: middle;
  color: #835f77; }

.gallery-patient .gallery-patient-nav a:hover { text-decoration: underline; }


.gallery-patient .gallery-head .laquo,
.gallery-patient .gallery-head .raquo,
.gallery-patient .gallery-foot .laquo,
.gallery-patient .gallery-foot .raquo { letter-spacing: -2px; }


.gallery-patient .content h2 {
  font-size: 2.4em;
  color: #33859c;
  margin-bottom: 0.4em;
  padding-bottom: 0.15em;
  border-bottom: 1px solid #aec5d1;
}


.gallery-patient .patient-fav-controls {
  display: block;
  margin-bottom: 10px;
  text-align: right;
}


.gallery-patient .patient-info { }

.gallery-patient .patient-favorite.gallery-favorite-wrap {
  position: relative;
  overflow: hidden; }

.gallery-patient .gallery-favorite-wrap .patient-favorite-chkbox {
  position: absolute;
  top: -50px;
  left: -50px;
  visibility: hidden; }

.gallery-patient a.patient-favorite-link {
  outline: none;
  color: #a39b72;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-right: 35px; }

.gallery a.patient-favorite-link:hover { text-decoration: underline; }

.gallery a.patient-favorite-link::before {
  content: ' ';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  background-image: url('../images/sprite-favs-heart.png');
  background-repeat: no-repeat;
  background-position: left top;
  overflow: hidden;
  vertical-align: middle; }

.gallery a.patient-favorite-link.view::before,
.gallery a.patient-favorite-link.remove::before { background-position: 100% top; }


.gallery-patient .gallery-head a.view-favs {
  outline: none;
  color: #dcb959;
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0.03em;
}

.gallery-patient .gallery-head a.view-favs:hover { color: #a39b72; }




.gallery-patient .patient-info h1 {
  margin-bottom: 0;
  font-size: 1.85em;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #000; }

.gallery-patient .patient-info h1 a { text-decoration: none; }

.gallery-patient .patient-info h1 a:hover { text-decoration: underline; }

.gallery-patient .patient-detail-wrapper { }



#Sidebar #ContactMiniForm.sidebar-widget-wide { width: auto; }



.gallery-patient .patient-photos-and-desc {
  background-color: #fff;
  overflow: hidden; }

.gallery-patient .patient-photos {
width: calc(100% - 29px);
  max-width: 920px;
  float: left;
  margin: 20px 15px;
z-index: 99999}

.gallery-patient .patient-photos .inner {
  max-width: 100%;
  margin: 0; }



.gallery-patient .patient-photos .patient-main-img {
  display: block;
  margin-bottom: 6px;
  line-height: 0;
  background-color: #aea59d; }

.gallery-patient .patient-photos .patient-main-img img {
  vertical-align: top;
  max-width: calc(50% - 2.5px); }

.gallery-patient .patient-photos .patient-main-img img:first-child { margin-right: 5px; }

.gallery-patient .patient-photos .photo-wrap li .patient-main-img img {
  width: auto;
  max-width: 100%;
  margin: 0 auto; }




.gallery-patient .patient-photos .photo-wrap {
  margin: 0;
  padding: 0;
  text-align: left; }

.gallery-patient .patient-photos .photo-wrap li {
  display: inline-block;
  margin: 0 5px;
  padding: 0;
  line-height: 0; }

.gallery-patient .patient-photos .photo-wrap li a {
  display: block;
  outline: none; }

.gallery-patient .patient-photos .photo-wrap li img {
  max-width: 90px;
  height: auto;
  opacity: 0.55; }

.gallery-patient .patient-photos .photo-wrap li.current img {
  opacity: 1;
  border: 3px solid #bfa3b4;
  margin: 0px -3px -3px -3px; }

.gallery-patient .patient-details {
  display: block;
  margin: 5px 0; }

.gallery-patient .patient-details .meta-detail strong {
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.2em;
   }

.gallery-patient .patient-details .col-one,
.gallery-patient .patient-details .col-two {
  display: inline-block;
  vertical-align: top; }

.gallery-patient .patient-details .col-one { width: 30%; }

.gallery-patient .patient-details .col-two { width: 70%; }

.gallery-patient .patient-details .meta-detail { display: inline-block; text-transform: capitalize; font-size: 14px;}

.gallery-patient .patient-photos .photo-wrapper .print-imgs { display: none; }



.gallery-patient .patient-photos-and-desc .patient-favorite {
  background-color: #e4e5e5;
  display: block;
  text-transform: uppercase;
  color: #fff;
  font-size: 0.8em;
  line-height: 1;
  overflow: hidden; }

.gallery-patient .patient-photos-and-desc .patient-favorite .patient-favorite-link {
  display: inline-block;
  color: #856f65;
  margin-right: 10px;
  padding: 5px 0;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.gallery-patient .patient-photos-and-desc .patient-favorite .patient-favorite-link:hover { 
  color: #635550;
  text-decoration: underline; }



.gallery-patient #Sidebar {
width: 271px;
  float: right;
  margin: -5px 15px 0 0;
}


.gallery-patient #Sidebar #ContactMiniForm { width: 100%; }

.gallery-patient #Sidebar #ContactMiniForm h4 {
  width: auto;
  
  left: auto;
  margin: 0 10px;
  text-align: center;
  text-shadow: 0px 2px 3px rgba(0,0,0,0.2);
}

.gallery-patient #Sidebar #ContactMiniForm h5 {
   font-style: italic;
  font-weight: normal;
  color: #835f77;
  font-size: 13px;
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.05em;
}

.gallery-patient #Sidebar .wpcf7 {
  margin: 10px;
  box-sizing: border-box;
  width: auto; }

.gallery-patient #Sidebar #ContactMiniForm form,
.gallery-patient #Sidebar #ContactMiniForm form .text-row,
.gallery-patient #Sidebar #ContactMiniForm form .textarea-row,
.gallery-patient #Sidebar #ContactMiniForm form .checkbox-row {
  width: 100%;
  display: block;
  left: auto;
  box-sizing: border-box;
  right: auto;
}

.gallery-patient #Sidebar #ContactMiniForm form select {}






/* GALLERY CONTACT FORM */

.gallery-patient #Sidebar {
  width: 270px;
}












.gallery-patient .photo-disclaimer {
  margin: 0;
  color: #a69e9c;
  text-transform: uppercase;
  font-style: italic;
  font-size: 0.7em;
  text-align: center;
  letter-spacing: 0.07em; }

.gallery-patient .patient-description {
  margin: 20px 0;
  clear: both;
  float: none;
  text-align: left; }


.gallery-patient .patient-description h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.4em;
  color: #6e9a4e;
  border-bottom: 0; }


.gallery-patient .patient-description p:first-of-type { margin-top: 0; }


.gallery-patient .gallery-foot {
  text-align: center;
  line-height: 0;
  margin: 15px 0;
  font-size: 0.9em; }

.gallery-patient .gallery-foot:after {
  display: inline-block;
  content: '';
  width: 100%; }

.gallery-patient .gallery-foot a {
  display: inline-block;
  margin: 0;
  text-align: center;
  width: auto;
  line-height: 1.8;
  text-transform: uppercase;
  vertical-align: middle; }







/* Gallery Favorites */

.gallery-favs #PageBody {
  display: block;
}

.gallery-favs .content {
  overflow: hidden;
  margin: 20px;
  width: auto;
}

.gallery-favs .gallery-head { text-align: justify; }

.gallery-favs .gallery-head:after {
  content: "";
  display: inline-block;
  width: 100%; }

.gallery-favs .gallery-head h1 {
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
  color: #766058; }

.gallery-favs .gallery-head .gallery-link {
  display: inline-block;
  vertical-align: middle;
  border: none; }

.gallery-patient .gallery-head a.gallery-back {
  display: block;
  position: relative;
  line-height: 1;
  letter-spacing: 0.8px;
  margin-top: -1.9em;
  z-index: 5;
  width: 27%;
  margin-left: auto;
  margin-right: auto;
  color: #b09bac;
  text-transform: uppercase; }

  .gallery-patient .gallery-head a.gallery-back.no-nav { margin-top: 0; }

.gallery-favs .gallery-list-patients-wrap {
  float: none;
  width: auto; }

.gallery-favs .gallery-list-patients li { max-width: 268px; }



.gallery-favs .gallery-list-patients li.even { margin-right: 0px; }

.gallery-favs .gallery-list-patients li:nth-child(3n+3) { margin-right: 0; }









/* ==========================================================================
   CAKEBOX
   ========================================================================== */

.cakebox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background-image: url('../images/cakebox-overlay.png');
  background-repeat: repeat;
  background-position: center center;
  z-index: 100; }

.cakebox-content-wrap {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 105; }

.cakebox-head {
  position: relative;
  text-align: right;
  z-index: 10;
  width:75px;
  margin: 0 10px 0 0;
  float: right;
  padding: 5px 0; }

.cakebox-close { margin-right: 10px;}

.cakebox-content {
  position: fixed;
  top: 10%;
  left: 0;
  right: 0;
  display: block;
  max-width: 980px;
  max-height: 85%;
  height: 100%;
  margin: 0 auto;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  box-sizing: border-box; }


.cakebox-content-inner {
  height: calc(100% - 35px);
  margin: 10px 0 0 0;
  line-height: 0; }

.cakebox-content .inner img {
  display: inline-block;
  width: auto;
  max-width: 48%;
  max-height: 100%;
  height: auto; }

.cakebox-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; }

.cakebox-nav a {
  display: block;
  position: absolute;
  height: 100%;
  width: 15%;
  top: 0;
  line-height: 1;
  text-decoration: none;
}

.cakebox-nav a:hover { text-decoration: underline; }

.cakebox-nav .next,
.cakebox-nav .prev {
  text-align: center;
  width: 75px;
  height: 75px;
  background: #ccc;
  position: absolute;
  top: 40%;
  border: 1px #fff solid;
  border-radius: 10px;
  opacity: 0.35;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=35);
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=35);
  filter:alpha(opacity=35);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3); }
  
.cakebox-nav .next:hover,
.cakebox-nav .prev:hover {
  background: #666;
  opacity: 0.90;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=90);
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=90);
  filter:alpha(opacity=90); }
  
.cakebox-nav .prev { left: 10px; }

.cakebox-nav .next { right: 10px; }

.cakebox-nav a .link {
  display: block;
  font-size: 1.3em;
  font-weight: bold;
  letter-spacing: -2px;
}

.cakebox-nav a:hover {
  text-decoration: none;
}

.cakebox-nav .next .link,
.cakebox-nav .prev .link {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  color: #fff; }



  
/* ==========================================================================
   MOBILE QUERIES
   ========================================================================== */
  





@media (max-width:970px) {

  .gallery-head {
    margin-bottom: 10px;
    text-align: center; }


  /*.gallery-teaser-wrap .teaser-banner em { display: none; }*/


  .patient-extras.sidebar {
    display: block;
    max-width: 295px;
  }

  .gallery-patient .patient-photos,
  .patient-extras.sidebar {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    float: none; }


  .gallery-patient .patient-info {
    float: none;
  }

  .gallery-list-patients-wrap {
    float: none;
    width: auto; }

  .gallery-list-patients {
    text-align: center;
  }

  .gallery-list-patients li {
    float: none;
    display: inline-block;
    vertical-align: top;
  }

  .gallery-list-filters {
    float: none;
    max-width: 310px;
    width: auto;
    margin-left: auto;
    margin-right: auto; }

  
} /* max-width:970px */








@media (max-width:862px) {

  .gallery-patient #Sidebar {
    background-image: none;
    display: block;
    width: auto;
    float: none;
    text-align: center; 
	background-color: #fff!important;}

  .gallery-patient #Sidebar #ContactMiniForm { max-width: 270px; }


  .gallery-list-patients li {
    margin-left: 0;
    margin-right: 0;background-color: #fff!important; }
	
	.gallery-list-patients li.even {margin-right: 0px!important; }

} /* max-width:862px */








@media (max-width:620px) {


  .gallery-patient .patient-photos {
    margin-left: 10px;
    margin-right: 10px;

  }
	.mobileleft{
		float: left!important;
	}
	
		.mobileright{
		float: right!important;
	}
  #Content.gallery-list-patients-wrap,
  #Sidebar.gallery-list-filters {
    float: none;
    width: auto;
    margin: 0 10px;
  }

  #Sidebar.gallery-list-filters {
    margin: 30px auto;
    max-width: 90%; }

} /* max-width:620px */






@media (max-width:540px) {

  .gallery-patient .gallery-head a.gallery-back {
    width: auto;
    margin-top: 0;
  }

} /* max-width:540px */



