.m-modal__content {
  max-width: 90rem;
}
@media screen and (max-width: 960px) {
  .m-modal__content {
    max-width: 33.5rem;
  }
}

.p-gallery {
  display: block;
  position: relative;
  padding: 1rem 0;
}
@media screen and (max-width: 960px) {
  .p-gallery {
    padding-top: 2rem;
  }
}
.p-gallery__header {
  display: block;
  position: relative;
  margin-bottom: 6rem;
}
@media screen and (max-width: 960px) {
  .p-gallery__header {
    margin-bottom: 3.2rem;
  }
}
.p-gallery__title {
  width: 40rem;
  display: block;
  position: relative;
  margin: 0 auto;
}
@media screen and (max-width: 960px) {
  .p-gallery__title {
    width: 20rem;
  }
}
.p-gallery ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5.6rem 6rem;
  position: relative;
}
@media screen and (max-width: 960px) {
  .p-gallery ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}
.p-gallery ul li {
  min-width: 0;
  display: block;
  position: relative;
}
.p-gallery figure {
  display: block;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .p-gallery figure {
    transition: opacity 0.4s var(--ease_out);
  }
  .p-gallery figure:hover {
    opacity: 0.7;
  }
}
.p-gallery figure figcaption {
  display: block;
  position: relative;
  margin-top: 1.6rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-gold);
}
@media screen and (max-width: 960px) {
  .p-gallery figure figcaption {
    margin-top: 0.5rem;
    font-size: 1.1rem;
  }
}

.p-gallery_modal {
  display: block;
  position: relative;
  font-size: 16px;
  text-align: left;
  color: var(--color-white);
}
.p-gallery_modal h3 {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  display: block;
  position: relative;
  padding: 0.1rem 1.2rem 0.3rem;
  font-size: 1.7rem;
  color: var(--color-gold);
  background: var(--color-white);
}
@media screen and (max-width: 960px) {
  .p-gallery_modal h3 {
    padding: 0.1rem 0.8rem 0.2rem;
    font-size: 1.4rem;
    letter-spacing: 0;
  }
}
.p-gallery_modal p {
  display: block;
  position: relative;
  margin-top: 1.5rem;
  font-size: 1.6rem;
  line-height: 1.5;
}
@media screen and (max-width: 960px) {
  .p-gallery_modal p {
    margin-top: 1rem;
    font-size: 1.15rem;
  }
}
.p-gallery_modal figure {
  display: block;
  position: relative;
  margin-top: 3.8rem;
}
@media screen and (max-width: 960px) {
  .p-gallery_modal figure {
    margin-top: 2rem;
  }
}