.about-container {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 100vh; /* or whatever minimum height you want */
  height: auto; /* allows it to grow with content */
  background-image: url(../src/about/hero.png);
}

.aboutContent {
  position: absolute;
  width: 100%;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.aboutus-text {
  grid-area: 1 / 2 / 1 / 4 !important;
  padding: 0 !important;
}

.twofour54Cont {
  grid-area: 1 / 1 / 1 / 1 !important;
  font-size: 3vh;
  font-weight: bold;
  display: block !important;
}

.twofour54Logo-w {
  width: 60%;
  height: 40%;
  background-position: center center;
  background-image: url(../src/twofour54-w.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.aboutus-image-gallery {
  grid-area: 1 / 4 / 1 / 6 !important;
}

.aboutus-image-gallery {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-left: 5%;
}
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* Adjust as needed */
  min-height: 270px; /* Ensures the gallery has a minimum height */
  display: flex;
  flex-direction: column; /* Allows for child elements to stack vertically */
  justify-content: center; /* Centers the content vertically */
  align-items: center; /* Centers the content horizontally */
  text-align: center;
}

.gallery {
  width: 100%;
  flex-grow: 1; /* Ensures the gallery takes up the remaining height */
  display: flex; /* Allows for image centering */
  justify-content: center; /* Centers images horizontally */
  align-items: center; /* Centers images vertically */
}
.gallery img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures the image fits within the dimensions */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* .image {
  display: none;
  width: 100%;
} */

.gallery img.active {
  opacity: 1;
}

.switcher {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #717171;
}

@media only screen and (max-width: 768px) {
  .aboutus {
    display: block !important;
  }
  .aboutContent {
    bottom: 0;
    height: auto;
    position: relative;
  }
  .aboutus .twofour54Cont {
    padding-top: 10vh;
  }
  .aboutus-image-gallery {
    padding-left: 0;
    padding-top: 1vh;
  }
  .projects {
    padding: 2vh !important;
  }

  .threeColumns {
    margin: 2% 0 !important;
  }

  .ourteam-container,
  .ourclients {
    padding: 2vh !important;
  }

  .ourclients-title {
    justify-content: left !important;
  }
  .ourclients-text {
    font-size: 2vh;
    padding: 0 !important;
  }
}
.projects {
  background-color: #000;
  color: #fff;
  position: relative;
  padding: 3vh 20vh;
  .text {
    font-size: 1.5vh;
  }
  .threeColumns {
    display: flex;
    margin: 2% 30%;
    justify-content: space-between;
  }

  .column {
    text-align: center;
  }

  .number {
    font-size: 8vh;
  }

  .textCol {
    font-size: 2vh;
    font-weight: bold;
    margin-top: -2vh;
  }
}

.service-container {
  padding: 3vh 20vh;
  background-color: #191919;
  position: relative;
}

.service-container .title,
.ourteam-container .title {
  display: block;
  width: 100%;
  font-size: 3.5vh;
  font-weight: bold;
  color: #fff;
}

.service-card {
  border: 2px solid #2f2f2f;
  margin: 30px 0px;
  margin-right: 30px;
  width: 30%;
  position: relative;
  float: left;
  min-height: 20vh;
  max-height: 20vh;
  overflow: hidden;
}

.service-card h2 {
  color: #191919;
  margin: 0;
  font-size: 16vh;
  position: absolute;
  right: 25%;
  top: 5%;
  -webkit-text-stroke-width: 0.1px;
  -webkit-text-stroke-color: rgba(47, 47, 47, 0.1);
}
.service-card .cardTitle {
  color: #fff;
  font-weight: bold;
  font-size: 2vh;
  margin: 20px;
  z-index: 2;
  position: relative;
  text-transform: uppercase;
}

.service-card .cardText {
  color: #fff;
  margin: 20px;
  z-index: 2;
  position: relative;
  min-height: 82px;
  font-size: 1.5vh;
}

.service-card a {
  color: red;
  text-decoration: none;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

.viewallServices {
  border: none;
  float: right;
  text-align: right;
  padding: 0;
  margin: 0;
  width: 18%;
}

.ourteam-container .text {
  font-size: 1.5vh;
  padding-top: 2vh;
  color: #fff;
}

.ourteam-container {
  padding: 3vh 20vh;
  background-color: #2a2a2a;
  position: relative;
}
.team {
  text-align: center;
  padding: 2vh 0;
  position: relative;
}

.teamList {
  overflow: hidden;
  position: relative;
  width: 100%;
  white-space: nowrap;
}

.member {
  cursor: default;
  display: inline-block;
  animation: moveLeft 20s linear infinite;
  -webkit-animation: moveLeft 20s linear infinite;
}

@keyframes moveLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.teamMembers {
  display: inline-block;
  white-space: nowrap;
}

.teamMembers {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  position: relative;
  user-select: none;
}

.teamMembers:active {
  cursor: grabbing;
}

.teamMembersimg {
  padding-top: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 2vh;
  width: 16vh;
}

.teamMembers .member {
  display: inline-block;
  vertical-align: top;
}

.shade-left-team {
  z-index: 5;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgb(42 42 42) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  position: absolute;
  top: auto;
  bottom: 0%;
  left: -10px !important;
  right: auto;
}

.shade-right-team {
  z-index: 5;
  width: 25%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgb(42 42 42) 100%
  );
  position: absolute;
  top: auto;
  bottom: 0%;
  left: auto;
  right: -10px !important;
}

.teamName {
  color: #fff;
  font-size: 2vh;
  font-weight: bold;
  text-align: left;
  padding: 0 2vh;
}

.teamPos {
  color: #fff;
  font-size: 1.5vh;
  text-align: left;
  padding: 0 2vh;
}

.phone .gallery-container {
  padding-top: 20px;
  padding-left: 0 !important;
}
.service-container.phone {
  padding: 2vh;
  display: block;
}
.phone .service-card {
  border: 2px solid #2f2f2f;
  border-radius: 5px;
  width: 100%;
  text-align: left;
  position: relative;
  .cardTitle,
  .cardText {
    margin: 20px;
  }
  h2 {
    right: 20px;
    top: -20px;
  }
}

.phone .viewallServices {
  float: left;
  display: block;
  width: 100%;
}

.ourteam-container.phone .title {
  padding: 30px 10px;
}

.ourteam-container.phone .text {
  padding: 0 10px;
}

.phone .teamMembers img {
  margin: 0 25px;
  width: 100px;
  height: auto;
}
.phone .teamName {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  padding: 0 25px;
}

.phone .teamPos {
  color: #fff;
  font-size: 13px;
  text-align: left;
  padding: 0 25px;
}

.ourclients.phone {
  display: block;
}
