*{
    margin: 0;
    padding: 0;
    font-family: "Special Gothic Condensed One", serif;
    letter-spacing: 2px;
    box-sizing: border-box;
}
@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}
.bio h1{
    animation: appear 2s linear;
}
.bio h2{
    animation: appear 2s linear;
}
.bio h3{
    animation: appear 2s linear;
}
.bio h4{
    animation: appear 2s linear;
}
.slika{
    animation: appear 5s linear;
    animation-timeline: view();
    animation-range: entry 0 cover 30%;
}
body {
    background-color: black;
}
.nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 25px;
    background-color: #000000;
    height: 70px;
}
.nav ul{
    list-style: none;
    display:flex;
    gap: 50px;
}
.nav a{
    color: white;
    text-decoration: none;
    font-size: 25px;
}
.nav a:hover{
    color: rgb(188, 17, 17);
}
.bio {
    background-color: black;
    background-image:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.6) 60%,
      rgba(0,0,0,1) 100%
    ),
    url("slika6.jpg");
    height: 900px;
    background-size: cover;
    background-position: center;
    color: rgb(218, 15, 15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    gap: 10px;
}
.bio h1{
     font-family: "Kurale", serif;
     font-size: 96px;
     letter-spacing: 50px;
     line-height: 73px;
     text-shadow: 0 10px 100px rgba(0,0,0,1);
}
.bio h2 {
  font-family: "Kurale", serif;
    letter-spacing: 18px;
    font-size: 30px;
    color: white;
    text-shadow: 
        -1px -1px 0 #323232,  
         1px -1px 0 #323232,
        -1px  1px 0 #323232,
         1px  1px 0 #323232;
}
.bio h3{
    font-family: "Kurale", serif;
    font-size: 100px;
    letter-spacing: 50px;
}
.gradient-text-h1 {
    height: auto;
    background: linear-gradient(
    to bottom,
    white 30%,
    #ff8b8b 70%,
    #ff3b3b 100%,
    #ff2929 100%
  );
    background-clip: text;
  -webkit-background-clip: text;
  color: transparent; 
  -webkit-text-fill-color: transparent;
}
.gradient-text-h3 {
    height: auto;
    background: linear-gradient(
    to top,
    white 30%,
    #ff8b8b 60%,
    #ff3a3a 80%,
    #ff2222 100%
    
  );
    background-clip: text;
  -webkit-background-clip: text;
  color: transparent; 
  -webkit-text-fill-color: transparent;
}
.bio h4{
  font-size: 100px;
  letter-spacing: 50px;
  font-family: "Kurale", serif;
    height: auto;
    background: linear-gradient(
    to bottom,
    white 20%,
    #ff8b8b 70%,
    #ff3b3b 90%,
    #ff2222 100%
  );
    background-clip: text;
  -webkit-background-clip: text;
  color: transparent; 
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 840px;

}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
}

.gallery img {
  border-radius: 15px;
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
}

/* STRELICE */
.arrow {
  position: absolute;
  width: 60px;
  cursor: pointer;
  user-select: none;
}

.arrow.left {
  left: 40px;
}
.arrow.right {
  right: 40px;
}
.rights{
    background-color: rgb(110, 0, 0);
    color: white;
    height: 70px;
    font-size: 18px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;

}

@media (max-width: 768px) {
    .nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #000000;
    height: auto;
   }
    .nav ul{
    list-style: none;
    display:flex;
    }
    .nav a{
        font-size: 15px;
    }
    .bio {
        height: 300px;
        background-size: 140%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-position-x: -50px;
    }
    .bio h1{
        margin-top: 50px;
        font-size: 30px;
        letter-spacing: 12px;
        line-height: 1;
    }
    .bio h3{
        font-size: 30px;
        letter-spacing: 12px;
        line-height: 1;
    }
    .bio h2{
        font-size: 12px;
        letter-spacing: 5px;
    }
    .bio h4{
        font-size: 30px;
        letter-spacing: 12px;
        line-height: 1;
        position: relative;
        top: 70px;
    }
    .gradient-text-h1,
    .gradient-text-h3{
        height:auto;
    }
    .gallery{
      display: flex;
      flex-direction: column;
    }
    .gallery img{
    height: 200px;
    }
    .rights{
        font-size: 11px;
        height: auto;
        padding: 10px;
    }
    #prev{
      height: 200px;
      width: 60px;
    }
    #next{
      height: 200px;
      width: 60px;
    }
  }

/*tablet*/
@media (min-width: 768px) and (max-width:1024px){
    .nav a{
        font-size: 20px;
    }
    .bio {
        height: 430px;
        background-size: 110%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-position-x: 0px;
    }
    .bio h1{
        margin-top: 50px;
        font-size: 50px;
        letter-spacing: 12px;
        line-height: 1;
    }
    .bio h3{
        font-size: 50px;
        letter-spacing: 12px;
        line-height: 1;
    }
    .bio h2{
        font-size: 20px;
        letter-spacing: 5px;
    }
    .bio h4{
      font-size: 50px;
      letter-spacing: 12px;
      position: relative;
      top:100px;
    }
    .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 slike u redu */
  gap: 15px; /* razmak između slika */
}
    .rights{
        font-size: 13px;
        height: auto;
        padding: 10px;
    } 
  }