body {
  box-sizing: border-box;
  font-family: Arial;
  margin: 0;
  background-color: #ddd;
  height: 100vh;
}

header {
  background-color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  color: #481212;
  font-weight: 300;
  margin-bottom: 10px;
}

main {
  width: 800px;
  padding: 5px;
  box-sizing: border-box;
  margin: 0 auto;
  background-color: #eee;
}

.btn {
  display: inline-block;
  background-color: firebrick;
  padding: 6px 12px;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  filter: brightness(1.1);
}

.hes-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
  padding: 10px;
  columns: 4;
}

.hes-gallery img {
  width: 100%;
  object-fit: cover;
  transition: 0.3s;
  cursor: pointer;
}

.hes-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 2px 2px 6px #555;
}

h2 {
  margin-top: 30px;
  margin-bottom: 5px;
  font-variant: small-caps;
  text-align: center;
  color: #481212;
}

h3 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-variant: small-caps;
  text-align: center;
  color: #481212;
}

p {
  margin: 0;
}

@media (max-width: 800px) {
  main {
    width: 100%;
  }
  header img {
    width: 80%;
    object-fit: contain;
  }
  .hes-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .hes-gallery {
    grid-template-columns: 1fr 1fr;
  }
}


a {
    color: #394c41; /* Öâåò îáû÷íîé ññûëêè */ 
    text-decoration: none; /* Óáèðàåì ïîä÷åðêèâàíèå */
    font-variant: small-caps;
    font-size: 20px;
}
a:visited {
    color: #394c41; /* Öâåò ïîñåù¸ííîé ññûëêè */
    font-variant: small-caps;
    font-size: 20px;
} 
a:hover {
    color: #394c41; /* Öâåò ññûëêè ïðè íàâåäåíèè íà íåå êóðñîðà ìûøè */  
    font-variant: small-caps;
    text-decoration: none; 
    font-size: 20px;
}
     

.hide-on-mobile { display: inline; }
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){ .hide-on-mobile { display: none; }}

.show-on-mobile { display: none; }
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){ .show-on-mobile { display: inline; }}

