body{
    background-color: #000;
    color: #fff;
}

/* ----------------------------------- */
/*            Hero section             */
/* ----------------------------------- */
.services_hero {
    height: var(--viewport-section-height);
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    position: relative;
    top: 0;
    transition: opacity 0.4s ease-out;
}

.services_hero > picture {
  position: absolute;
  inset: 0; /* top 0 right 0 bottom 0 left 0*/
  width: 100%;
  height: 100%;
  z-index: -1;
}

.services_hero_bg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* similar to background-size: cover */
  z-index: -1; /* if set to 0 the border of the hero-content is not seen anymore as by default has 0 z-index */
}

.services_hero_bg_overlay{
    background: rgba(0, 0, 0, 0.3); /* dark overlay */
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services_hero h1 {
  position: relative;
  z-index: 2; /* text will be above the dark overlay */
  color: #fff;
  text-transform: uppercase;
}

.services_hero h1{
    font-size: clamp(2rem, 2vw, 4rem);
    letter-spacing: 1.5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

/* alignment of h1, paragraph + line border */
.services_hero_content {
  margin-top: calc(var(--viewport-section-height) * 0.17);
  margin-left: 19.5vw;
  border-left: 1px solid white;
  padding-left: 1rem;
  position: absolute;
}

/* scroll down arrow */
.scroll_arrow_container {
  position: absolute;
  bottom: 80px;

  /* center horizontally */
  left: 50%;
  transform: translateX(-50%);

  width: 32px;
  height: 32px;
  background-color: #ccc;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: background-color 0.3s;
  animation: upNdown 3s infinite linear;
  z-index: 2;
}

.scroll_arrow_container:hover {
  background-color: #aaa;
}

.scroll_arrow_container img {
  width: 22px;
  height: auto;
}

@keyframes upNdown {
  0%, 100% {
    transform: translateX(-50%) translateY(0); 
  }
  50% { 
    transform: translateX(-50%) translateY(-15px); 
  }
}

/* ----------------------------------- */
/*            My Services section      */
/* ----------------------------------- */
.my_services{
  width: 100%;
  position: relative;
  padding: 60px 10px 10px 10px;
}

/* The grid */
.my_services_container {
  width: 100%;
  max-width: 100%;
  position: relative;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background-color: #fff;
}

/* Hrefs need to be positioned relative so the .client_content div child can be positioned absolute in the center */
.my_services_container a {
  position: relative; /* parent for absolute text overlay -> .client_content */
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.my_services_container img:hover {
  transform: scale(1.01);
}

.my_services_container img {
  transition: transform 0.4s linear;
}

.services_item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

/* Image fills the grid cell */
.my_services_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* H2 and paragraphs centered in the grid cells => I could've set top/left/transform here and not treat 
separately the H2 and the 2 paragraphs, but then because p2 has more text, the whole div block will be set to 
center with this approach, making the VIDEOGRAPHY header move up a bit more comparing to PHOTOGRAPHY, which I
didn't want, hence that's why I chose to treat them separately and not apply the logic on .services_item_content */
.services_item_content {
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-align: center;
}

.center_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.presentation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% + 35px);
  line-height: 1.3;
  max-width: 90%;
}

.services_item_content h2{
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2vw, 3rem);
  letter-spacing: 1.5px;
}

.services_item_content p{
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  font-weight: 320;
}

.services_item_content .discover{
  text-decoration: underline;
}

/* Dark overlay over the grid cell images */
.services_item_cover::after {
    content: "";                
    position: absolute;
    inset: 0;                     
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* ----------------------------------- */
/*            Media Queries            */
/* ----------------------------------- */

/* Background photo position */
@media (max-width: 1023px) {
  .services_hero_bg {
    object-position: calc(50% - 100px) center;
  }
}

@media (max-width: 767px) {
  .services_hero_bg {
    object-position: calc(50% - 140px) center;
  }
}

/* Responsive: switch to 1 column on smaller screens */
@media (max-width: 700px) {
  .my_services_container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 645px){
  .services_hero_bg {
    object-position: calc(50% - 170px) center;
  }
}

@media (max-width: 500px) {
  .services_hero_content {
    margin-left: 16vw;
  }
}