@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
/*============= NAVIGATION =============*/

.navbar-brand img {
  height: 5rem;
}
.company-name {
  margin: 0;
}
.nav-companyName {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.navbar {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
}
.nav-item {
  padding: 0.5rem;
}
.nav-link {
  color: black !important;
}
.nav-link.active,
.nav-link:hover {
  color: rgb(170, 9, 9) !important;
}

/*============= MEDIA QUERIES =============*/

/* Devices under 768px (md) */
@media (max-width: 767.98px) {
  .navbar-brand img {
    height: 3rem;
  }
  .navbar {
    font-size: 1rem;
  }
  .nav-companyName {
    font-size: 1rem;
    font: bold;
  }
  .navbar-toggler {
    transform: scale(0.9);
  }
}
/* Devices under 550px (md) */
@media (max-width: 549.98px) {
  .navbar-brand img {
    height: 3rem;
  }
  .navbar {
    font-size: 1rem;
  }
  .nav-companyName {
    font-size: 0.8rem;
    font: bold;
  }
  .navbar-toggler {
    transform: scale(0.9);
  }
}
/* Devices under 500px (md) */
@media (max-width: 499.98px) {
  .navbar-brand img {
    height: 2.5rem;
  }
  .navbar {
    font-size: 1rem;
  }
  .nav-companyName {
    font-size: 0.7rem;
    font: bold;
  }
  .navbar-toggler {
    transform: scale(0.9);
  }
}
/* Devices under 460px (md) */
@media (max-width: 459.98px) {
  .navbar-brand img {
    height: 2.2rem;
  }
  .navbar {
    font-size: 1rem;
  }
  .nav-companyName {
    font-size: 0.55rem;
    font: bold;
  }
  .navbar-toggler {
    transform: scale(0.9);
  }
}
/* Devices under 415px (md) */
@media (max-width: 414.98px) {
  .navbar-brand img {
    height: 1rem;
  }
  .navbar {
    font-size: 1rem;
  }
  .nav-companyName {
    font-size: 0.5rem;
    font: bold;
  }
  .navbar-toggler {
    transform: scale(0.8);
  }
}

/*============ BOOTSTRAP BREAK POINTS:

Extra small (xs) devices (portrait phones, less than 576px)
No media query since this is the default in Bootstrap

Small (sm) devices (landscape phones, 576px and up)
@media (min-width: 576px) { ... }

Medium (md) devices (tablets, 768px and up)
@media (min-width: 768px) { ... }

Large (lg) devices (desktops, 992px and up)
@media (min-width: 992px) { ... }

Extra (xl) large devices (large desktops, 1200px and up)
@media (min-width: 1200px) { ... }

=============*/

/*============= SLIDER =============*/
#slider {
  overflow: hidden;
}
#slider figure {
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  animation: 40s slider infinite;
}
#slider figure img {
  width: 20%;
  float: left;
}
.about-area figure {
  width: 20%;
  float: left;
}

@keyframes slider {
  0% {
    left: 0;
  }
  20% {
    left: 0;
  }
  25% {
    left: -100%;
  }
  45% {
    left: -100%;
  }
  50% {
    left: -200%;
  }
  70% {
    left: -200%;
  }
  75% {
    left: -300%;
  }
  95% {
    left: -300%;
  }
  100% {
    left: -400%;
  }
}
/*============= SLIDER-END =============*/

/*============= Body =============*/
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0px;
}
/*============= BODY-END =============*/

/*============= TOP =============*/
#top {
  text-align: center;
}
/*============= TOP-END =============*/

/*============= LOGO =============*/
#logo {
  color: white;
  background-color: rgb(211, 70, 94);
  display: inline-block;
  font-size: 32px;
  font-weight: bold;
  padding: 8px;
  margin-top: 16px;
}
#logo-name {
  font-size: 32px;
  font-weight: bold;
  margin: 16px;
}
/*============= LOGO-END =============*/

/*============= ABOUT-US =============*/
.description-about {
}
/*============= ABOUT-US-END =============*/

/*============= Kim-Section =============*/
.red {
  color: #800000;
}
.runde-ecken {
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
.leroy-size {
  height: 300px;
  width: 300px;
}
/*============= KIM-SECTION-END =============*/

/*============= Image =============*/
.rounded-pic {
  border-radius: 50%;
}
.rounded-pic-logo {
  width: 180px;
  height: 180px;
}
/*============= Image-END =============*/

/*============= Footer =============*/
footer {
  bottom: 0;
  left: 0;
  right: 0;
  background: #303036;
  height: auto;
  width: auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #d3d3d3;
  padding-top: 40px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.footer-conten h3 {
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 3rem;
}
.footer-conten p {
  max-width: 500px;
  margin: 10px auto;
  line-height: 28px;
  font-size: 14px;
}
.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 1rem 0;
}
.socials li {
  margin: 0 10px;
}
.socials a {
  text-decoration: none;
  color: #d3d3d3;
}
.socials a i {
  font-size: 1.1rem;
  transition: color 0.4s ease;
}
.socials a:hover i {
  color: aqua;
}
.footer-bottom {
  background: #000;
  padding: 10px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  word-spacing: 2px;
  text-transform: capitalize;
  margin-bottom: 0px;
}
.facebook {
  padding: 0;
}

/*============= Footer-END =============*/

#navigation a {
  color: grey;
  padding: 8px;
}

#navigation a:hover {
  color: rgb(211, 70, 94);
}

#image img {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

#main {
  max-width: 1100px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main-sub {
  max-width: 1400px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}

#main1 {
  max-width: 1100px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main-sub1 {
  max-width: 1400px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main2 {
  max-width: 1100px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main-sub2 {
  max-width: 1400px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main3 {
  max-width: 1100px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
#main-sub3 {
  max-width: 1400px;
  margin: auto;
  margin-top: 25px;
  padding: 16px;
}
.red {
  color: #800000;
}

/*============= CONTACT =============*/

.contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1000px) {
  .contact-info {
    color: rgb(36, 14, 14);
    max-width: 500px;
    line-height: 65px;
    padding-left: 50px;
    font-size: 18px;
  }

  .contact-info i {
    margin-right: 20px;
    font-size: 25px;
  }
}
@media screen and (max-width: 999px) {
  .contact-info {
    color: rgb(36, 14, 14);
    max-width: 500px;
    line-height: 65px;
    padding-left: 50px;
    font-size: 18px;
  }

  .contact-info i {
    margin-right: 20px;
    font-size: 25px;
  }
}
@media screen and (max-width: 955px) {
  .contact-info {
    color: rgb(36, 14, 14);
    max-width: 500px;
    line-height: 65px;
    padding-left: 0px;
    font-size: 18px;
  }

  .contact-info i {
    margin-right: 20px;
    font-size: 25px;
  }
}
@media screen and (max-width: 480px) {
  .contact-info {
    color: rgb(36, 14, 14);
    max-width: 500px;
    line-height: 65px;
    padding-left: 0px;
    font-size: 15px;
  }

  .contact-info i {
    margin-right: 20px;
    font-size: 20px;
  }
}
@media screen and (max-width: 410px) {
  .contact-info {
    color: rgb(36, 14, 14);
    max-width: 500px;
    line-height: 65px;
    padding-left: 0px;
    font-size: 12px;
  }

  .contact-info i {
    margin-right: 20px;
    font-size: 20px;
  }
}

.contact-form {
  max-width: 700px;
  margin-right: 50px;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-form h2 {
  color: #fff;
  text-align: center;
  font-size: 35px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.contact-form .text-box {
  background: #000;
  color: #fff;
  border: none;
  width: calc(50% - 10px);
  height: 50px;
  padding: 12px;
  font-size: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-form .text-box:first-child {
  margin-right: 15px;
}

.contact-form textarea {
  background: #000;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 15px;
  min-height: 200px;
  max-height: 400px;
  resize: vertical;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-form .send-btn {
  float: right;
  background: #800000;
  color: #fff;
  border: none;
  width: 120px;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  transition-property: background;
}

.contact-form .send-btn:hover {
  background: #0582e3;
}

@media screen and (max-width: 950px) {
  .contact-section {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    margin: 30px 50px;
  }

  .contact-form h2 {
    font-size: 30px;
  }

  .contact-form .text-box {
    width: 100%;
  }
}

/*css for alert messages*/

.alert-success {
  z-index: 1;
  background: #d4edda;
  font-size: 18px;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  right: 0;
  top: 10px;
  border-left: 8px solid #3ad66e;
  border-radius: 4px;
}

.alert-error {
  z-index: 1;
  background: #fff3cd;
  font-size: 18px;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  right: 0;
  top: 10px;
  border-left: 8px solid #ffa502;
  border-radius: 4px;
}

.about-area,
.service-area {
  background: rgb(19, 18, 18);
}
.about-area,
.port-area,
.service-area,
.contact-area,
.carrier-area {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  height: 700px;
}

/*============= CONTACT =============*/

/*============= Test =============*/

.wrap {
  margin: 50px auto 0 auto;
  width: 100%;
  display: flex;
  align-items: space-around;
  max-width: 1200px;
}
.tile {
  width: 380px;
  height: 380px;
  margin: 10px;
  background-color: #99aeff;
  display: inline-block;
  background-size: cover;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease-out;
  box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.44);
  overflow: hidden;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}
.tile img {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: all 0.4s ease-out;
}
.tile .text {
  /*   z-index:99; */
  position: absolute;
  padding: 30px;
  height: calc(100% - 60px);
  height: calc(100% - 60px);
}
.tile h1 {
  font-weight: 300;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.tile h2 {
  font-weight: 100;
  margin: 20px 0 0 0;
  font-style: italic;
  transform: translateX(200px);
}
.tile p {
  font-weight: 300;
  margin: 20px 0 0 0;
  line-height: 25px;
  /*   opacity:0; */
  transform: translateX(-200px);
  transition-delay: 0.2s;
}
.animate-text {
  opacity: 0;
  transition: all 0.6s ease-in-out;
}
.tile:hover {
  /*   background-color:#99aeff; */
  box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.64);
  transform: scale(1.05);
}
.tile:hover img {
  opacity: 0.2;
}
.tile:hover .animate-text {
  transform: translateX(0);
  opacity: 1;
}

/* Devices under 550px (md) */
@media (max-width: 549.98px) {
  .tile {
    /*   background-color:#99aeff; */
    box-shadow: 0px 35px 77px -17px rgba(0, 0, 0, 0.64);
  }
  .tile img {
    opacity: 0.2;
  }
  .tile .animate-text {
    transform: translateX(0);
    opacity: 1;
  }
}
.dots {
  position: absolute;
  bottom: 20px;
  right: 30px;
  margin: 0 auto;
  width: 30px;
  height: 30px;
  color: currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.dots span {
  width: 5px;
  height: 5px;
  background-color: currentColor;
  border-radius: 50%;
  display: block;
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.5s ease;
  transform: translateY(30px);
}

.tile:hover span {
  opacity: 1;
  transform: translateY(0px);
}

.dots span:nth-child(1) {
  transition-delay: 0.05s;
}
.dots span:nth-child(2) {
  transition-delay: 0.1s;
}
.dots span:nth-child(3) {
  transition-delay: 0.15s;
}

@media (max-width: 1000px) {
  .wrap {
    flex-direction: column;
    width: 350px;
  }
}

/*============= FLIP-COIN-ANIMATION =============*/
.flip {
  height: 5rem;
  width: 5rem;
}

.flip:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip .flip-inner {
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  height: 100%;
  width: 100%;
}

.flip .flip-inner .front,
.flip .flip-inner .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
}

.flip .flip-inner .front {
  transform: translateZ(1px);
}

.flip .flip-inner .back {
  transform: rotateY(180deg);
}

.flip .flip-inner .thumbnail {
  width: 100%;
}

.container {
  max-width: auto;
  margin: auto;
  position: relative;
  min-height: 1px;
}

.team {
  min-height: 100vh;
  padding: 60px 15px;
  float: left;
  width: 100%;
}
.team h1 {
  font-size: 36px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  padding-bottom: 60px;
  text-align: center;
}
.team .card {
  width: 25%;
  float: left;
  padding: 0px 15px;
}
.team .card .box {
  padding: 15px;
  background-color: #2d3035;
  border-radius: 5px;
  transition: margin 1s ease, box-shadow 1s ease;
}
.team .card .box:hover {
  margin-top: -15px;
  box-shadow: 0px 0px 40px black;
}
.team .card .box img {
  width: 150px;
  display: block;
  margin: 10px auto;
  border-radius: 50%;
}

.team .card .box h4 {
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  margin: 20px 0px 10px;
  color: #ea5e71;
  text-align: center;
  font-weight: 700;
}

.team .card .box h5 {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #b9b9b9;
  margin: 0px 0px 15px;
  text-align: center;
}
.team .card .box p {
  color: #b9b9b9;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  padding: 0px 20px;
}

/*responsive*/

@media (max-width: 991px) {
  .team .card {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media (max-width: 550px) {
  .team .card {
    width: 100%;
  }
}
.box-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: justify;
}

.single-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: justify;
  margin: 20px;
  padding: 20px;
  transition: 0.3s;
}
.single-box1 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  padding: 20px;
  transition: 0.3s;
}
.single-box2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  padding: 20px;
  transition: 0.3s;
}
.single-box3 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  padding: 20px;
  transition: 0.3s;
}
.single-box4 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  transition: 0.3s;
}
.single-box5 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  transition: 0.3s;
}
.single-box6 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 350px;
  height: auto;
  border-radius: 4px;
  background-color: #fff;
  text-align: center;
  margin: 20px;
  transition: 0.3s;
}

.img-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 180px;
  border: 6px solid #ddd;
  border-radius: 50%;
  margin-bottom: 10px;
  padding: 20px;
  -webkit-background-size: cover;
  background-size: cover;
  background-position: center center;
}
.single-box:nth-child(1) .img-area {
  background-image: url(Image/Gebäudedienste_GruppeMit350.png);
}
.single-box1:nth-child(1) .img-area {
  background-image: url(Image/Gebäudedienste_Hotelsdervice.png);
}
.single-box2:nth-child(2) .img-area {
  background-image: url(Image/Technisches_Gebäudemanagement.png);
}
.single-box3:nth-child(3) .img-area {
  background-image: url(Image/Facility_Services.png);
}
.single-box4:nth-child(1) .img-area {
  background-image: url(Image/Deposith/GemeinsameZukunftUndErfolg500.png);
}
.single-box5:nth-child(2) .img-area {
  background-image: url(Image/Deposith/QualitätUndPerformance500.png);
}
.single-box6:nth-child(3) .img-area {
  background-image: url(Image/Deposith/ZusammenEineStarkePartnerschaft500_png.png);
}
.header-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 48px;
}
.img-text {
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 20px;
}
.img-text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 30px;
  text-align: justify;
}
.single-box1:hover {
  background: #e84393;
  color: #fff;
}
.burger {
  text-align: center;
  padding: 20px;
}
/* Slider */

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -khtml-user-select: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.slick-list:focus {
  outline: none;
}
.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
}
.slick-track:before,
.slick-track:after {
  display: table;
  content: "";
}
.slick-track:after {
  clear: both;
}
.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}
[dir="rtl"] .slick-slide {
  float: right;
}
.slick-slide img {
  display: block;
}
.slick-slide.slick-loading img {
  display: none;
}
.slick-slide.dragging img {
  pointer-events: none;
}
.slick-initialized .slick-slide {
  display: block;
}
.slick-loading .slick-slide {
  visibility: hidden;
}
.slick-vertical .slick-slide {
  display: block;
  height: auto;
  border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
  display: none;
}

/*///////////Services/////////*/

.services-section {
  background: url(instandhaltung.jpg);
  background-size: cover;
  padding: 60px 0;
}
.inner-width {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  overflow: hidden;
}
.section-title {
  text-align: center;
  color: #800000;
  font-size: 30px;
}
.border {
  width: 160px;
  height: 2px;
  background: #800000;
  margin: 40px auto;
}
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.service-box {
  max-width: 33.33%;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}
.service-icon {
  display: inline-block;
  width: 70px;
  height: 70px;
  border: 3px solid #800000;
  color: #800000;
  transform: rotate(45deg);
  margin-bottom: 30px;
  margin-top: 16px;
  transition: 0.3s linear;
}
.service-icon i {
  line-height: 70px;
  transform: rotate(-45deg);
  font-size: 26px;
}
.service-box:hover .service-icon {
  background: #800000;
  color: #ddd;
}
.service-title {
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 14px;
}
@media screen and (max-width: 960px) {
  .service-box {
    max-width: 45%;
  }
}
@media screen and (max-width: 768px) {
  .service-box {
    max-width: 50%;
  }
}
@media screen and (max-width: 480px) {
  .service-box {
    max-width: 100%;
  }
}
/*/////*/
.map-wrapper {
  text-align: center;
  border: 2px solid #800000;
  margin-left: 15px;
  margin-right: 15px;
}
.google-map {
  width: 100%;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1rem;
  grid-auto-flow: dense;
  padding: 1rem;
}
.gallery .box4 {
  background-color: #ccc;
  background-size: cover;
  transition: 1s ease;
}
.gallery .box4:after {
  content: "";
  display: block;
  padding-top: calc(100% / (16 / 10));
}
.gallery .box4:hover {
  transform: scale(1.3);
  z-index: 2;
}
