* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8f5ff; /* Нежно-фиолетовый фон */
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0;
  padding-bottom: 20px;
}

root {
  --timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-duration: 250ms;
}

#search-form {
  position: fixed;
  width: 100%;
  display: block;
  font: inherit;
  padding: 15px;
  margin-bottom: 16px;
  background-color: #e8dff5; /* Светло-фиолетовый фон */
  text-align: center;
  z-index: 999;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#search-form input {
  height: 35px;
  width: 250px;
  padding: 5px 10px;
  border-width: 1px;
  border-color: #a48ccf; /* Фиолетовая рамка */
  background-color: #f5f0ff; /* Светлый фон */
  border-radius: 8px;
  border-style: solid;
  font-size: 16px;
  color: #4a4a4a;
  transition: box-shadow 0.3s ease;
}

#search-form input:focus {
  outline: none;
  box-shadow: 0px 0px 8px rgba(164, 140, 207, 0.8); /* Фиолетовое свечение */
}

#search-form button {
  height: 35px;
  width: 90px;
  border-width: 1px;
  border-color: #a48ccf;
  background-color: #d6c8f2; /* Нежно-фиолетовый */
  border-radius: 8px;
  border-style: solid;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#search-form button:hover {
  background-color: #a48ccf; /* Более насыщенный фиолетовый */
  box-shadow: 0px 4px 6px rgba(164, 140, 207, 0.5);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  padding-top: 80px;
  max-width: 1200px;
}

.photo-card {
  width: calc((100% - 60px) / 4);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.info,
.stats {
  display: flex;
  justify-content: space-evenly;
  font-size: 14px;
  padding: 10px;
  background-color: #f5f0ff; /* Светло-фиолетовый фон */
}

.gallery-image:hover {
  transform: scale(1.05);
}

.gallery-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform var(--animation-duration) var(--timing-function);
}

.gallery-link {
  display: block;
  text-decoration: none;
  height: 180px;
}

.gallery-link:hover {
  cursor: zoom-in;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

button.load-more {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: 40px;
  width: 150px;
  border-width: 1px;
  border-color: #a48ccf;
  background-color: #d6c8f2;
  border-radius: 8px;
  border-style: solid;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button.load-more:hover {
  background-color: #a48ccf;
  box-shadow: 0px 4px 6px rgba(164, 140, 207, 0.5);
}

button.load-more.is-hidden {
  display: none;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
