@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

@font-face {

    font-family: 'renue';
 
   src: url('../renuecyr-bold.ttf');
 
 }
 
 @font-face {
 
    font-family: 'B52';
 
   src: url('../B52.ttf');
 
 }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline:none;
}

body {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    background-color: #9e9e9e;
    background-image: url(images/bg.jpg);
    background-attachment: fixed;
}

nav,
#caption {
    font-family: 'B52', Century Gothic, Helvetica, CenturyGothic,Open Sans, Verdana, sans-serif;

}

img {
    max-width: 100%;
}

h1,
h2 {
    color: #96c93d;
    margin-bottom: 15px;
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

.navbar {
    background: #222;
    text-align: center;
    border: 1px solid #111;
    cursor: pointer;
    color: #96c93d;
    height: 60px;
}

.navbar .logo {
    font-size: x-large;
    font-weight: bold;
}

.navbar a {
    color: #96c93d;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.navbar a:hover {
    color: #fff;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.header {
    background: #222;
    color: #fff;
}

.header h1 {
    font-size: 3rem;
    font-weight: bold;
}

.header .container {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

.boxes .container {
    display: flex;
    justify-content: space-between;
}

.box {
    flex: 1;
    background: #222;
    text-align: center;
    border: 1px solid #111;
    border-radius: 10px;
    margin: 20px 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
    padding: 15px 20px;
}

.box i {
    margin-right: 10px;
}

.gallery {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding: 3% 5%; 
}

.none {
    visibility: hidden;
}

.gallery .tumbnail {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.tumbnail .imgHolder {
    margin: 0.5% 0.5%;
    width: 24%;
    aspect-ratio:1/1;
    overflow: hidden;  
}

.imgHolder img {
    /* width: 100%; */
    height: 100%;
    width: auto;
    background-position: center;
    background-size: cover;
}

.tumbnail img:first-child {
    padding-left: 0;
}

/* MODAL BOX STARTS HERE */

.myImg,
.myVideo1,
.myVideo2,
.myVideo3,
.myVideo4,
.myVideo5 {
    cursor: pointer;
    transition: 0.3s;
  }
  
  .myImg:hover,
  .myVideo1:hover,
  .myVideo2:hover,
  .myVideo3:hover,
  .myVideo4:hover,
  .myVideo5:hover {
      opacity: 0.7;
    }
  
  /* The Modal (background) */
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (image) */
  .modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  /* Caption of Modal Image */
  #caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }

  .close p {
    font-family: 'B52', Century Gothic, Helvetica, CenturyGothic,Open Sans, Verdana, sans-serif;
    font-size: 12px;
    line-height: 1;
  }
  
  /* Add Animation */
  .modal-content, #caption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.5s;
    animation-name: zoom;
    animation-duration: 0.5s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0.5);
            opacity:0;} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0.5);
            opacity:0;
    } 
    to {transform:scale(1);
          opacity:1;
    }
  }
  
  /* The Close Button */
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.8s;
  }
  
  .close:hover,
  .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

@media(max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding-top: 20px;
        text-align: center;
    }

    .boxes .container {
        display: block;
        text-align: center;
    }

    .tumbnail .imgHolder{
        width:48%;
    }

    .modal-content {
        width: 100%;
      }
}