.library-profile {
  min-height: calc(100vh - 79px);
  background: #f3f6f8;
  padding: 70px 0 90px;
}
.library-profile-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8%;
  align-items: center;
}
.library-back {
  display: inline-flex;
  color: #276f98;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 55px;
}
.library-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.library-profile-group {
  display: block;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.library-profile h1 {
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.02;
}
.library-profile-copy p {
  font-size: 21px;
  color: var(--copy);
  margin-top: 23px;
}
.library-profile-photo {
  background: #e5edf0;
  min-height: 300px;
}
.library-profile-photo img {
  width: 100%;
  max-height: 680px;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 5px;
}
.library-pro-hero {
  background: #f2f6f8;
  padding: 65px 0 74px;
}
.library-pro-hero .library-back {
  margin-bottom: 35px;
}
.library-pro-hero h1 {
  font-size: clamp(45px, 5vw, 74px);
  line-height: 1.07;
}
.library-pro-hero p {
  font-size: 18px;
  margin-top: 20px;
  max-width: 650px;
}
.library-pro-section {
  padding: 72px 0 100px;
}
.library-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
}
.library-pro-grid figure {
  min-width: 0;
}
.library-pro-grid button {
  width: 100%;
  display: block;
  border: 1px solid #dce5e8;
  border-radius: 5px;
  overflow: hidden;
  background: #f7f9fa;
}
.library-pro-grid button:hover {
  border-color: #b39049;
  box-shadow: 0 9px 22px rgba(33, 65, 82, 0.1);
}
.library-pro-grid img {
  width: 100%;
  height: 275px;
  object-fit: contain;
  background: #f8fafb;
}
.library-pro-grid figcaption {
  font-size: 14px;
  color: var(--copy);
  margin-top: 9px;
  line-height: 1.45;
}
.library-pro-dialog {
  position: fixed;
  inset: 0;
  width: min(1100px, calc(100vw - 30px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  margin: auto;
  padding: 48px 20px 20px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(23, 49, 66, 0.34);
}
.library-pro-dialog::backdrop {
  background: rgba(30, 55, 73, 0.8);
}
.library-pro-dialog img {
  display: block;
  max-height: calc(100dvh - 135px);
  max-width: 100%;
  width: auto;
  margin: auto;
  object-fit: contain;
}
.library-pro-dialog p {
  text-align: center;
  color: #526d79;
  font-size: 15px;
  margin-top: 12px;
}
.library-pro-close {
  position: absolute;
  top: 9px;
  right: 14px;
  padding: 7px 10px;
  color: #315775;
  font-weight: 700;
}
.library-more {
  display: block;
  margin: 35px auto 0;
  padding: 12px 26px;
  border: 1px solid #a3bac6;
  border-radius: 4px;
  color: #315775;
  font-weight: 700;
}
.library-more:hover {
  background: #f1f6f8;
}
.library-more[hidden] {
  display: none;
}
@media (max-width: 850px) {
  .library-profile-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .library-profile {
    padding: 55px 0 70px;
  }
  .library-profile .library-back {
    margin-bottom: 35px;
  }
  .library-profile-photo {
    min-height: 0;
    max-width: 520px;
  }
  .library-pro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .library-profile h1 {
    font-size: clamp(43px, 11vw, 60px);
  }
  .library-profile-photo img {
    max-height: 460px;
  }
  .library-pro-hero {
    padding: 55px 0;
  }
  .library-pro-hero h1 {
    font-size: clamp(40px, 10vw, 56px);
  }
  .library-pro-section {
    padding: 55px 0 70px;
  }
  .library-pro-grid {
    gap: 22px 11px;
  }
  .library-pro-grid img {
    height: 180px;
  }
  .library-pro-grid figcaption {
    font-size: 12px;
  }
  .library-pro-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 14px);
    padding: 45px 10px 15px;
  }
  .library-pro-dialog img {
    max-height: calc(100dvh - 115px);
  }
}
