.dif_icon img {
  width: 80px;
  height: 80px;
  margin-right: 10px;
}
.lens-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 2rem auto;
}

.lens-img {
  width: 100%;
  height: 100%;
  display: block;
}

.slider-container {
  width: 300px;
  margin: 1rem auto;
  text-align: center;
  font-family:"Mogra";
  font-size:2rem;
}

input[type="range"] {
  width: 100%;
}


.image-container {
  position: relative;
  width: 400px;  
  height: 300px;
  margin: 2rem auto;
  overflow: hidden;  
}

.frame {
  width: 450px;
  height: 280px;
  overflow: hidden;
  position: relative;
  margin: 0.5vw auto;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  top:75%;
   transform-origin: 50% 75%;

}

.cat {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 15%;    
  height: auto;
  transform: translate(-50%, 60%);
  z-index: 1;   
  pointer-events: none; 
}

#focalLength {
  width: 300px;
  display: block;
  margin: 20px auto;
}

.focal_length_layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.diagram {
  text-align: center;
  margin-top: 1rem;
}

.diagram img {
  max-width: 100%;
  height: auto;
}
.diagram { text-align:center; margin-top:1rem;
   width: 450px; height: auto;
}


.focal_length_text{
  flex: 1;
  font-family: "Edu AU VIC WA NT Hand";
  font-size: 1.2rem;
  line-height: 1.6;
}

header .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Potta One' ;
  font-size: 3rem;  
  color: black;
}


@media (max-width: 740px) {

.gallery-container img {  
  width: 80%;
  height: auto;
  object-fit: cover; 
  border-radius: 8px; 
  transition: transform 0.3s;
}



header .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Potta One' ; 
  font-size: 7vw;  
  color: black;
}

.dif_icon img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.image-container {
  position: relative;
  width: 100%;  
  height: auto;
  overflow: hidden; 
}

.frame {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0.5vw auto;
}

.diagram img {
  max-width: 100%;
  height: auto;
}
.diagram { text-align:center; 
margin-top:1rem;
   width: 100%;
   height: auto;
}

.header-subtitle {
  font-family: 'Mogra', cursive;
  font-size: 2rem; 
  text-align: center; 
  margin-top: 2rem;  
  color: black;   
}

.gallery-container img:hover {
  transform: scale(1vw); 
  
}
  .focal_length_layout {
    flex-direction: column;
    align-items: center;
  }

  .focal_length_text {
    margin-top: 2rem;
    text-align: center;
  }

  
}
