.photogallery-section {
  background-color: #323232;
  padding: 10px 0 150px 0;
}

.photogallery-section__tabs {
  border-radius: 2px;
}

.modal__form-input-error {
  border: 1px solid #ff0000;
}

@media (max-width: 834px) {
  .photogallery-section {
    padding: 0px 0px 50px 0px;
  }
}
@media (max-width: 360px) {
  .photogallery-section {
    padding: 30px 0px;
  }
}

.photogallery-section__tabs {
  width: 1340px;
  height: 75px;
  margin: auto;
  background-color: #ffffff;
}

@media (max-width: 1370px) {
  .photogallery-section__tabs.row {
    width: 1200px;
  }
}
@media (max-width: 1240px) {
  .photogallery-section__tabs.row {
    width: 1000px;
  }
}
@media (max-width: 1030px) {
  .photogallery-section__tabs.row {
    width: 900px;
  }
}
@media (max-width: 930px) {
  .photogallery-section__tabs.row {
    width: 800px;
  }
}
@media (max-width: 834px) {
  .photogallery-section__tabs.row {
    width: 700px;
    height: 77px;
  }
}
@media (max-width: 734px) {
  .photogallery-section__tabs.row {
    width: 550px;
    height: 50px;
  }
}
@media (max-width: 580px) {
  .photogallery-section__tabs.row {
    width: 430px;
    height: auto;
  }
}
@media (max-width: 460px) {
  .photogallery-section__tabs.row {
    width: 340px;
  }
}
@media (max-width: 360px) {
  .photogallery-section__tabs.row {
    width: 310px;
    height: auto;
  }
}

.photogallery-section__tabs-nav {
  height: inherit;
}

.photogallery-section__tabs-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  height: inherit;
  border-bottom: 1px solid #e0e0e0;
  align-items: stretch;
}

@media (max-width: 580px) {
  .photogallery-section__tabs-list.row {
    flex-direction: column;
    border-bottom: transparent;
  }
}

.photogallery-section__tabs-item {
  flex: 1;
  height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 360px) {
  .photogallery-section__tabs-item.row {
    border-bottom: 1px solid rgba(50, 50, 50, 0.5);
    position: relative;
  }
  .photogallery-section__tabs-item:last-child {
    border-bottom: transparent;
  }
}
.photogallery-section__tabs-item .photogallery-section__tabs-arrow {
  display: none;
}
@media (max-width: 580px) {
  .photogallery-section__tabs-item .photogallery-section__tabs-arrow {
    width: 12px;
    position: absolute;
    right: 13px;
    top: 15px;
    display: block;
    opacity: 0;
    transition: 0.3s;
  }
}

.photogallery-section__tabs-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-family: "Lora";
  font-size: 18px;
  line-height: 33.28px;
  font-weight: 400;
  text-align: center;
  transition: color 0.3s ease;
  text-decoration: none;
}

@media (max-width: 930px) {
  .photogallery-section__tabs-link.row {
    position: relative;
    padding: 5px 5px;
  }
}
@media (max-width: 834px) {
  .photogallery-section__tabs-link.row {
    padding: 5px 5px;
    font-size: 15px;
    line-height: 1;
  }
}
@media (max-width: 734px) {
  .photogallery-section__tabs-link.row {
    padding: 20px 20px;
  }
}
@media (max-width: 580px) {
  .photogallery-section__tabs-link.row {
    padding: 10px 10px;
  }
}

@media (max-width: 360px) {
  .photogallery-section__tabs-link.row {
    padding: 13px 0px;
    font-size: 14px;
  }
}

.photogallery-section__tabs-link_active {
  background-color: #c9a96e;
  color: white;
}
@media (max-width: 580px) {
  .photogallery-section__tabs-link_active.row {
    border-bottom: 1px solid #000;
  }
  .photogallery-section__tabs-link_active .photogallery-section__tabs-arrow {
    opacity: 1;
  }
}

.viewer {
  width: 1340px;
  margin: auto;
  min-height: 300px;
  padding: 60px;
}
.viewer.portfolio {
  width: 1620px;
  margin: auto;
  padding: 0;
  margin-top: 150px;
}
@media (max-width: 1700px) {
  .viewer.portfolio {
    width: 1320px;
    margin-top: 80px;
  }
}
@media (max-width: 1340px) {
  .viewer.portfolio {
    width: 1145px;
  }
}
@media (max-width: 1180px) {
  .viewer.portfolio {
    width: 1065px;
  }
}
@media (max-width: 1050px) {
  .viewer.portfolio {
    width: 795px;
  }
}
@media (max-width: 834px) {
  .viewer.portfolio {
    width: 700px;
    margin-top: 50px;
  }
}
@media (max-width: 734px) {
  .viewer.portfolio {
    width: 550px;
  }
}
@media (max-width: 580px) {
  .viewer.portfolio {
    width: 430px;
  }
}
@media (max-width: 460px) {
  .viewer.portfolio {
    width: 340px;
  }
}
@media (max-width: 360px) {
  .viewer.portfolio {
    width: 310px;
    margin-top: 30px;
  }
}

.viewer__pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.viewer__pane_active {
  display: block;
}

.viewer__box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 60px;
}
@media (max-width: 1700px) {
  .viewer__box {
    gap: 40px;
  }
}
@media (max-width: 1340px) {
  .viewer__box {
    margin: auto;
    gap: 35px;
  }
}
@media (max-width: 1180px) {
  .viewer__box {
    gap: 30px;
  }
}
@media (max-width: 834px) {
  .viewer__box {
    gap: 29px;
  }
}
@media (max-width: 460px) {
  .viewer__box {
    gap: 20px;
  }
}
@media (max-width: 360px) {
  .viewer__box {
    gap: 28px 30px;
  }
}

.viewer__box-item {
  width: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
@media (max-width: 1700px) {
  .viewer__box-item {
    width: 300px;
  }
}
@media (max-width: 1340px) {
  .viewer__box-item {
    width: 260px;
  }
}
@media (max-width: 1180px) {
  .viewer__box-item {
    width: 240px;
  }
}
@media (max-width: 834px) {
  .viewer__box-item {
    width: 214px;
  }
}
@media (max-width: 734px) {
  .viewer__box-item {
    width: 164px;
  }
}
@media (max-width: 580px) {
  .viewer__box-item {
    width: 124px;
  }
}
@media (max-width: 460px) {
  .viewer__box-item {
    width: 100px;
  }
}
@media (max-width: 360px) {
  .viewer__box-item {
    width: 140px;
  }
}

.viewer__box-item img {
  width: 360px;
  height: 480px;
  transition: 0.3s;
  object-fit: cover;
}
@media (max-width: 1700px) {
  .viewer__box-item img {
    width: 100%;
    height: 400px;
  }
}
@media (max-width: 1340px) {
  .viewer__box-item img {
    width: 100%;
    height: 370px;
  }
}
@media (max-width: 1180px) {
  .viewer__box-item img {
    width: 100%;
    height: 330px;
  }
}
@media (max-width: 834px) {
  .viewer__box-item img {
    width: 100%;
    height: 287px;
  }
}
@media (max-width: 734px) {
  .viewer__box-item img {
    width: 100%;
    height: 237px;
  }
}
@media (max-width: 580px) {
  .viewer__box-item img {
    width: 100%;
    height: 170px;
  }
}
@media (max-width: 460px) {
  .viewer__box-item img {
    width: 100%;
    height: 140px;
  }
}
@media (max-width: 360px) {
  .viewer__box-item img {
    width: 100%;
    height: 190px;
  }
}

.viewer__box-item img:hover {
  transform: scale(1.05);
}

/* gallery-popup */
.gallery {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  animation: fadeIn 0.5s ease;
  z-index: 5;
}

.gallery__content {
  position: relative;
  width: 100%;
  max-height: 75vh;
}

@media (max-width: 900px) {
  .gallery__content {
    margin-top: 70px;
  }
}

.gallery .gallery__content-picture {
  max-width: 75vw;
  max-height: 75vh;
  pointer-events: none;
  object-fit: cover;
  border-radius: 3px;
}

.gallery__close {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}
.gallery__close:hover {
  opacity: 0.6;
}

@media (max-width: 670px) {
  .gallery__close {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 575px) {
}

.gallery__close .gallery__close-icon {
  width: 30px;
}
@media (max-width: 1880px) {
  .gallery__close .gallery__close-icon {
    width: 30px;
  }
}
@media (max-width: 1536px) {
  .gallery__close .gallery__close-icon {
    width: 30px;
  }
}
@media (max-width: 1280px) {
  .gallery__close .gallery__close-icon {
    width: 30px;
  }
}
@media (max-width: 1050px) {
  .gallery__close .gallery__close-icon {
    width: 33px;
  }
}
@media (max-width: 834px) {
  .gallery__close .gallery__close-icon {
    width: 20px;
  }
}
@media (max-width: 575px) {
  .gallery__close .gallery__close-icon {
    width: 20px;
  }
}
@media (max-width: 360px) {
  .gallery__close .gallery__close-icon {
    width: 20px;
  }
}

.procedures__message-error-formPopup {
  display: none;
  background: white;
  color: red;
  font-family: Inter;
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
  padding-top: 10px;
  text-align: center;
}

.success-message-formPopup {
  background: #5ad84a;
  margin-top: 10px;
  color: white;
  display: none;
  text-align: center;
  padding: 7px 7px;
  max-width: 350px;
}

.timer-message-formPopup {
  background: #5ad84a;
  margin-top: 10px;
  color: white;
  display: none;
  text-align: center;
  padding: 7px 7px;
  max-width: 350px;
}

@media (max-width: 1880px) {
  .modal__form-item {
    margin-bottom: 20px;
  }
}
@media (max-width: 1536px) {
  .modal__form-item {
    margin-bottom: 15px;
  }
}
@media (max-width: 1280px) {
  .modal__form-item {
    margin-bottom: 20px;
  }
}
@media (max-width: 1240px) {
  .modal__form-item {
    margin-bottom: 20px;
  }
}
@media (max-width: 834px) {
  .modal__form-item {
    margin-bottom: 20px;
  }
}
@media (max-width: 620px) {
  .modal__form-item {
    margin-bottom: 15px;
  }
}
@media (max-width: 360px) {
  .modal__form-item {
    margin-bottom: 10px;
  }
}

.registration__formRegisterButton-formPopup_valid {
  background: #c9a96e;
  color: #fff;
}

.registration__formRegisterButton-formPopup_disabled {
  border: 1px solid #9c8d8d;
  background-color: #fff;
  color: #494646;
  cursor: not-allowed;
}

.registration__formRegisterButton-formPopup_disabled:hover {
  border: 1px solid #9c8d8d;
  background-color: #fae6e6;
  color: #494646;
  cursor: not-allowed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
