/* Change the amount it zooms on hover & the tint with the variables below. */

:root {
  --zoomAmount: 140%;
  --tint: DeepSkyBlue;
  --accent: dodgerblue/*for text box borders*/;
}

/* ------------------------------ onload hero section -------------------------------------- */
   body {
     font-family: 'Inter', sans-serif;
   }
   .background-images {
     position: fixed;
     inset: 0;
     z-index: -1;
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     grid-template-rows: repeat(2, 1fr);
     width: 100vw;
     height: 100vh;
     /* overflow: hidden; */
     opacity: 0;
     transform: scale(1.05);
     animation: fadeScaleIn 1.2s ease forwards;
     animation-delay: 0.3s;
   }
   .background-images img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: brightness(0.5) saturate(1.2);
     transition: filter 0.3s ease, transform 0.3s ease;
   }
   .background-images img:hover {
     filter: brightness(0.8) saturate(1.4) drop-shadow(0 8px 15px rgba(0,0,0,0.4));
     transform: scale(1.05);
     z-index: 1;
     position: relative;
   }
   section {
     opacity: 0;
     transform: translateY(20px);
     animation: fadeUpIn 1s ease forwards;
     animation-delay: 1.5s;
   }
   @keyframes fadeScaleIn {
     to {
       opacity: 1;
       transform: scale(1);
     }
   }
   @keyframes fadeUpIn {
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
/* ------------------------------- End onload hero section ------------------------------------- */
/* --------------------------------- location section shift up  ------------------------------- */
.negative-shift {
  /* position: absolute; */
  margin-top: -150px;
  margin-bottom: 20px;
  margin-left: -50px;
}
/* --------------------------------- End location section shift up  ------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Libre Bodoni", serif;
}

body,
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  
  backface-visibility: hidden; /* Force GPU Usage */
}

body > * {
  width: 100%;
  height: auto;
  max-width: 1900px;
}

body > figure {
  position: absolute;
  margin: 0;
  top: 0;
  width: 100%;
  height: auto;
  min-height: 750px;
  max-height: 750px;
  z-index: -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #999;
}

figure figcaption {
  margin: 0;
}

figure figcaption h1 {
  position: relative;
  font-size: 120pt;
  line-height: 120pt;
  color: white;
  text-shadow: 1px 1px 0px black, 2px 2px 0px black, 3px 3px 0px black;
  font-weight: 900;
  margin: 0;
  overflow: hidden;
  padding: 0 15px;
}

figure figcaption h1::after {
  position: absolute;
  bottom: 0;
  right: 100%;
  width: 100%;
  height: 20px;
  background: white;
  content: "";
  transition: all 1s ease;
}

body > header:hover ~ figure figcaption h1::after {
  right: 0;
  transition: all 1s ease;
}

body > header,
body > header > div {
  background: url("https://picsum.photos/id/872/3840/2160");
  background-size: 100%;
  background-position: bottom;
  background-attachment: fixed;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  transition: all 0.5s ease-in-out;
}

body > header {
  background: var(--tint);
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 750px;
  max-height: 750px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
  z-index: 1;
}

body > header > div {
  width: 50px;
  height: 50px;
  mix-blend-mode: luminosity;
}

body > header > div:hover,
body > header > div:hover ~ div {
  background-size: var(--zoomAmount);
  transition: all 0.5s ease-in-out;
}

article {
  position: relative;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
  z-index: 1;
}

article p {
  font-size: 14pt;
  line-height: 22pt;
  color: black;
  border-left: 3px solid var(--accent);
  padding: 30px 40px;
  background: #eee;
  font-weight: 300;
  word-spacing: 5px;
  border-radius: 0 20px 0 0;
}

article p:first-letter {
  font-size: 200%;
  font-weight: 600;
  margin-right: 1px;
}

@media (max-width: 1250px) {
  body > header,
  body > figure {
    max-height: 500px;
    min-height: 500px;
  }
  figure figcaption h1 {
    font-size: 70pt;
    line-height: 78pt;
    text-align: center;
  }
  body > header,
  body > header > div {
    background-position: center !important;
  }
  body > header > div {
    width: 40px;
    height: 40px;
  }
  .negative-shift {
  /* position: absolute; */
  margin-top: -250px;
  margin-left: -60px;
  }
}

@media (max-width: 400px) {
  figure figcaption h1 {
    font-size: 54pt;
    line-height: 62pt;
  }
  .negative-shift {
  /* position: absolute; */
  margin-top: -180px;
  margin-left: -25px;
  }
}
