@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap");

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Jost", sans-serif;
}

main {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.5s ease-in-out;
}


main {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

/* ... rest of your existing CSS ... */

.slider-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}



.slider-images {
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 15px; */
  gap: calc((100vw - (100vh - 70px)*0.75)*0.035);
}
.slider-images img {
  width: 100%;
  height: 96%;
  object-fit: cover;
  border-radius: 6px;
}
.slider-img {
  width: calc((100vw - (100vh - 70px)*0.75)*0.1);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: 0.7s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-images .slider-img:first-child,
.slider-images .slider-img:last-child {
  height: calc((100vh - 70px)*0.6);
}
.slider-images .slider-img:nth-child(2),
.slider-images .slider-img:nth-child(6) {
  height: calc((100vh - 70px)*0.75);
}
.slider-images .slider-img:nth-child(3),
.slider-images .slider-img:nth-child(4),
.slider-images .slider-img:nth-child(5) {
  height: calc((100vh - 70px)*0.9);
}
h1 {
  font-family: "Jost", sans-serif;
  font-size: 30px; /* Adjust font size to fit vertically */
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
  white-space: nowrap;
  text-align: center;
  transition: 0.7s ease;
}
.details {
  position: absolute;
  bottom: 43px;
  left: 43px;
}
.details h2 {
  font-family: "Jost", sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 44px;
  color: #fff;
  text-transform: uppercase;
  transition: 0.7s ease;
  display: none;
}
.details p {
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 33px;
  color: #fff;
  text-transform: uppercase;
  transition: 0.7s ease;
  display: none;
}
.slider-img.active {
  width: calc((100vh - 70px)*0.75) !important;
  height: calc(100vh - 70px) !important;
}
/* .slider-img.active {
  width: 75% !important;
  height: 100% !important;
} */
.slider-img.active h1 {
  display: none;
}
.slider-img.active .details p,
.slider-img.active .details h2 {
  display: block;
}

@media (max-height: 768px){
  h1{
    font-size: 20px;
  }
}

@media (max-height: 500px){
  h1{
    font-size: 15px;
  }
}

@media (max-width: 650px){
  h1{
    font-size: 0px;
  }
}

@media (max-width: 500px){
  .slider-img.active {
    width: calc((60vh - 70px)*0.75) !important;
    height: calc(60vh - 70px) !important;
  }
  .slider-images .slider-img:first-child,
.slider-images .slider-img:last-child {
  height: calc((60vh - 70px)*0.6);
}
.slider-images .slider-img:nth-child(2),
.slider-images .slider-img:nth-child(6) {
  height: calc((60vh - 70px)*0.75);
}
.slider-images .slider-img:nth-child(3),
.slider-images .slider-img:nth-child(4),
.slider-images .slider-img:nth-child(5) {
  height: calc((60vh - 70px)*0.9);
}
.slider-images {
  gap: calc((100vw - (60vh - 70px)*0.75)*0.035);
}
.slider-img {
  width: calc((100vw - (60vh - 70px)*0.75)*0.1);
}
}
