* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #F4F6F5;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 14px;
}
h5 {
  font-size: 12px;
}
h6 {
  font-size: 10px;
}
p {
  font-size: 10px;
}
a {
  font-size: 10px;
}
.main-page {
  padding: 15px 20px;
  overflow-x: hidden;
}
@media screen and (min-width: 700px) {
  h1 {
    font-size: 50px;
  }
  h2 {
    font-size: 39px;
  }
  h3 {
    font-size: 32px;
  }
  h4 {
    font-size: 19px;
  }
  h5 {
    font-size: 15px;
  }
  h6 {
    font-size: 13px;
  }
  p {
    font-size: 12px;
  }
  a {
    font-size: 12px;
  }
  .main-page {
    padding: 15px 30px;
    overflow-x: hidden;
  }
}
@media screen and (min-width: 1024px) {
  h1 {
    font-size: 68px;
  }
  h2 {
    font-size: 52px;
  }
  h3 {
    font-size: 40px;
  }
  h4 {
    font-size: 24px;
  }
  h5 {
    font-size: 18px;
  }
  h6 {
    font-size: 16px;
  }
  p {
    font-size: 14px;
  }
  a {
    font-size: 14px;
  }
  .main-page {
    padding: 16px 50px;
    overflow-x: hidden;
  }
}
.grid-cont {
  padding: 60px 80px;
  background-color: #F3F5F4;
}
.image-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vimeo-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 ratio */
  overflow: hidden;
  background: #000;
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.vimeo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
  /* so clicks go to link */
}
.vimeo-wrapper:hover .video-thumb {
  opacity: 0;
}
.vimeo-wrapper:hover .vimeo-frame {
  opacity: 1;
}
.image-row-1 {
  grid-template-columns: 35% 30% 35%;
}
.image-row-2 {
  grid-template-columns: 25% 45% 30%;
}
.image-row-3 {
  grid-template-columns: 35% 30% 35%;
}
.image-row-4 {
  grid-template-columns: 30% 45% 25%;
}
/* Common styles for all image rows */
.image-row-1, .image-row-2, .image-row-3, .image-row-4 {
  display: grid;
  gap: 8px;
  height: 324px;
}
.image-container {
  position: relative;
  width: 100%;
  height: 324px;
  overflow: hidden;
}
.image-container .single-video video, .image-container .single-video iframe {
  width: 100%;
  height: 324px;
  object-fit: fill;
  filter: brightness(0.6);
  background-color: black;
}
.image-container .project-title {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  transform: none;
  color: white;
  z-index: 2;
  text-align: left;
  font-family: Alice, serif;
  text-decoration: none;
}
.image-container .project-title h2 {
  font-family: Alice, serif;
  letter-spacing: 0;
  font-size: 30px;
  font-weight: 250;
  margin: 0;
}
.image-container .project-title h5 {
  font-size: 20px;
  font-family: "Spartan", sans-serif;
  margin: 0;
}
.image-container:hover .single-video video, .image-container:hover .single-video iframe {
  filter: brightness(1);
}
.image-container:hover .project-title {
  display: none;
}
iframe.vimeo-frame {
  pointer-events: none;
  /* optional, avoids clicks */
}
.image-container.scale-1-5 .single-video iframe {
  transform: scale(1.5);
  transform-origin: center center;
}
.image-container.scale-1-8 .single-video iframe {
  transform: scale(1.8);
  transform-origin: center center;
}
.single-video {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.single-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  filter: brightness(0.8);
  transition: all 0.5s ease;
  border: none;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .grid-cont {
    padding: 30px 20px;
  }
  .image-row-1, .image-row-2, .image-row-3, .image-row-4, .image-row-odd, .image-row-even {
    grid-template-columns: 1fr !important;
    height: auto;
  }
  .image-container {
    width: 100% !important;
    height: 215px !important;
    margin: 0 auto;
  }
  .project-title h2 {
    font-size: 20px;
  }
  .project-title h5 {
    font-size: 14px;
  }
  .image-container .project-title h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
  }
  .image-container .project-title h5 {
    font-size: 15px;
  }
}
@media (min-width: 2560px) {
  .grid-cont {
    margin-right: -20px;
  }
  .image-row-1 {
    grid-template-columns: 35% 30% 35%;
  }
  .image-row-2 {
    grid-template-columns: 25% 45% 30%;
  }
  .image-row-3 {
    grid-template-columns: 35% 30% 35%;
  }
  .image-row-4 {
    grid-template-columns: 30% 45% 25%;
  }
  .project-title h2 {
    font-size: 72px;
  }
  .image-container.scale-1-5 .single-video iframe {
    transform: scale(1.8);
  }
  .image-container.scale-1-8 .single-video iframe {
    transform: scale(2.15);
    transform-origin: center center;
  }
}
