/*
  Theme Name: IDW Child Theme 2022
  Description: Custom Theme for
  Author: Infinity Dental Web
  Author URI: https://www.infinitydentalweb.com
  Version: 2.0
 	License: GPL-2.0+
	License URI: http://www.opensource.org/licenses/gpl-license.php
*/

:root {
	--primary-color: #003399;
  --secondary-color: #003399;
  --resp-header-height: 130px;
}

body {
    background-color:#fff;
    color:#505050;
	  font-size:1.6rem;
    line-height: 3.1rem;
    font-family:'Lato', sans-serif;
}

section {
	line-height: 1;
  position: relative;
}

h1, h2, h3, h4, h5, p, ul {
	margin-top: 0;
}

p {
	line-height: 3.1rem;
	margin: 0 0 3.1rem;
}

figcaption{
  text-align: center;
}



/*
* Base CSS for Search Functionality
* Last Update: 2022-11-11
*/


/* Search icon - color and position as needed */
.search-icon {
  display: block;
  position: absolute;
  right: 45px;
  top: 60px;
  transform:translateY(-50%);
  z-index: 2;
  transition:.4s ease-in all;
}

.stuck .search-icon {}

.search-icon {
  color:#222;
  cursor: pointer;
}

.search-icon i {
  font-size:22px;
}

.search-icon svg {
  width:50px!important;
  height:50px;
}


/* Search overlay - color as needed */
.search-overlay {
  position:fixed;
  top: 0;
  bottom:0;
  left:0;
  right:0;
  z-index: 9999999999990;
  background: rgba(255,255,255,.9);
  width:100%;
  height:0;
  display:flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  transition:.4s ease-in all;
  opacity: 0;
  
}

.search-overlay.active {
  height:100%;
  opacity:1;
}

.search-close {
  position: absolute;
  right:3.3rem;
  top:5.2rem;
  color:#222;
  font-size:36px;
  font-weight:bold;
  cursor: pointer;
}


/* Search overlay form - color as needed */
.search-overlay > form {
  display:flex;
  width:100%;
  max-width:640px;
  justify-content: space-between;
  align-items: stretch;
}

.search-overlay > form > input {
  width:100%;
  background:transparent;
  border:none;
  border-bottom:1px solid #222;
  font-size:24px;
  color:#222;
  padding:20px;
}

.search-overlay > form > button {
  width:200px;
  margin-left:20px;
  font-size:20px;
  font-weight:700;
  letter-spacing:2px;
  text-transform: uppercase;
  background:#222;
  color:#fff;
  border:none;
  border-radius:6px;
  cursor: pointer;
}

.search-overlay > form > button:hover {
  background:#fff;
  color:#222;
}


/* Mobile search form - style and color as needed */
.mobile-search-form {
  display:flex;
  width:100%;
  max-width:100%;
  justify-content: space-between;
  align-items: stretch;
}

.mobile-search-form > input {
  width:100%;
  background:rgba(255,255,255,.2);
  border:1px solid #eee;
  font-size:18px;
  color:#fff;
  padding:8px;
  font-weight:400;
}

.mobile-search-form > button {
  width:120px;
  margin-left:20px;
  font-size:18px;
  font-weight:400;
  letter-spacing:2px;
  text-transform: uppercase;
  color:#fff;
  border:none;
  border-radius:3px;
  cursor: pointer;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #fff;
  opacity: .7; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #fff;
  opacity: .7;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: #fff;
  opacity: .7;
}

.icon-color {
  fill:#039;
}


/*------------------------- Custom styles ----------------------------------*/

/* Base / General */

.large-heading {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 1px;
  font-family: 'Roboto';
}
.small-heading {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-family: 'Montserrat';
}
p {
  font-size: 15px;
  line-height: 2.13;
  letter-spacing: .6px;
  font-family: 'Roboto';
}
.button {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  padding: 2.6rem 2rem;
  font-family: 'Montserrat';
}
.light {
  color: #fff;
}
.dark {
  color: #232323;
}
section {
  margin-top: -.3rem;
}
.current-menu-item {
  border-bottom: none!important;
}
/* Header */

header {
  position: absolute;
  top: 0;
  z-index: 2;
  max-width: 1940px;
  margin: 0 auto;
  color: #f5f5f5;
}
.nav-container {
  display: block;
  position: relative;
  /* position: sticky;
  top: 0; */
  height: 100%;
  /* background: white;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}
.header-phone {
  position: absolute;
  left: 4.2rem;
  top: 3.5rem;
  width: 50%;
  font-size: 16px;
  line-height: 1.33;
  letter-spacing: .36px;
  color: #f5f5f5;
  font-family: 'Roboto';
}
.phone-number a {
  position: relative;
  z-index: 99;
  text-decoration: none;
  color: inherit;
  left: 6rem;
}
.phone-number img {
  position: absolute;

}
.header-wrap {
  display: flex;
  position: absolute;
  right: 4.2rem;
  top: 3.5rem;
  width: 50%;
  column-gap: 1.52rem;
  justify-content: flex-end;
  z-index: 2;
  font-size: 16px;
  line-height: 1.33;
  letter-spacing: .36px;
  color: #f5f5f5;
  font-family: 'Roboto';
}
header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2rem;
  z-index: 1;
  /* transition: inset 0.6s ease; */
}
header .logo img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* width: 228px; */
  height: 171px;
  /* max-width: 228px; */
  transition: block-size 0.6s ease, inline-size 0.6s ease;
}


.nav-primary #menu-main-menu-right > li > a:hover, .nav-primary #menu-main-menu > li > a:hover {
  color: #ccbfaf;
}
.menu li {
  font-size: 14px;
  letter-spacing: 2.8px;
  font-family: 'Montserrat';
  text-transform: uppercase;
}
.hero-container {
  position: absolute;
  top: 55%;
  left: 30%;
  transform: translate(-48%, -50%);
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}
.hero-card .large-heading span {
  font-weight: 600;
}
.hero-card .large-heading {
  margin-bottom: 2.9rem;
  letter-spacing: .84px;
}
.hero-card p {
  margin-bottom: 4.2rem;
  font-size: 16px;
}
.hero-card .button {
  background: #fff;
  max-width: 320px;
}

/* Meet the Doctor */

.doctor {
  /* background-image: url('./images/dr-david-wickness-background-homepage.webp');
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 38.5rem; */
}
.doctor-container {
  position: absolute;
  top: 50%;
  left: 31%;
  transform: translate(-50%, -50%);
  /* max-width: 1180px;
  margin: 0 auto; */
}
.doctor-card {
  /* position: relative;
  width: 50%;
  display: flex;
  flex-direction: column; */
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  color: #232323;
}
.doctor-card h1 {
  margin-bottom: 2.2rem;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-family: 'Montserrat';
}
.doctor-card ul {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  gap: 1rem;
  font-size: 15px;
  font-family: 'Roboto';
  list-style: none;
}
.doctor-card ul li {
  line-height: 1.9;
}
.doctor-card ul li::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  position: absolute;
  left: -3rem;
  top: 1.4rem;
  background-color: #1c1c1c;
}
.doctor-card .large-heading {
  font-size: 38px;
  margin-bottom: 2.9rem;
  letter-spacing: .72px;
}
.doctor-card .large-heading span {
  font-weight: 600;
}
.credentials {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #232323;
  max-width: 650px;
}
.credentials-left {
  border-right: 1px solid #232323;
  width: 50%;
}
.credentials-left, .credentials-right {
  display: flex;
  padding-top: 2rem;
}
.credentials p {
  margin-bottom: 0;
}
.credentials-right {
  margin-right: 1rem;
}
.credentials-left {
  padding-top: 5px;
}
.credentials-left img {
  height: 79px;
  margin-right: 2rem;
}
.credentials-right img {
  width: 73px;
  height: 55px;
  margin-right: 2rem;
}
.doctor-buttons {
  display: flex;
  gap: 1.8rem;
  padding-top: 4rem;
}
.doctor-buttons .button {
  position: relative;
  padding: 2.8rem 3rem;
  background-color: #232323;
}
.doctor-buttons a:nth-child(2) {
  padding-right: 8rem;
}
.doctor-buttons a:nth-child(2)::before {
  content: "";
  position: absolute;
  bottom: 1.7rem;
  left: 20rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #646569;
}
.doctor-buttons a:nth-child(2)::after {
  content: "";
  position: absolute;
  transform: translateY(3%);
  left: 21.6rem;
  font-size: 2.4rem;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #fff;
}

/* Home Page - Smile Gallery */

.smile-gallery-container {
  position: absolute;
  top: 50%;
  left: 26%;
  transform: translate(-50%, -50%);
}
.smile-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}
.smile-card .small-heading {
  margin-bottom: 2rem;
}
.smile-card .large-heading {
  font-size: 3.8rem;
}
.smile-card .large-heading span {
  font-weight: 600;
}
.smile-card .large-heading::after {
  display: flex;
  position: relative;
  content: "";
  background-color: #fff;
  height: 77px;
  width: 1px;
  top: 2rem;
  left: 50%;
}
.smile-card p {
  margin-top: 4rem;
  font-size: 19px;
}
.smile-card .button {
  background: #fff;
  padding: 2.8rem 4rem;
  max-width: 256px;
}

/* Home Page - Testimonials */

.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('./images/testimonials-background.webp');
  padding: 8rem 0 0;
  text-align: center;
  background-size: cover;
}
.testimonials-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  top: 50%;
  margin-bottom: 5rem;
}
.testimonials-heading .small-heading {
  margin-bottom: 2rem;
}
.testimonials-heading .large-heading {
  font-size: 3.8rem;
  letter-spacing: .72px;
}
.testimonials-heading .large-heading span {
  font-weight: 600;
}
.testimonials-container {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  /* margin-left: 20rem; */
  padding-bottom: 5rem;
  width: 100%;
  max-width: 1550px;
}
.testimonials-video-slider .item img {
  padding-bottom: 1rem;
}
.testimonials-video-slider .item .button {
  position: relative;
  bottom: 2.5rem;
  padding: 2.6rem 4rem;
  padding-right: 8rem;
  background-color: #232323;
}
.testimonials-video-slider .item .button::before {
  content: "";
  position: absolute;
  bottom: 1.7rem;
  left: 18rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #646569;
}
.testimonials-video-slider .item .button::after {
  content: "";
  position: absolute;
  transform: translateY(25%);
  left: 19.6rem;
  font-size: 2.4rem;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #fff;
}
.testimonials-video-slider {
  height: auto;
}
.video-container .owl-stage {
  height: auto;
}
.video-container item {
  height: auto;
}
.video-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 48%;
  height: auto;
}
/* .text-container {
  max-width: 34%;
} */
.text-container {
  max-width: 50%;
}
.text-container .slider-control {
  justify-content: center;
}
.video-container .owl-item {
  
}
.testimonials-container {
  justify-content: center;
  gap: 4rem;
}
/* .text-container .item {
  width: 100%;
} */

.slider-control {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  font-weight: 600;
}
.prev-btn, .next-btn {
  all: unset;
  position: relative;
  padding: 0 0 1.5rem;
  font-weight: 500;
  font-family: 'Montserrat';
  font-size: 12px;
  letter-spacing: 2.88px;
  line-height: normal;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  color: #232323;
  font-size: 13px;
  font-weight: 600;
}
.prev-btn::before, .next-btn::before {
  position: absolute;
  content: "";
  width: 9.5rem;
  top: 2.6rem;
  right: 0;
  height: 2px;
  background-color: #232323;
}
.prev-btn:hover:before, .next-btn:hover:before {
  background-color: #88644e;
}
.prev-btn:hover:after {
  border-right: 4px solid #88644e;
}
.next-btn:hover:after {
  border-left: 4px solid #88644e;
}
.next-btn::before {
  left: 0;
}
.prev-btn::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 4px solid #232323;
  top: 2.6rem;
  right: 9.5rem;
  transform: translateY(-38%);
}
.next-btn::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 4px solid #232323;
  top: 2.6rem;
  left: 9.5rem;
  transform: translateY(-38%);
}
.text-inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem;
  color: #232323;
}
.text-inner-container p {
  text-align: left;
  font-size: 19px;
}
.text-container .item {
  border: 1px solid #232323;
}
.more-reviews {
  display: flex;
  border-top: 1px solid #232323;
}
.more-reviews a .icon:hover {
  filter: brightness(0) saturate(100%) invert(34%) sepia(4%) saturate(5199%) hue-rotate(339deg) brightness(110%) contrast(70%);
}
.text-extra {
  width: 100%;
}
.text-extra p, .text-extra .more-reviews {
  font-size: 15px;
}
.text-extra span {
  font-weight: 600;
}
.reviews-left {
  border-right: 1px solid #232323;
  width: 37%;
}
.reviews-left, .reviews-right {
  display: flex;
  padding-top: 2rem;
}
i.icon {
  position: relative;
  top: 2px;
  width: 15px;
  height: 15px;
}
.reviews-right {
  text-wrap: nowrap;
  padding-left: 2rem;
}
.reviews-right a {
  text-decoration: none;
  color: inherit;
}
.reviews-right i+span {
  margin: 0 1rem 0 2rem
}
.underline {
  text-decoration: underline;
  font-size: 14px;
}
.reviews-right img {
  margin-right: 1rem;
}

/* Home Page - Services */

.services picture::after {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(4, 5, 6, 0), rgba(24, 29, 36, 0.3) 99%);
  content: "";
}
.services .abs {
  display: block;
}
.abs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0;
  transition: 0.5s ease all;
}
.abs.show {
  opacity: 1;
}
.services .item, .services .owl-stage-outer, .services .owl-stage {
  height: 100%;
}
.service-slider {
  display: flex!important;
  width: 100%!important;
  position: absolute!important;
  top: 0!important;
  height:100%!important;
  z-index: 3!important;
}
.services .item {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 0 6rem 5rem;
  max-width: 25%;
  width: 100%;
  border-left: 1px solid rgba(255, 255, 255, .4);
  border-bottom: 1px solid #fff;
}
.services .item p {
  margin-top:2rem;
}
.services .item.focused p, .services .item:hover p  {
  display: block;
}
.services .item:hover, .services .item.focused {
  background-color: rgba(38, 55, 73, 0.85);
  color: #000;
}
.services .item:hover .text-container, .services .item.focused .text-container  {
  color: white;
}
.touch .service-slider .item:hover a.button, .touch .service-slider .item.focused a.button, .touch .service-slider .active-slide .item a.button {
  display:block;
}
.services .item.focused p, .services .item:hover p  {
  display: block;
}
.services .item:hover, .services .item.focused {
  background-color: rgba(38, 55, 73, 0.85);
  color: white;
}
.services .item:hover .text-container, .services .item.focused .text-container  {
  color: white;
}
#service-bg {
  display: block;
}
.service-slider .text-container .larger-text .large-heading {
  font-size: 28px;
}
.service-slider .text-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  font-size: 28px;
  font-weight: lighter;
  max-width: 100%;
}
.service-slider .text-container p {
  font-size: 14px;
}
.service-slider .text-container .number {
  font-family: 'Roboto';
  margin-bottom: 4.5rem;
}
.services .slider-buttons {
  display: none;
}
.item a {
  text-decoration: none;
}
/* Home Page - Office Slider */

.office {
  background-color: #fff;
}
.office-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.office-slider {
  padding: 5rem 0;
  /* width: 100%;
  max-width:73rem; */
}
.slider-card {
  position: absolute;
  height: 50rem;
  width: 40rem;
  background-color: #fff;
  opacity: .89;
  z-index: 3;
  top: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  text-align: center;
  /* gap: 4rem; */
  background: linear-gradient(to left, rgba(255,255,255,.6), rgba(255,255,255,.9), rgba(255,255,255,.6));
}
.slider-card .small-heading {
  margin-bottom: 1.4rem;
}
.slider-card .large-heading {
  margin-bottom: 2rem;
  font-size: 38px;
  font-weight: bold;
  letter-spacing: .72px;
  color: #232323;
}
.slider-card ul {
  list-style: unset;
  padding-left: 0;
}
.slider-card ul li {
  text-align: left;
  margin: 2rem 0;
}
.slider-card ul li::before {
  display: none;
}
.slider-card p {
  color: #232323;
}
.office .office-slider .owl-stage-outer {
  overflow:visible;
}
.testimonials-slider .item {
  position: relative;
}
.office-container .slider-buttons {
  display: flex;
  gap: 3rem;
  /* position: absolute;
  bottom: 26rem; */
  z-index: 3;
}
.owl-carousel .owl-item img {
  display: block;
  width: 100%;
}
/* Footer */

footer {
  background-image: url('./images/footer-background.webp');
  background-size: cover;
  position: relative;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1440px;
}
footer .logo {
  all: unset;
  position: relative;
  top: 9rem;
}
.footer-address {
  font-family: 'Roboto';
  font-size: 40px;
  font-weight: lighter;
  color: #fff;
  margin-top: 17rem;
}
.footer-address div {
  line-height: 1.5;
}
.footer-address a {
  color: inherit;
  text-decoration: none;
}
footer .small-heading {
  color: #fff;
  margin: 6.8rem 0 1.2rem 0;
}
.hours {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #fff;
  font-family: 'Roboto';
  font-weight: lighter;
}
.day {
  border: 1px solid #566371;
  width: 170px;
  padding: 1.4rem 0;
  font-family: 'Roboto';
  font-size: 15px;
}
footer .button {
  background: #fff;
  margin-top: 5.5rem;
  padding: 1.8rem 3.9rem;
}
#menu-footer {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: 3.3px;
  font-family: 'Montserrat';
  text-transform: uppercase;
  gap: 1rem;
  padding-left: 0;
  margin-top: 4rem;
  text-decoration: none;
}
#menu-footer a {
  font-size: 1rem;
  font-weight: 200;
  color: #fff;
}
#menu-footer a:hover {
  color: #88644e;
}
.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid;
  height: 7.8rem;
  color: #687480;
}
.copyright {
  margin-left: 5rem;
}
.copyright p {
  font-size: 14px;
  text-align: center;
  margin: 0 auto;
}
.copyright a {
  color: #f5f5f5;
  text-decoration: underline;
}
.footer-icons {
  position: relative;
  display: flex;
  justify-content: space-around;
  height: 3.4rem;
  width: 3.4rem;
  right: 9rem;
  gap: 1rem;
}
.footer-icons .icon {
  filter: invert();
}
.footer-icons .icon:hover {
  filter: brightness(0) saturate(100%) invert(34%) sepia(4%) saturate(5199%) hue-rotate(339deg) brightness(110%) contrast(70%);
}
footer > .button {
  position: absolute;
  transform: rotate(-90deg);
  right: 0;
  line-height: 1.5;
  padding: 1.7rem 4.7rem 1.7rem 8rem;
  text-align: left;
  background: #fff;
}
footer > .button img {
  position: absolute;
  left: 25px;
  transform: rotate(90deg);
}

/* Innerpage */

.page main {
  background-color: #f5f5f5;
}
.container.flex-row {
  padding: 10rem 0 0;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
.page-content {
  width: 45.75%;
  max-width: 100%;
  padding: 2rem 0 0 0;
  color: #232323;
}
.page-content h1 {
  font-size: 3.8rem;
}
.page-content h2 {
  font-size: 3.2rem;
  font-family: 'Roboto';
  font-weight: 300;
  border-top: 1px solid #dddddd;
  padding-top: 7rem;
  margin-top: 7rem;
}
.page-content p {
  font-size: 1.6rem;
  font-family: 'Roboto';
}
.page-content p a {
  color: #232323;
}
.page-content a {
  color: #88644e;
}
.page-content a:visited {
  text-decoration: none;
  color: #88644e;
}
.page-content a:hover {
  color: #232323;
}
.page-content ul {
  position: relative;
  padding-left: 4.8rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
  list-style: none;
  font-family: Roboto;
}
.page-content li::before {
  content: "";
  width: 2.9rem;
  height: 1px;
  position: absolute;
  left: -4rem;
  top: 1.6rem;
  background-color: #1c1c1c;
}

.sidebar {
  width: 45.25%;
  position: relative;
}
.sidebar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9rem;
  padding: 3rem 0 2rem;
}
.sidebar-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #232323;
  padding: 4rem 3rem 0 3rem;
  max-width: 50%;
  min-width: 39rem;
  color: #232323;
}
.sidebar-card .small-heading {
  margin-top: 3.5rem;
}
.sidebar-card .large-heading {
  margin-top: 1.4rem;
  font-size: 32px;
}
.sidebar-card .large-heading span {
  font-weight: 600;
}
.sidebar-card p {
  margin-top: 1.6rem;
}
.sidebar-card .button {
  background: #232323;
  padding: 1.8rem 6.8rem;
  position: relative;
  top: 3.1rem;
}
.testimonials-inner p {
  font-size: 19px;
  font-weight: lighter;
}
.testimonials-inner img {
  margin-bottom: .4rem;
}
.testimonial-author span {
  font-weight: 600;
}
.testimonial-author {
  margin-bottom: 4rem;
}
.sidebar-container .more-reviews {
  display: flex;
  flex-direction: column;
  padding: 2rem 0 8rem 0;
  width: 31rem;
  gap: 1rem;
}
.sidebar-container .more-reviews a:hover {
  filter: brightness(0) saturate(100%) invert(34%) sepia(4%) saturate(5199%) hue-rotate(339deg) brightness(110%) contrast(70%);
}
.sidebar-container .more-reviews div {
  display: flex;
  justify-content: center;
  gap: 3rem;
}
.sidebar-container .slider-buttons {
  display: flex;
  justify-content: center;
  position: relative;
  bottom: 12.8rem;
}
.sidebar-container .prev-slide, .sidebar-container .next-slide {
  color: #fff;
  padding: 3.5rem;
  width: 155px;
  background: #232323;
  margin: 0;
  cursor:pointer;
}
.sidebar-container .prev-slide::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid #232323;
  border-bottom: 4px solid #232323;
  border-right: 4px solid #fff;
  top: 3.6rem;
  right: 9rem;
  transform: translateY(-43%);
}
.sidebar-container .prev-slide::before, .sidebar-container .next-slide::before {
  position: absolute;
  content: "";
  width: 7.5rem;
  top: 3.6rem;
  right: 15px;
  height: 1px;
  background-color: #fff;
}
.sidebar-container .next-slide::before {
  left: 15px;
}
.prev-slide::after {
  background-color: inherit;
}
.next-slide::after {
  background-color: inherit;
}
.sidebar-container .prev-slide:hover, .sidebar-container .next-slide:hover {
  background: #88644e;
}
.sidebar-container .next-slide::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid #232323;
  border-bottom: 4px solid #232323;
  border-left: 4px solid #fff;
  top: 3.6rem;
  left: 9rem;
  transform: translateY(-43%);
}
/* .more-reviews .reviews-right a::before {
  bottom: 3.2rem;
}
.more-reviews a::before {
  content: "";
  position: absolute;
  width: 3.4rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid #dddddd;
  transform: translateX(-9.5px);
} */

/* Smile Gallery */

.page-id-2016 .content {
  width: 58%;
}
.page-id-2016 .sidebar {
  width: 40%;
}
.filter-item .active {
  background: #d8d8d8;
}
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}
.gallery-container .cap-heading {
  margin-top: 2rem;
}
.sub-text p {
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto';
}
.filter-container li button {
  background: 0 0;
  padding: 12px 20px;
  margin-right: 0;
  cursor: pointer;
  color: #232323;
  background: #fff;
  border: none;
  height: 100%;
  font-family: 'Montserrat';
  font-size: 14px;
  letter-spacing: 2.8px;
  font-weight: 600;
  text-transform: uppercase;
}
.filter-container {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 2rem;
  padding-left: 0;
  padding-right: 6rem;
}
.filter-container li {
  list-style: none;
}
.filter-container li.active button {
  color: #fff;
  background: #181d24;;
}
.gallery-card:hover {
  opacity: .8;
}
a.gallery-popup {
  width: 100%;
  max-width: 44%;
  text-decoration: none;
}
.gallery-card {
  background-color: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 6rem 2rem;
  border: 1px solid rgba(61, 61, 61, 0.3);
}
.gallery-card ~ .cap-heading {
  text-align: center;
  color: #232332;
  text-decoration: underline;
}
.gallery-card .bafg {
  position: absolute;
}
.smile-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.75);
  top: 0;
  left: 0;
  z-index: 99991;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Changes Here */
.modal {
  position: relative;
  background-color: #ededed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 99992;
  gap: 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem;
  margin: 0!important;
  display: none;
  overflow-y: scroll;
  width: 100%;
  max-width: 796px;
  overflow: auto;
}
.smile-overlay button {
  position: absolute;
  top: 2rem;
  right: 3rem;
}
/* .details img.stars {
  position: relative;
  left: 35rem;
  bottom: 12rem;
}
.stars {
  position: relative;
  left: 35rem;
  bottom: 12rem;
}
.details h3 {
  position: relative;
  left: 35rem;
  top: 10rem;
  font-family: Roboto;
  font-size: 15px;
  font-weight: 600;
} */
.sg-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 39rem;
  bottom: 10rem;
  width: 47%;
  font-family: Roboto;
  font-size: 19px;
  font-weight: 300;
  letter-spacing: .38px;
}
.sg-text h3 {
  font-size: 1.8rem;
}
/*
.smile-overlay h5 {
  font-size: 1.6rem;
  font-family: 'Roboto';
  font-weight: 400;
  text-align: center;
  margin-bottom: 0;
}
.modal-container .large-heading {
  text-align: center;
}

.modal-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: stretch;
  row-gap: 3rem;
}
.modal-container>div {
  width: 100%;
  max-width: 48%;
}
.modal-container div:nth-child(1), .modal-container div:nth-child(3), .modal-container div:nth-child(4) {
  text-align: center;
  border: 1px solid #232323;
  padding: 2rem;
}
.details {
  text-align: left;
} */
/* Blog - Sidebar */

main ul li {
  position: relative;
}
.sidebar.blog .sidebar-card {
  gap: 4rem;
  align-items: flex-start;
}
.sidebar.blog ul {
  position: relative;
  padding-left: 4.8rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  line-height: 3.2rem;
}
.sidebar.blog ul li::before {
  content: "";
  width: 2.9rem;
  height: 1px;
  position: absolute;
  left: -40px;
  top: 1.6rem;
  background-color: #1c1c1c;
}
.sidebar.blog a {
  color: #232323;
}
.content {
  width: 45.75%;
  max-width: 100%;
  padding: 2rem 0 0 0;
  color: #232323;
}

/* Hovers */

.button:hover {
  color: #fff;
  background: #88644e;
}
.prev-btn:hover {
  color: #88644e;
}
.next-btn:hover {
  color: #88644e;
}
/* .prev-slide:hover {
  background: #88644e;
}
.next-slide:hover {
  background: #88644e;
} */
.sidebar-container .prev-slide:hover:after {
  border-top: 4px solid #88644e;
  border-bottom: 4px solid #88644e;
  border-right: 4px solid #fff;
}
.sidebar-container .next-slide:hover:after {
  border-top: 4px solid #88644e;
  border-bottom: 4px solid #88644e;
  border-left: 4px solid #fff;
}

/* YouTube Popups */

.popup-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(160deg,rgba(120,91,87,.9) 0%,rgba(89,65,63,.9) 35%); */
  background-color: rgba(38, 55, 73, 0.85);
  top: 0;
  left: 0;
  z-index: 99991;
  display: none;
  overflow-x: hidden;
  overflow-y: hidden;
}
.video-container-youtube {
  position: relative;
  padding-bottom: 55.25%!important;
  padding-top: 30px!important;
  height: 0;
  overflow: hidden;
  width: 100%;
}
.popup-overlay.show {
  display: block;
}
.youtube-modal {
  background-color: #fff;
  width: 75%;
  max-width: 1280px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 2rem;
  border-radius: 5px;
}
.youtube-modal.show {
  display: block;
}
.youtube-modal .close-btn {
  position: absolute;
  right: -4rem;
  top: 3rem;
  font-size: 4rem;
  text-decoration: none;
  color: #fff;
}
.video-container-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* Media Queries */

@media screen and (min-width: 1024px) {
  /* .office {
    height: 91rem;
  } */
}

@media screen and (max-width: 1500px) {
  .hero-container {
    top: 63%;
  }
  .hero-card .large-heading {
    font-size: 3.7rem;
    margin-bottom: 1.9rem;
  }
  .hero-card p {
    font-size: 1.4rem;
    margin-bottom: 2.2rem;
  }
  
  /* Doctor */

  .doctor-card .small-heading {
    margin-bottom: 1.6rem;
  }
  .doctor-card .large-heading {
    font-size: 3rem;
    margin-bottom: 1.9rem;
  }
  .doctor-paragraph {
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
  }
  .doctor-buttons {
    padding-top: 2.5rem;
  }
  .credentials-left img {
    height: 72px;
  }
  .credentials-right img {
    width: 58px;
    height: 44px;
  }
  .credentials-left p, .credentials-right p {
    line-height: 1.5;
  }

  .slider-card {
    height: 48rem;
    top: 14%;
  }
}

@media screen and (max-width: 1280px) {
  .from-top.open {
    /* height: 100vh!important; */
    padding: 4rem 2rem 4rem 6rem!important;
  }
  .nav-primary #menu-main-menu > li > a,  .nav-primary #menu-main-menu-right > li > a{
    color: #232332!important;
    font-size: 2rem!important;
  }
  #menu-main-menu-right {
    padding-left: 0;
  }
  .nav-primary .menu-main-menu-container {
    all: unset;
  }
  .nav-primary .menu-main-menu-right-container {
    all: unset;
  }

  /* header .logo {
    top: 10rem;
  } */
  header .logo img {
    width: 200px;
    height: 151px;
  }
  .header-wrap {
    display: none;
  }
  .icon .bar {
    background: #fff;
  }
  .menu-icon {
    top: 5rem;
    left: 4rem;
  }
  .header-phone {
    display: block;
    position: absolute;
    height: 40px;
    top: 2.5rem;
    width: 40px;
    right: 0;
    left: auto;
    margin-bottom: -10px;
    z-index: 2;
  }
  .phone-icon {
    right: 3.2rem!important;
    top: 100%!important;
  }
  .icon-color {
    fill: #fff;
  }

  .doctor-card h1 {
    margin-bottom: 1.2rem;
  }
  .doctor-card .large-heading {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  .doctor-paragraph {
    margin-bottom: .6rem;
  }
  .doctor-card ul {
    font-size: 14px;
    gap: 0;
  }
  .doctor-buttons {
    padding-top: 1rem;
  }
  .doctor-buttons .button {
    padding: 2rem 2.8rem;
  }
  .doctor-buttons a:nth-child(2)::before {
    bottom: 1rem;
  }

  .innerpage .hero-container {
    top: 75%;
  }

  .services .item {
    padding: 0 6rem 2rem;
  }
}

@media screen and (max-width: 1200px) {
  .office-slider .owl-item {
    justify-content: center;
  }
  .slider-card {
    position: relative;
    right: 0;
    left: 0;
    background-color: #fff;
    height: auto;
    padding: 5rem 14rem 8rem 14rem;
    width: 100%;
    max-width: 100%;
    order: 1;
  }
  .office-container .slider-buttons {
    display: flex;
    gap: 3rem;
    top: 1rem;
  }
  .office-container .slider-buttons .prev-btn::before {
    left: -100%;
  }
  .office-container .prev-btn::after, .office-container .next-btn::after {
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
  }
  .slider-card .large-heading br {
    display: none;
  }
  .next-slide-office:hover, .prev-slide-office:hover {
    background: inherit;
  }
}

@media screen and (max-width: 1023px) {
  .hero-container, .doctor-container, .smile-gallery-container {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 4.8rem;
  }
  .hero-card, .doctor-card, .smile-card {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-card .large-heading {
    font-size: 5rem;
  }
  .hero-card p, .doctor-card p {
    font-size: 1.5rem;
  }
  .hero-card .large-heading, .hero-card p {
    color: #232323;
  }
  .hero-card .button {
    width: 32rem;
    color: #fff;
    background: #232323;
  }

  .doctor-card .large-heading {
    font-size: 3.8rem;
  }
  .doctor-paragraph {
    margin-bottom: 2.2rem;
  }
  .doctor-card ul {
    font-size: 15px;
    gap: 1rem;
  }
  .credentials-right {
    width: 44%;
  }
  .credentials-right br {
    display: none;
  }
  .credentials-left p, .credentials-right p {
    text-align: left;
  }
  .credentials-left img {
    height: 72px;
  }
  .credentials-right img {
    width: 73px;
    height: 55px;
  }
  .doctor-buttons {
    padding-top: 2rem;
  }

  .smile-gallery-container {
    background-color: #fff;
  }
  .smile-card .small-heading, .smile-card .large-heading, .smile-card p {
    color: #232323;
  }
  .smile-card .large-heading:after {
    background-color: #232323;
  }
  .smile-card .button {
    color: #fff;
    background: #232323;
    width: 273px;
  }

  .testimonials {
    background-image: none;
    background-color: #f5f5f5;
  }
  .testimonials-container {
    flex-direction: column;
    align-items: center;
  }
  .video-container {
    max-width: 100%;
  }
  .text-container {
    max-width: 90%;
  }
  .testimonials-video-slider .owl-item {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .testimonials-video-slider .item {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  .testimonials-video-slider .item .button {
    width: 40%;
    bottom: 4.5rem;
    margin: 0 auto;
  }
  .testimonials-video-slider .item .button::before {
    left: 21rem;
  }
  .testimonials-video-slider .item .button::after {
    left: 22.6rem;
    transform: translateY(-10%);
  }
  .text-inner-container {
    align-items: center;
    padding: 4rem 10rem;
  }
  .text-inner-container p {
    text-align: center;
    font-weight: 300;
  }
  .text-inner-container br {
    display: none;
  }
  .text-extra {
    width: 100%;
  }
  .text-extra .more-reviews {
    gap: 3rem;
  }
  .reviews-left {
    width: 25%;
  }
  .testimonials-container .slider-control {
    justify-content: center;
    padding-top: 0;
    margin-bottom: 5rem;
  }
  .text-container .slider-control {
    padding-top: 4rem;
    margin-bottom: 0;
  }

  .services {
    position: relative;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
  }
  .services .slider-buttons {
    display: flex;
  }
  .owl-carousel.owl-loaded {
    display: block!important;
  }
  .service-slider {
    all: unset!important;
    position: relative!important;
  }
  .services .owl-stage-outer {
    height: 100%;
  }
  .service-slider .item {
    max-width: 100%;
    align-items: center;
    background-color: rgba(6, 122, 124, 0.85);
  }
  .service-slider .item br {
    display: none;
  }
  .slide-prev:before, .slide-prev:after {
    right: 51%;
  }
  .slide-next:before, .slide-next:after {
    left: 51%;
  }
  .services .service-slider {
    z-index: 1!important;
    width: 100%!important;
  }
  .services .item {
    background-color: #263749!important;
    border: none;
  }
  .services .item.focused {
    padding-bottom: 4rem;
  }
  .services .larger-text .large-heading {
    text-align: center;
  }
  .slider-buttons {
    justify-content: center;
    position: relative;
    bottom: 3.5rem;
    gap: 1rem;
    z-index: 2;
  }
  .slide-prev, .slide-next {
    all: unset;
    position: relative;
    padding: 0 0 1.5rem;
    font-weight: 500;
    font-family: 'Montserrat';
    font-size: 12px;
    letter-spacing: 2.88px;
    line-height: normal;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    color: #232323;
    font-size: 13px;
    font-weight: 600;
  }
  .service-slider .text-container {
    align-items: center;
    margin: 0 auto;
    padding: 6rem 0;
    max-width: 70%;
  }
  .services .slider-buttons {
    order: 1;
    gap: 3rem;
    bottom: 8.5rem;
  }
  .slide-prev, .slide-next {
    all: unset;
    position: relative;
    font-weight: 500;
    font-family: 'Montserrat';
    font-size: 12px;
    letter-spacing: 2.88px;
    line-height: normal;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
  }
  .slide-prev::before, .slide-next::before {
    position: absolute;
    content: "";
    width: 9.5rem;
    top: 2.6rem;
    right: 0;
    height: 2px;
    background-color: #fff;
  }
  .slide-prev::before {
    left: -100%;
  }
  .slide-next::before {
    left: 0%;
  }
  .slide-prev::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid #fff;
    top: 2.6rem;
    right: 9.5rem;
    transform: translateY(-38%);
  }
  .slide-next::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #fff;
    top: 2.6rem;
    left: 9.5rem;
    transform: translateY(-38%);
  }
  .services picture::after {
    display: none;
  }

  /* Office Slider */

  .office {
    height: unset;
    background: #fff;
  }
  .office-slider {
    padding: 2rem 0;
  }

  footer {
    background-size: cover;
  }
  footer .logo {
    top: 6rem;
  }
  .footer-address {
    margin-top: 11rem;
  }
  footer .small-heading {
    margin: 4.8rem 0 1.2rem 0;
  }
  .hours {
    max-width: 50rem;
  }
  footer .button {
    padding: 1.8rem 3.9rem;
  }
  #menu-footer {
    margin-bottom: 3rem;
  }
  .footer-copyright {
    position: relative;
    margin-top: 6rem;
    justify-content: center;
  }
  .footer-icons {
    position: absolute;
    bottom: 10rem;
    margin-right: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .copyright {
    margin-left: 0;
  }
  /* .footer-copyright {
    flex-direction: column;
    padding-top: 1rem;
  }
  .copyright {
    order: 2;
    margin-left: 0;
  } */
  .footer-icons {
    order: 0;
    gap: 2rem;
    right: 0;
  }

  .container.flex-row {
    padding: 10rem 5rem 0;
    flex-direction: column;
    align-items: center;
  }
  .page-content {
    width: 100%;
  }
  .sidebar {
    width: 100%;
  }
  .sidebar-container .slider-buttons {
    gap: 0;
  }
  .slider-buttons:hover {
    background: none;
  }
  /* Smile Gallery */

  .page-id-2016 .content {
    width: 100%;
  }
  .gallery-container {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .nav-primary #menu-main-menu > li > a,  .nav-primary #menu-main-menu-right > li > a{
    font-size: 1.3rem!important;
  }
  .doctor-paragraph br {
    display: none;
  }
  .credentials-left p, .credentials-right p {
    font-size: 1.3rem;
  }
  .credentials-left img {
    height: 70px;
  }
  .credentials-right img {
    width: 50px;
    height: 38px;
  }
  .doctor-buttons .button {
    font-size: 1rem;
    text-wrap: nowrap;
  }
  .doctor-buttons a:nth-child(2)::before {
    left: 18rem;
  }
  .doctor-buttons a:nth-child(2)::after {
    left: 19.6rem;
    transform: translateY(-10%);
  }
  .hero-card p br {
    display: none;
  }

  .smile-gallery-container {
    padding: 4.8rem 3rem 4.8rem 3rem;
  }
  .smile-card .large-heading br {
    display: none;
  }

  .testimonials-heading .large-heading br {
    display: none;
  }
  .text-inner-container {
    padding: 4rem;
  }

  .testimonials-video-slider .item .button {
    text-wrap: nowrap;
    width: 228px;
  }
  .testimonials-video-slider .item .button::before {
    left: 18rem;
  }
  .testimonials-video-slider .item .button::after {
    left: 19.6rem;
  }

  /* Smile Gallery */

  /* New Smile Gallery Fixes */

  /* .gallery-card {
    padding: 2rem 2rem 1rem 2rem;
  }
  .modal-container {
    flex-direction: column;
    align-items: center;
    row-gap: 0;
  }
  .modal-container div:nth-child(1) {
    display: none;
  }
  .modal-container div {
    max-width: 100%;
  }
  .modal-container div:nth-child(3), .modal-container div:nth-child(4) {
    border: none;
  }
  .modal-container div:nth-child(3) img, .modal-container div:nth-child(4) img {
    border: 1px solid #232323;
    padding: 2rem;
  } */
  .filter-container {
    justify-content: center;
    padding-right: 0;
  }
  .gallery-card {
    padding: 2rem 2rem 1rem 2rem;
  }
  .modal {
    align-items: center;
  }
  .stars {
    position: relative;
    left: 32rem;
    bottom: 10rem;
  }
  .details {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .sg-text {
    align-items: center;
  }
  .sg-default {
    display: none;
  }
  .details img.stars {
    order: 2;
    width: 80px;
    margin: 0 auto;
    padding-top: 2rem;
  }
  .details h3 {
    order: 3;
    line-height: 0;
    padding-top: 2rem;
  }
  .twentytwenty-wrapper {
    order: 1;
  }
  .details img.stars, .details h3  {
    position: inherit;
  }
  .sg-text {
    position: relative;
    bottom: auto;
    left: 0;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    order: 4;
    font-size: 16px;
  }
  /* .sg-default {
    display: none;
  } */
}

@media screen and (max-width: 580px) {
  .hero-container, .doctor-container {
    padding: 4.8rem 1.5rem;
  }
  .hero-card .large-heading {
    font-size: 4.2rem;
  }
  .doctor-card .large-heading {
    font-size: 3.6rem;
  }
  .doctor-card .large-heading br {
    display: none;
  }
  .hero-card p br {
    display: none;
  }
  .large-heading {
    font-size: 3.6rem;
  }

  .credentials {
    width: 90%;
  }
  .credentials p {
    display: none;
  }
  .credentials-left img, .credentials-right img {
    position: relative;
    transform: translateX(-53%);
    left: 50%;
  }
  .credentials-right {
    margin-right: 3rem;
  }
  .doctor-buttons {
    flex-direction: column;
  }

  .testimonials {
    padding: 6rem 0 1.8rem;
  }
  .testimonials-heading {
    width: 90%;
  }
  .testimonials-heading .large-heading {
    font-size: 3.6rem;
  }
  .text-extra .more-reviews {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .text-inner-container {
    padding: 4rem 2rem;
  }
  .reviews-left {
    display: block;
    border-right: none;
    width: 100%;
  }
  .more-reviews a::before {
    /* bottom: 3.3rem; */
  }

  .services .slider-buttons {
    height: 4rem;
  }
  .services .slide-next::before, .services .slide-prev::before {
    top: 3.6rem;
  }
  .services .slide-next::after, .services .slide-prev::after {
    top: 3.6rem;
  }
  .services .item {
    padding: 0 3rem 5rem;
  }
  .service-slider .text-container {
    padding: 3rem 0 6rem 0;
    max-width: 100%;
  }
  .service-slider .text-container p {
    margin-bottom: 0;
  }

  .slider-card {
    padding: 5rem 2rem 8rem 2rem;
  }
  .slider-buttons:hover {
    background: none;
  }

  .sidebar-card .more-reviews a::before {
    top: auto;
    bottom: auto;
  }

  /* Smile Gallery */

  .page-id-2016 .container.flex-row {
    padding: 6rem 2rem 0;
  }
  a.gallery-popup {
    max-width: 70%;
  }
  .modal-container div:nth-child(3), .modal-container div:nth-child(4) {
    padding: 0;
  }
  .modal-container .details h3 {
    margin-bottom: 1rem;
  }
  .modal-container p {
    margin-bottom: 1rem;
  }
  .modal {
    max-width: 350px;
  }
  .smile-overlay button {
    top: 1rem;
    right: 2rem;
  }
  .vert-wrap {
    display: none;
  }
} 

@media screen and (max-width: 540px) {
  .credentials-left {
    width: 70%;
  }
  .credentials-right {
    width: 20%;
  }
}

/* Hover */

.white-underline {
  border: 1px solid #566371;
  width: 170px;
  padding: 1.4rem 0;
  font-family: 'Roboto';
  font-size: 15px;
  border-bottom: 5px solid #fff;
}

.vert-wrap {
  position: absolute;
  top: 43%;
  /* left: 50%; */
  right: 183px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.vertical-section {
  position: absolute;
  transform: rotate(-90deg);
}
.vertical-section .button {
  text-align: left;
  text-wrap: wrap;
  display: flex;
  width: 300px;
  line-height: 1.25;
  position: relative;
  margin-top: 0;
  padding: 2rem 1.7rem 1.7rem 9rem;
}
.vertical-section img {
  position: absolute;
  transform: rotate(90deg);
  left: 3rem;
  bottom: 1.2rem;
}
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  row-gap: 2rem;
}
.product {
  text-align: center;
}
.product a {
 
}
.page-id-1761 .content ul li::before{
  display: none;
}
.tags {
  margin-bottom: 2rem;
}
.tags p, .tags a {
  font-size: 1.2rem;
  line-height: 2.4rem;
}
.tags p {
  margin-bottom: 0;
}