/* (A) GALLERY WRAPPER */
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Condensed');

body {
  background-color: #1f1f04;
  background-image: url('/images/ReyGallery.jpg');
}

.common {
  background-color: #1f1f04;
  background-image: url('/images/ReyGallery.jpg');
}

#navbar {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#navbar li {
  display: inline;
}

#navbar a {
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  width: 300px;
}

#navbar a:hover {
  border-radius: 20px 5px;
  background-color: #0066FF;
}

.btn {
  cursor: pointer;
  border: 1px solid #3498db;
  background-color: transparent;
  height: 30px;
  width: 300px;
  color: rgb(21, 255, 0);
  font-size: 18px;
  box-shadow: 0 6px 6px rgba(50, 25, 25, 0.6);
}

a[href^="mailto:"] {
  font-size: 16px;
  line-height: 32px;
  color: #27ef60;
}

a:visited {
  color: #cecece;
  /* Цвет посещенных ссылок */
}

a:active {
  color: rgb(21, 255, 0);
  /* Цвет активных ссылок */
}

.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 */
/* (B1) FIGURE CONTAINER */
.gallery figure {
  padding: 10px;
  margin: 0;
  border: 1px solid #ddd;
  background: #fff;
}

/* (B2) IMAGE DIMENSION */
.gallery img {
  width: 100%;
  height: 180px;
  /* optional */
  object-fit: cover;
  /* cover | contain | fill | scale-down */
}

/* (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;
}

/* (X) NOT IMPORTANT */
* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}