.button-outline-primary,
.form-control {
  color: var(--text-color);
  transition: 0.3s;
}
.article li,
.article p {
  line-height: 1.45;
}
html {
  height: auto;
}
.swiper-slide:not(:first-child) {
  display: block;
}
.swiper-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.swiper-button-disabled {
  opacity: 0.65;
}
.swiper-pagination {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-control {
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
}
.form-control::placeholder {
  color: var(--label-color);
}
.form-control:focus {
  border-color: var(--primary-color);
}
textarea.form-control {
  height: 110px;
  padding: 12px 16px;
  resize: none;
}
.button-outline-primary {
  width: auto;
  font-size: 15px;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  font-weight: 600;
  min-height: 48px;
  outline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px 25px 7px;
  border-radius: 30px;
  cursor: pointer;
  gap: 8px;
}
.article *,
.btn-close {
  color: #fff;
}
.popup-wrapper {
  position: fixed;
  z-index: 1000;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 15px;
  visibility: hidden;
  opacity: 0;
  height: 100%;
}
.popup-content.active,
.popup-wrapper.active {
  visibility: visible;
  opacity: 1;
}
.popup-wrapper .detail-form {
  width: 100%;
}
.popup-content {
  background: 0 0;
  border-radius: 8px;
  max-width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  transform: translateY(-50%);
  position: absolute;
  left: 15px;
  right: 15px;
  margin-left: auto;
  margin-right: auto;
  top: 50%;
  max-height: 95vh;
  overflow: auto;
  height: 100%;
  z-index: 3;
}

.popup-content[data-rel="gallery"] {
  max-width: 100%;
  left: 0;
  right: 0;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0px;
}
.popup-content[data-rel="photo-popup"] {
  z-index: 2;
}
.popup-container.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 5px;
}
.gallery-thumb {
  position: relative;
  overflow: hidden;
}
.gallery-thumb:before {
  display: block;
  padding-top: 100%;
  content: "";
}
.gallery-thumb img {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.close-popup {
  position: absolute;
  right: 12px;
  top: 15px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.popup-wrapper .layer-close {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
}
.btn-close {
  width: 40px;
  height: 40px;
  font-size: 2vw;
  line-height: 40px;
  text-align: center;
  -webkit-transition: 0.25s;
  -o-transition: 0.25s;
  transition: 0.25s;
  cursor: pointer;
  z-index: 6;
  position: fixed;
  right: 1vw;
  top: 1vw;
}
.btn-close:before {
  content: "\02715";
}
.popup-content .photos {
  display: flex;
  gap: 12px;
  height: 100%;
}
.popup-content .swiper {
  height: 100%;
  width: 100%;
  border-radius: 8px;
}
.popup-content .image {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.popup-content .image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.popup-content .image::before {
  content: "";
  display: block;
  max-height: 90vh;
  min-height: 50vh;
  height: 60vw;
}
.swiper-pagination {
  flex-wrap: wrap;
}
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
  opacity: 0.4;
}
.swiper-horizontal
  > .swiper-pagination-bullets
  .swiper-pagination-bullet-active {
  background-color: #fff;
  opacity: 1;
}
.swiper-slide-zoomed img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
  position: relative !important;
}
.swiper-zoom-container {
  position: absolute;
  top: 0;
  left: 0;
}
.popup-container.article {
  max-width: 1100px;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
}
.article h1 {
  text-align: center;
  margin-bottom: 35px;
}
.article h2 {
  margin-top: 25px;
}
.article ol,
.article ul {
  margin-bottom: 15px;
}
.article li {
  margin-bottom: 6px;
}
@media (max-width: 550px) {
  .swiper-pagination {
    display: none !important;
  }
  .popup-content .arrow {
    display: block;
  }
  .popup-wrapper {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px;
  }
  .popup-content {
    border-radius: 0;
    max-width: 100%;
    left: 10px;
    right: 10px;
  }
  .popup-content .swiper {
    width: 100%;
    border-radius: 4px;
  }
  .popup-content .image::before {
    max-height: 95vh;
    min-height: 75vh;
  }
  .btn-close {
    font-size: 20px;
  }
  .article {
    padding: 20px 0;
  }
  .article li,
  .article p {
    font-size: 14px;
  }

  .popup-container.gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
