/* IWARY memory page redesign — scoped entirely under .page-1, loaded only on /memory/{hash} */

.page-1 {
  padding-top: 150px;
  position: relative;
  min-height: calc(100vh - 56px);
  background-color: #F7F6F3;
  font-family: "Merriweather", Georgia, serif;
  color: #333333; }
  .page-1 .page-1-error {
    padding-top: 200px;
    min-height: calc(100vh - 206px); }
    .page-1 .page-1-error h4 {
      text-align: center;
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #2c343b; }

  .page-1 .page-1-main-photo {
    padding: 2rem 2rem 2.25rem;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(44, 52, 59, 0.08); }
    .page-1 .page-1-main-photo .photo {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 0 1.5rem; }
      .page-1 .page-1-main-photo .photo img {
        width: 100%;
        max-width: 280px;
        border-radius: 6px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .14); }
    .page-1 .page-1-main-photo .links {
      border-top: 1px solid #e5e3de;
      padding-top: 1.25rem; }
      .page-1 .page-1-main-photo .links ul {
        list-style: none;
        margin: 0;
        padding: 0; }
        .page-1 .page-1-main-photo .links ul li {
          margin-bottom: .35rem; }
          .page-1 .page-1-main-photo .links ul li a {
            display: block;
            text-align: center;
            background: transparent;
            padding: 10px 0;
            font-family: "Mulish", sans-serif;
            font-size: 12px;
            letter-spacing: .12em;
            text-transform: uppercase;
            font-weight: 700;
            color: #7a7a7a;
            border-radius: 3px;
            transition: all .3s ease; }
            .page-1 .page-1-main-photo .links ul li a:hover {
              background: #2c343b;
              color: #ffffff; }
    .page-1 .page-1-main-photo .share {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      margin-top: 1.25rem;
      padding-top: 1.25rem;
      border-top: 1px solid #e5e3de; }
      .page-1 .page-1-main-photo .share p {
        width: 100%;
        text-align: center;
        font-family: "Mulish", sans-serif;
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #7a7a7a;
        margin-bottom: .75rem; }
      .page-1 .page-1-main-photo .share a {
        margin-right: .6rem;
        opacity: .8;
        transition: transform .25s ease, opacity .25s ease; }
        .page-1 .page-1-main-photo .share a:hover {
          transform: translateY(-2px);
          opacity: 1; }
        .page-1 .page-1-main-photo .share a:last-of-type {
          margin-right: 0; }
        .page-1 .page-1-main-photo .share a img {
          height: 26px; }

  .page-1 .page-1-main-text {
    padding: 2rem 0 1rem 2rem; }
    .page-1 .page-1-main-text .anchor-link {
      display: inline-block;
      padding: 11px 35px;
      font-family: "Mulish", sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: #2c343b;
      border: 2px solid #2c343b;
      border-radius: 3px;
      transition: all .3s ease; }
      .page-1 .page-1-main-text .anchor-link:hover {
        background: #2c343b;
        color: #ffffff; }
    .page-1 .page-1-main-text h1 {
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: #2c343b;
      font-size: 1.9rem;
      line-height: 1.3; }
    .page-1 .page-1-main-text h4 {
      font-family: "Merriweather", serif;
      font-style: italic;
      font-weight: 300;
      font-size: 1.1rem;
      color: #7a7a7a;
      margin-top: .5rem; }
    .page-1 .page-1-main-text p {
      font-family: "Merriweather", serif;
      font-size: 14px;
      line-height: 2;
      color: #555555; }
      .page-1 .page-1-main-text p.sub-age {
        font-family: "Mulish", sans-serif;
        font-size: 12px;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #7a7a7a; }
    .page-1 .page-1-main-text .sub-epitaph {
      position: relative;
      width: 100%;
      margin: 1.5rem 0 2rem;
      padding: 3rem 1.5rem 1.5rem;
      background-color: #ffffff;
      border-left: 3px solid #7a7a7a;
      border-radius: 0 6px 6px 0;
      box-shadow: 0 6px 20px rgba(44, 52, 59, .06); }
      .page-1 .page-1-main-text .sub-epitaph img {
        position: absolute;
        top: 1rem;
        left: 1.5rem;
        height: 1.75rem;
        opacity: .35; }
      .page-1 .page-1-main-text .sub-epitaph p {
        text-align: left;
        font-family: "Merriweather", serif;
        font-style: italic;
        font-size: 17px;
        line-height: 1.8;
        color: #444444;
        margin-bottom: 0; }
    .page-1 .page-1-main-text .map-link {
      display: inline-flex;
      align-items: center;
      font-family: "Mulish", sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #7a7a7a;
      transition: color .3s ease; }
      .page-1 .page-1-main-text .map-link:hover {
        color: #2c343b; }
      .page-1 .page-1-main-text .map-link img {
        margin-right: .5rem;
        width: 16px; }

  .page-1 #biography-anchor > .row {
    justify-content: center; }

  .page-1 .memory-body-page-biography-part-title {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #7a7a7a; }
    .page-1 .memory-body-page-biography-part-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 2px;
      background: #d7d7d7;
      margin: .9rem auto 0; }
  .page-1 .memory-body-page-biography-part p {
    font-family: "Merriweather", serif;
    font-size: 14px;
    line-height: 2;
    color: #444444;
    text-align: center; }
    .page-1 .memory-body-page-biography-part p span {
      color: #2c343b;
      font-weight: 700; }
  .page-1 .memory-body-page-biography-part .rank-box {
    cursor: pointer;
    width: 100%;
    position: relative;
    padding: .5rem 0; }
    .page-1 .memory-body-page-biography-part .rank-box p {
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      text-align: left; }
      .page-1 .memory-body-page-biography-part .rank-box p span {
        color: #7a7a7a; }
    .page-1 .memory-body-page-biography-part .rank-box .rank-info {
      position: absolute;
      bottom: 0;
      right: 0;
      display: none;
      background-color: #ffffff;
      padding: 1.5rem;
      z-index: 999;
      border-radius: 4px;
      text-align: left;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
      .page-1 .memory-body-page-biography-part .rank-box .rank-info p, .page-1 .memory-body-page-biography-part .rank-box .rank-info li {
        font-family: "Merriweather", serif;
        text-align: left; }
      .page-1 .memory-body-page-biography-part .rank-box .rank-info img {
        float: left;
        height: 400px;
        margin-right: 2rem;
        margin-bottom: 2rem;
        border-radius: 4px; }
    .page-1 .memory-body-page-biography-part .rank-box:hover .rank-info {
      display: block; }

  .page-1 .biography-box {
    margin-top: 2rem;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(44, 52, 59, .06); }
    .page-1 .biography-box .biography {
      font-family: "Merriweather", serif;
      font-size: 15px;
      line-height: 2;
      color: #444444; }
      .page-1 .biography-box .biography b {
        color: #2c343b; }

  .page-1 #gallery-anchor, .page-1 #video-anchor, .page-1 #audio-anchor, .page-1 .new-message-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; }
    .page-1 #gallery-anchor h4, .page-1 #video-anchor h4, .page-1 #audio-anchor h4, .page-1 .new-message-box h4 {
      width: 100%;
      margin-top: 3rem;
      margin-bottom: 2rem;
      text-align: center;
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      font-size: 13px;
      letter-spacing: .3em;
      text-transform: uppercase;
      color: #7a7a7a; }

  .page-1 .gallery-images .gallery-img-box {
    padding: .75rem; }
    .page-1 .gallery-images .gallery-img-box .gallery-img-link {
      position: relative;
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 5;
      overflow: hidden;
      background-color: #e8e8e8;
      border-radius: 4px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
      filter: grayscale(.15);
      transition: transform .35s ease, box-shadow .35s ease, filter .35s ease; }
      .page-1 .gallery-images .gallery-img-box .gallery-img-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
        filter: grayscale(0); }
      .page-1 .gallery-images .gallery-img-box .gallery-img-link .gallery-img-blur {
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(18px) brightness(.7);
        transform: scale(1.1); }
      .page-1 .gallery-images .gallery-img-box .gallery-img-link .gallery-img-fg {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat; }
    .page-1 .gallery-images .gallery-img-box p {
      font-family: "Merriweather", serif;
      font-style: italic;
      font-size: 13px;
      color: #7a7a7a;
      text-align: center; }

  .page-1 .gallery-videos .gallery-video-box {
    padding: .75rem; }
    .page-1 .gallery-videos .gallery-video-box .gallery-video {
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #000000;
      border-radius: 4px;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
      .page-1 .gallery-videos .gallery-video-box .gallery-video video {
        width: 100%;
        max-height: 300px; }
    .page-1 .gallery-videos .gallery-video-box p {
      font-family: "Merriweather", serif;
      font-style: italic;
      font-size: 13px;
      color: #7a7a7a;
      text-align: center; }

  .page-1 .gallery-audio-box {
    padding: .75rem; }
    .page-1 .gallery-audio-box .gallery-audio {
      width: 100%;
      background: #ffffff;
      border-radius: 4px;
      padding: 1.5rem 1rem;
      box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
    .page-1 .gallery-audio-box audio {
      width: 100%; }
    .page-1 .gallery-audio-box p {
      font-family: "Merriweather", serif;
      font-style: italic;
      font-size: 13px;
      color: #7a7a7a; }

  .page-1 .new-message-box .guest-message {
    width: 100%;
    background: #ffffff;
    border-left: 3px solid #d7d7d7;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
    .page-1 .new-message-box .guest-message p {
      font-family: "Merriweather", serif;
      font-style: italic;
      color: #333333; }
    .page-1 .new-message-box .guest-message .message-info p {
      font-family: "Mulish", sans-serif;
      font-style: normal;
      color: #7a7a7a;
      margin: 0;
      font-size: 11px;
      letter-spacing: .05em; }
      .page-1 .new-message-box .guest-message .message-info p span {
        font-family: "Mulish", sans-serif;
        color: #2c343b;
        font-weight: 700; }
  .page-1 .new-message-box .input-box {
    display: flex;
    align-items: stretch;
    justify-content: center; }
    .page-1 .new-message-box .input-box input, .page-1 .new-message-box .input-box textarea {
      width: 100%;
      display: block;
      background: #ffffff;
      border: 1px solid #d7d7d7;
      color: #333333;
      font-family: "Merriweather", serif;
      font-size: 14px;
      line-height: 20px;
      padding: 12px 15px;
      flex-grow: 1;
      border-radius: 3px;
      transition: border-color .3s ease; }
      .page-1 .new-message-box .input-box input:focus, .page-1 .new-message-box .input-box input:active, .page-1 .new-message-box .input-box textarea:focus, .page-1 .new-message-box .input-box textarea:active {
        outline: none;
        box-shadow: none;
        border-color: #7a7a7a; }
    .page-1 .new-message-box .input-box button {
      width: 100%;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: .1em;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      font-size: 12px;
      padding: 12px 20px;
      color: #ffffff;
      background-color: #2c343b;
      text-decoration: none;
      border: none;
      border-radius: 3px;
      transition: background-color .3s ease; }
      .page-1 .new-message-box .input-box button:hover {
        background-color: #7a7a7a; }
      .page-1 .new-message-box .input-box button:disabled {
        opacity: .6;
        cursor: not-allowed; }
    .page-1 .new-message-box .input-box input[type="file"] {
      padding: 8px 15px;
      cursor: pointer; }
      .page-1 .new-message-box .input-box input[type="file"]::file-selector-button,
      .page-1 .new-message-box .input-box input[type="file"]::-webkit-file-upload-button {
        display: inline-block;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .1em;
        font-family: "Mulish", sans-serif;
        font-weight: 700;
        font-size: 12px;
        padding: 8px 16px;
        margin-right: 12px;
        color: #ffffff;
        background-color: #2c343b;
        text-decoration: none;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        transition: background-color .3s ease; }
      .page-1 .new-message-box .input-box input[type="file"]::file-selector-button:hover,
      .page-1 .new-message-box .input-box input[type="file"]::-webkit-file-upload-button:hover {
        background-color: #7a7a7a; }

.guestbook-modal-cta, .guest-open-btn {
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 20px;
  color: #ffffff;
  background-color: #2c343b;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  transition: background-color .3s ease; }
  .guestbook-modal-cta:hover, .guest-open-btn:hover {
    background-color: #7a7a7a;
    color: #ffffff; }

.guest-open-btn {
  cursor: pointer; }

.page-1 .guest-open-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0; }

.guest-form-modal .modal-dialog .modal-content .modal-header .modal-title {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #2c343b; }

.guest-form-modal .modal-dialog .modal-content .modal-body .input-box {
  margin-bottom: 1rem; }
  .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input, .guest-form-modal .modal-dialog .modal-content .modal-body .input-box textarea {
    width: 100%;
    display: block;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    color: #333333;
    font-family: "Merriweather", serif;
    font-size: 14px;
    line-height: 20px;
    padding: 12px 15px;
    text-align: left;
    border-radius: 3px;
    transition: border-color .3s ease; }
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input:focus, .guest-form-modal .modal-dialog .modal-content .modal-body .input-box textarea:focus {
      outline: none;
      box-shadow: none;
      border-color: #7a7a7a; }
  .guest-form-modal .modal-dialog .modal-content .modal-body .input-box textarea {
    resize: vertical; }
  .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input[type="file"] {
    padding: 8px 15px;
    cursor: pointer; }
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input[type="file"]::file-selector-button,
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input[type="file"]::-webkit-file-upload-button {
      display: inline-block;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-family: "Mulish", sans-serif;
      font-weight: 700;
      font-size: 12px;
      padding: 8px 16px;
      margin-right: 12px;
      color: #ffffff;
      background-color: #2c343b;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      transition: background-color .3s ease; }
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input[type="file"]::file-selector-button:hover,
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box input[type="file"]::-webkit-file-upload-button:hover {
      background-color: #7a7a7a; }
  .guest-form-modal .modal-dialog .modal-content .modal-body .input-box button {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-family: "Mulish", sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 12px 20px;
    color: #ffffff;
    background-color: #2c343b;
    border: none;
    border-radius: 3px;
    transition: background-color .3s ease; }
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box button:hover {
      background-color: #7a7a7a; }
    .guest-form-modal .modal-dialog .modal-content .modal-body .input-box button:disabled {
      opacity: .6;
      cursor: not-allowed; }

.guest-form-modal .modal-dialog .modal-content .modal-body .guest-form-done h4 {
  font-family: "Mulish", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #7a7a7a; }

.modal.guest-form-modal .modal-dialog .modal-content .modal-header .btn-close, #afterGuestbookRegisterModal .modal-dialog .modal-content .modal-header .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c343b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/12px auto no-repeat;
  opacity: .6; }
  .modal.guest-form-modal .modal-dialog .modal-content .modal-header .btn-close:hover, #afterGuestbookRegisterModal .modal-dialog .modal-content .modal-header .btn-close:hover {
    opacity: 1; }

@media (max-width: 575.98px) {
  .page-1 {
    padding-bottom: 20px; }
    .page-1 .page-1-main-photo .share {
      margin-top: 1rem; }
    .page-1 .page-1-main-text {
      padding: 1.5rem 1rem; }
      .page-1 .page-1-main-text h1, .page-1 .page-1-main-text h4, .page-1 .page-1-main-text p {
        text-align: center; }
    .page-1 .new-message-box {
      flex-direction: column; }
      .page-1 .new-message-box .input-box {
        margin-bottom: 1rem; } }

@media (min-width: 1200px) {
  .page-1 {
    padding-bottom: 100px; }
    .page-1 .new-message-container {
      padding-bottom: 3rem; }
    .page-1 .new-message-box {
      flex-direction: column; }
      .page-1 .new-message-box h4 {
        margin-top: 3rem;
        margin-bottom: 3rem; }
    .page-1 #gallery-anchor, .page-1 #video-anchor, .page-1 #audio-anchor, .page-1 .new-message-box {
      margin-bottom: 3rem; } }
