body { 
    background-color: #FFFFFF;

}

body.index {
    background: #000 url(Photo-DSC04782.jpg);
    background-repeat: no-repeat;
    background-size: 1920px;
    background-position: 50% 15%;
    /*background-position: center;*/


}


@keyframes animtop {
    0% {transform:translate(0,-10%);}
    100% {transform:translate(0, 0);}
}

@keyframes animbottom {
    0% {transform:translate(0,50%);}
    100% {transform:translate(0, 0);}
}

@keyframes animdelay {
    0% {opacity: 0;}
    100% {opacity: 1;}
}



h1
  {
  /*font-family: 'Ubuntu', sans-serif;*/
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  letter-spacing: 0.9px;
  font-size: 25px;
  color: #222222;
  text-align: center;
  font-style: normal;
  opacity: 0;
  animation: animdelay 2.0s forwards, animtop 1.0s forwards;
  }

.titleindex
  {
  /*font-family: 'Ubuntu', sans-serif;*/
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  letter-spacing: 0.9px;
  font-size: 50px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-style: normal;
  animation: animdelay 2.0s forwards, animtop 1.0s forwards;
  }



h2
  {
  font-family: 'Ubuntu', sans-serif;;
  font-weight: 300;
  letter-spacing: 0.1px;
  font-size: 20px;
  color: #222222;
  text-align:center;
  }



.indeximg
{
    display:inline-block;
    align-items:center;
    width: 50%;
    max-width: 30%;
}



.kvadrat {
     display: inline-block;
     width: fit-content;
     /*background: rgba(80, 180, 80, 0.8);*/
     /*background: rgba(100, 100, 100, 0.5);*/
     background: rgba(0, 0, 0, 0.3);
     padding: 10px;
     text-align: center;
     /*margin-left: 10px;*/
     margin-top: 10px;
    -webkit-border-radius: 5px;
    opacity: 0;
    animation: animdelay 2.0s forwards, animbottom 1.0s forwards;
}






a
  {
  /*font-family: 'Ubuntu', sans-serif;*/
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  letter-spacing: 1.0px;
  font-size: 20px;
  color: white;
  text-decoration:none;

 }

.kvadrat:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.2);

    }

/* ДИСПЛЕЙ ГРИД */
.photo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
    align-content: center;
    margin-inline: 150px;

}




.p {
    display: flex;
    align-items: center;
    justify-content: center;  
    /* border:2px solid #000; */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 2.1%;
    opacity: 0;
    animation: animdelay 2.0s forwards, animbottom 1.0s forwards;
    
}





.p img {
    opacity: 1;
    /* transition: opacity .9s ease; */
    /* transition: scale 1.9s ease; */
}

.p img.horizontalp {
    height: 100%;
    
}

.p img.verticalp {
    width: 100%;
    
}


.photo img:hover {
    opacity: 0.95;
    transition: opacity .2s ease;
    
    cursor: pointer;
}


.photo .p:hover {
    transform: scale(1.005);
    cursor: pointer;
}

.windows {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
    display: none;  
}






.windows  img.vertical {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    
}    

.windows  img.horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    
    
}
  

.windows #close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgb(150,150,150);
    font-size: 30px; 
    font-weight: 700; 
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    z-index: 2000;


} 


#prev {
    position: fixed;
    top: 50%;
    left: 1%;
    width: 10%;
    height: 10px;
    /* background: rgb(0,0,0); */
    font-size: 30px; 
    font-weight: 700; 
    /* text-align: center; */
    line-height: 10px;
    border-radius: 50%;
    cursor: pointer;
    color: rgb(150, 150, 150);


} 


#next {
    position: fixed;
    top: 50%;
    right: 2.5%;
    width: 10px;
    height: 10px;
    /* background: rgb(0,0,0); */
    font-size: 30px; 
    font-weight: 700; 
    line-height: 10px;
    border-radius: 50%;
    cursor: pointer;
    color: rgb(150, 150, 150);


} 

#prevblock {
    position: fixed;
    opacity: 0.0;
    left: 5px;
    width: 40%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.05)
}

#nextblock {
    position: fixed;
    opacity: 0.0;
    right:5px;
    width: 40%;
    height: 100%;
    background-color: blue;
    z-index: 1000;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(240, 240, 240, 0.05)

}



ul {
    display:block;
    /*margin-left: 3%;*/
    /*justify-content: center;*/
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    padding-inline-start: 0px;
    /*align-items: center;*/

}

li {
    display:block;
    /*justify-content: center;
    align-items: center;*/
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    list-style-type: none;
}


.loadwin0, .loadwin1 {
    position: absolute;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    letter-spacing: 0.9px;
    font-size: 50px;
    color: black;
    text-align: center;
    font-style: normal;
    top: 50%;
    left: 850px;

}


/* АДАПТИВНОЕ ИЗМЕНЕНИЕ*/
@media (max-width: 1920px) {

.photo {
    margin-inline: calc(10px + (150 - 10) * ((100vw - 320px) / (1920 - 320)));  
}

h1 {
    font-size: calc(15px + (25 - 15) * ((100vw - 320px) / (1920 - 320)));
}

.loadwin0, .loadwin1 {
    left:  calc(30px + (850 - 30) * ((100vw - 320px) / (1920 - 320)));
}

/*body.index {
    background-size: calc(1920px + (1920 - 1920) * ((100vw - 320px) / (1920 - 320)));
}*/

}


@media (max-width: 991px) {
    .photo {
        grid-template-columns: repeat(4, 1fr);
        } 
    }





    @media (max-width: 767px) {
.photo {
    grid-template-columns: repeat(3, 1fr);
    }

    .windows  img.vertical, .windows  img.horizontal  {
    max-width: 95%;
    max-height: 95%;
}

#prev, #next {
    display: none;
}
}



@media (max-width: 480px) {
    .photo {
        grid-template-columns: repeat(2, 1fr);
        }
    
        .windows  img.vertical, .windows  img.horizontal  {
        max-width: 95%;
        max-height: 95%;
    }
    
    #prev, #next {
        display: none;
    } 
    }



