/*
 * Final layout layer for this landing page.
 * The source bundle contains several legacy responsive styles; keep the
 * fixes here so the article and comments have one predictable layout.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  padding-bottom: 68px;
}

img,
video {
  max-width: 100%;
}

.photo-gallery-detail-page-container .gallery-detail-container {
  width: 100%;
}

.photo-gallery-detail-page-container .gallery-detail-container > .top-container {
  margin-top: 32px !important;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .top-container
  .main-photo-container
  .main-photo-content-wrapper
  .main-photo {
  object-fit: cover;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .top-container
  .main-photo-title {
  max-width: 900px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container {
  padding-top: 48px;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  > .text-frame {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 44px;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  > .text-frame
  > .counter {
  display: grid;
  place-items: center;
  width: 88px !important;
  height: 88px !important;
  min-width: 0;
  margin: 0 !important;
  font-size: 48px !important;
  line-height: 1 !important;
  border-radius: 16px 16px 16px 4px;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  > .text-frame
  > .title-description-container {
  width: auto !important;
  min-width: 0;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .title-description-container
  .title {
  margin: 0 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.3 !important;
  text-wrap: balance;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .title-description-container
  .description {
  min-width: 0;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .title-description-container
  .description
  p,
.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .title-description-container
  .description
  li {
  max-width: 100%;
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .title-description-container
  picture
  img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  border-radius: 14px;
}

.btn-link {
  width: min(100%, 520px) !important;
  min-height: 54px;
  margin: 26px auto !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.form-wrapper {
  width: min(100%, 620px);
  margin: 30px auto !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.swiper {
  width: 100%;
  height: auto !important;
  overflow: hidden;
}

.swiper-wrapper {
  height: auto !important;
  align-items: stretch;
}

.swiper-slide {
  height: auto !important;
  min-height: 0;
  justify-content: flex-start !important;
}

.swiper-slide > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.photo-gallery-detail-page-container
  .gallery-detail-container
  .bottom-container
  .gallery-photo-container
  .text-frame
  .description
  > .container {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
}

/* Comments */

.comments_block {
  width: min(100%, 900px);
  margin: 12px auto 40px !important;
  padding: 26px 30px 30px;
  color: #1c1e21;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.comments_block .fb--container,
.comments_block ._56q9,
.comments_block ._2pi8,
.comments_block .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-right: 0;
  padding-left: 0;
}

.comments_block ._491z {
  margin: 0 0 6px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e4e6eb;
}

.comments_block ._50f7 {
  display: block;
  color: #1c1e21;
  font-size: 20px;
  line-height: 1.35;
}

.comment_wrapper {
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid #edf0f4;
}

.comment__block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.comment__block > img {
  flex: 0 0 48px;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  margin: 2px 0 0 !important;
  object-fit: cover;
  border-radius: 50% !important;
}

.comment_search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  color: #1c1e21;
  background: #f0f2f5;
  border-radius: 6px 18px 18px 18px;
}

.comment_search h3 {
  margin: 0 0 3px;
  color: #050505;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.comment_search p {
  margin: 0;
  color: #1c1e21 !important;
  font-size: 15px !important;
  line-height: 1.48 !important;
  overflow-wrap: anywhere;
}

.comment_photos {
  width: 100%;
  margin-top: 12px;
}

.comment_photos img {
  display: block;
  width: min(100%, 430px) !important;
  height: auto !important;
  max-height: 420px;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 12px !important;
}

.comment__attribute {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  width: auto;
  max-width: none;
  min-height: 24px;
  margin: 7px 0 0 60px;
  padding: 0;
  color: #65676b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.comment__attribute a,
.comment__attribute span {
  color: #65676b;
}

.comment__attribute > div {
  gap: 1px;
  margin-left: auto;
}

.comment__attribute .fb-icon {
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  margin: 0 0 0 -3px !important;
  border: 2px solid #fff;
  border-radius: 50%;
}

.comment_input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}

.comment_input .comment_input-person {
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 50%;
}

.comment_input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  color: #1c1e21;
  background: #f0f2f5;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
}

.comment_input input:focus {
  background: #fff;
  border-color: #cf1d39;
  box-shadow: 0 0 0 3px rgba(207, 29, 57, 0.12);
}

.comment_input button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: #cf1d39;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.comment_input button img {
  width: 21px !important;
  height: 21px !important;
  max-width: 21px;
  margin: 0 !important;
  object-fit: contain;
}

.container .next-gallery-container {
  z-index: 100;
  height: 68px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.container .next-gallery-container > img {
  width: 120px;
  height: 68px;
  object-fit: contain;
}

.container .next-gallery-container .title-container {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 10px 16px;
}

.container .next-gallery-container .title-container .gallery-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 58px;
  }

  .photo-gallery-detail-page-container .gallery-detail-container > .top-container {
    margin-top: 12px !important;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container {
    padding-top: 28px;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    > .text-frame {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 30px;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    > .text-frame
    > .counter {
    width: 56px !important;
    height: 56px !important;
    font-size: 32px !important;
    border-radius: 12px 12px 12px 3px;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    .title-description-container
    .title {
    font-size: 20px !important;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    .title-description-container
    .description
    p,
  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    .title-description-container
    .description
    li {
    font-size: 16px;
    line-height: 1.55;
  }

  .btn-link {
    min-height: 50px;
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  .comments_block {
    margin-bottom: 24px !important;
    padding: 20px 16px 22px;
    border-radius: 14px;
  }

  .comments_block ._50f7 {
    font-size: 18px;
  }

  .comment__block {
    gap: 10px;
  }

  .comment__block > img {
    flex-basis: 40px;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
  }

  .comment_search {
    padding: 10px 12px;
  }

  .comment_search h3,
  .comment_search p {
    font-size: 14px !important;
  }

  .comment__attribute {
    margin-left: 50px;
  }

  .comment_input .comment_input-person {
    display: none;
  }

  .container .next-gallery-container,
  .container .next-gallery-container .title-container {
    height: 58px;
  }

  .container .next-gallery-container > img {
    width: 86px;
    height: 58px;
  }
}

@media (max-width: 600px) {
  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    > .text-frame {
    display: block;
  }

  .photo-gallery-detail-page-container
    .gallery-detail-container
    .bottom-container
    .gallery-photo-container
    > .text-frame
    > .counter {
    margin-bottom: 14px !important;
  }
}

@media (max-width: 480px) {
  .comment__attribute > div {
    width: 100%;
    margin-left: 0;
  }
}
