body{
  background-color: #2c2c2c;
  min-height: 100vh;
}

.navlink:active{
  color:#FF5F5F;
  background-color: #2c2c2c;
}
.navlink:active:hover{
  color:#fcfcfc;
}


.gallerbtn{
  min-height: 50px;
  min-width:auto;
  background-color: #2c2c2c;
  padding: 10px;
  border: solid 2px #2c2c2c;
  margin-top: 2%;
}
.gallerbtn a{
  text-decoration: none;
  font-family: 'Oswald';
  font-weight: normal;
  color:#fcfcfc;
}
.gallerbtn a:hover{
  color:#2c2c2c;
}
.gallerbtn:hover{
  background-color: #FF5F5F;
  border: solid 2px #FF5F5F;
}

/* gallery CSS */

.gallerycontainer{
  margin: 0;
  padding-top:100px;
  padding-right: 5%;
  padding-left: 5%;
  border-bottom: #FF5F5F 2px solid;
}
.gallerycontainer h1{
  color: #fcfcfc;
  font-size: 60px;
  font-family: 'Oswald';
  font-weight: normal;
  padding-bottom: 2%;
}

/* end gallery */


.gallerbtn{
  min-height: 50px;
  min-width:auto;
  background-color: #FF5F5F;
  padding: 10px;
  border: solid 2px #FF5F5F;
  margin-bottom: 5%;
}
.gallerbtn a{
  text-decoration: none;
  font-family: 'Oswald';
  font-weight: normal;
  color:#2c2c2c;
}
.gallerbtn a:hover{
  color:#FF5F5F;
}
.gallerbtn:hover{
  background-color: #fcfcfc;
  border: solid 2px #fcfcfc;
}
/* Portrait tablets and landscape mobiles */
@media only screen and (max-width: 480px) {
  .list-group-item{
    font-size: small;
  }
  .container-fluid h1{
    font-size: 45px;
  }
}
@media only screen and (max-width: 820px) {
  main {
    margin: 100px 5%;
    min-height: calc(100vh - 50px - 75px); /* Adjust 50px according to your footer height */
  }
  .container-fluid h1{
    font-size: 50px;
  }
}


/* gallery 2 */


.gallery {
  /* (A1) GRID LAYOUT - 3 IMAGES PER ROW */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;

  /* (A2) OPTIONAL WIDTH RESTRICT */
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

/* (B) GALLERY IMAGES */
.gallery img {
  /* (B1) DIMENSION */
  width: 100%;
  height: 180px; /* optional */
  padding: 0;

  /* (B2) COLORS */
  border: 1px solid #fcfcfc;
  /* background: #2c2c2c; */
  border-radius: 5px;

  /* (B3) IMAGE RESIZE */
  object-fit: cover;
}

/* (C) ON SMALL SCREENS - 2 IMAGES PER ROW */
@media only screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* (D) OPTIONAL ZOOM ON HOVER */
.gallery img:hover {
  z-index: 9;
  transform: scale(1.3);
  /* linear | ease | ease-in | ease-out | ease-in-out */
  transition: transform ease 0.5s;
}

/* (E) FULLSCREEN MODE */
.gallery img.full {
  position: fixed;
  top: 0; left: 0; z-index: 999;
  width: 100vw; height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.7);
}
.gallery img.full:hover {
  z-index: 999;
  transform: none;
}

/* lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 35vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  margin: 0 auto;
}

.lightbox-content {
  margin: 0 auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

#lightboxImg {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin:0 auto;
}


.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #FF5F5F;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #2c2c2c;
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #FF5F5F;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.9);
  border: solid 1px #fcfcfc;

}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.next {
  right: 0;
  border-radius: 3px 3px 3px 0;
}

.prev:hover,
.next:hover {
  color: #2c2c2c;
}
