@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
  font-family: roboto;
}
@media (max-width: 768px) {
  .mx-10 {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .mx-12 {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .mx-15 {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .p-8 {
    padding: 2rem;
  }
  .text-4xl {
    font-size: 2rem;
  }
  .text-3xl {
    font-size: 1.75rem;
  }
  .text-xl {
    font-size: 1rem;
  }
  .gallery > img {
    width: 100% !important; /* control the size */
    height: 100% !important;
  }
}

html {
  scroll-behavior: smooth;
}
h1 {
  font-size: 2em !important;
} /* 32px if base is 16px */
h2 {
  font-size: 1.5em !important;
} /* 24px */
h3 {
  font-size: 1.17em !important;
} /* ~19px */
h4 {
  font-size: 1em !important;
} /* 16px */
h5 {
  font-size: 0.83em !important;
} /* ~13px */
h6 {
  font-size: 0.67em !important;
} /* ~11px */

.top {
  position: sticky;
  bottom: 20px;
  margin-right: 10px;
  place-self: end;
  width: 50px;
  aspect-ratio: 1;
  background: #57595c;
  border-radius: 10px;
  font-size: 0;
  cursor: pointer;
}
.top:before {
  content: "";
  position: absolute;
  inset: 30%;
  transform: translateY(20%) rotate(-45deg);
  border-top: 5px solid #fff;
  border-right: 5px solid #fff;
}

.gallery {
  --g: 5px; /* the gap */

  display: grid;
  clip-path: inset(1px); /* to avoid visual glitchs */
}
.gallery > img {
  --_p: calc(-1 * var(--g));
  grid-area: 1/1;
  width: 90%; /* control the size */
  height: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  transition: 0.4s 0.1s;
  border-radius: 16px;
}
.gallery > img:first-child {
  clip-path: polygon(0 0, calc(100% + var(--_p)) 0, 0 calc(100% + var(--_p)));
}
.gallery > img:last-child {
  clip-path: polygon(
    100% 100%,
    100% calc(0% - var(--_p)),
    calc(0% - var(--_p)) 100%
  );
}
.gallery:hover > img:last-child,
.gallery:hover > img:first-child:hover {
  --_p: calc(60% - var(--g));
}
.gallery:hover > img:first-child,
.gallery:hover > img:first-child:hover + img {
  --_p: calc(-60% - var(--g));
}
.border-red-500 {
  border-color: #f56565;
  border-width: 2px;
}
.responsive-map {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}
.responsive-map iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}
.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
