body {
  margin: 28px!important;
  background: #f8f9fa!important;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo {
  width: 75px;
  height: 51px;
  object-fit: cover;
  display: inline-block;
  margin: 2px;
}

.photo:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* Модальное окно */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.custom-modal-content {
  max-width: 80%;
  max-height: 80%;
  display: block;
}

.caption {
  text-align: center;
  color: white;
  font-size: 16px;
  padding: 10px;
}

.close {
  color: white;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
  padding: 10px;
  cursor: pointer;
}

.prev, .next {
  color: white;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.bg-yellow {
  color: #854d0e!important;
  padding: 9px 16px!important;
  background-color: #fefce8!important;
}

.alert {
  font-size: 11px!important;
  background: #c7b9a200!important;
  color: black!important;
  border-radius: 52px!important;
  border: 1px solid #854d0e!important;
}

.alert h3 {
  font-size: 12px;
  color: #333;
  text-align: center;
}

.alert ul {
  padding-left: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.header button {
  color: #854d0e !important;
  padding: 9px 16px !important;
  background-color: #fff8b5 !important;
  font-weight: bold!important;
  border: 1px solid #854d0e !important;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header button:hover {
  cursor: pointer;
  background-color:#fff3cd !important;
  transform: translateY(-3px);
}
