* {
  margin: 0rem;
  padding: 0;
  box-sizing: content-box;
}

html {
  margin-top: 0rem;
}

body {
  display: grid;
  grid-template-columns: 2fr 1fr; 
  border-width: 0rem;
  align-items: start; 
  justify-content: start; 
  max-width: 100%;
  font-family: FT88-E;
  font-weight: 200;
  font-style: normal;
  overflow: auto;
  background-color: #000000;
}

main {
  grid-column: 2; 
  height: fit-content; 
  width: 100%; 
  background-color: rgba(0, 0, 0, 0);
  margin-right: 0rem;
  background-position-x: center;
}

.photos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0px;
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
}
.photos img {
  width: 200px;
  height: auto;
  max-height: 550px;
  max-width: 650px;
  margin-right: -2.5rem;
  margin-bottom: -5.7rem;
  position: relative;
  object-fit: cover;
  clip-path: polygon(0% 0%, 80% 0%, 80% 80%, 0% 80%);
  aspect-ratio: 1.1 / 2.2;
  filter: grayscale(100%);
  background-color: rgb(0, 0, 0);
  z-index: 40; 
}
.photos img:hover{
  grid-row: 1;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  filter: blur(0px);
  border-radius: 0%;
  border: 2.7px solid #000000;
  opacity: 100%;
  padding: 0.2rem;
  position: fixed;
  top: 15.5%;
  right: 50%;
  scale: 1.47;
  z-index: 100;
  justify-content: center;
  align-items: center;
  clip-path: view-box;
  background-color: #ffffff;
  margin-bottom: 7px;
}


.info-box {
  position: fixed;
  bottom: 0rem;
  left: -1rem;
  width: fit-content;
  height: 5rem;
  background-color: #000000a6;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  text-align:start;
  font-size: 7rem;
  letter-spacing: 88px;
  padding-top: 22px;
  z-index: 43;
}
.info-box:hover {
  width: 100vw;
  height: 100vh;
  justify-content: left;
  align-items: center;
  text-align: left;
  text-decoration: none;
  z-index: 70;
  background-color: #ffffff92;
}
.info-box span {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: 3rem;
  letter-spacing: -1px;
  color: #000000;
  margin: 7rem;
  font-family: FT88-S;
  text-align: left;
  line-height: 2.7rem;
}

.info-box .hover-trigger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: rgba(255, 0, 0, 0.562);
  z-index: 300;
}
.info-box:hover span {
  opacity: 1;
  z-index: 41;
}
.info-box:hover::before {
  content: none;
}
.info-box::before {
  content: "PLARTEAU";
  transition: transform 0.5s ease-in-out, content 0s 0.5s; /* Delay text change until movement is done */
  margin-left: 2rem;
  z-index: 42;
  display: inline-block;
}

.photos img:hover ~ .info-box::before {
  transform: translateX(10rem); /* Moves to the right end of the screen */
  content: "ART"; /* Changes text after moving */
  transition: transform 0.5s ease-in-out; /* Smooth rightward transition */
  opacity: 0;
}

.info-box:hover::before {
  opacity: 0;
}

@media (max-width: 768px) {
  .info-box {
      width: 100vw;
      height: 10vw;
      font-size: 4vw;
      letter-spacing: 3vw;
  }
  .info-box:hover {
      width: 100vw;
      height: 100vh;
      justify-content: left;
      align-items: center;
      text-align: left;
  }
  .info-box span {
      font-size: 4vw;
  }

  .photos img {
      width: 40vw;
      max-width: 200px;
  }
  .photos img:hover{
    height: fit-content;
    max-height: 333px;
    margin-left: 10px;
  
  }
}