.crumbs {
  padding: 22px 0 14px;
  font-size: .9rem;
  color: var(--muted)
}

.crumbs ol {
  padding: 0;
  list-style: none
}

.crumbs a {
  color: var(--red)
}

.crumbs a:hover {
  text-decoration: underline
}

.crumbs li {
  display: inline
}

.crumbs li+li::before {
  content: "‹";
  margin: 0 8px
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 32px
}

.photo {
  position: sticky;
  top: 20px
}

.gallery-main {
  position: relative
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: var(--pink-soft)
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-bottom: 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--red);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer
}

.nav:hover {
  background: #fff
}

.nav.prev {
  inset-inline-start: 12px
}

.nav.next {
  inset-inline-end: 12px
}

.count {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  background: rgba(59, 10, 26, .7);
  color: #fff;
  font-size: .8rem;
  line-height: 1.7;
  padding: 2px 12px;
  border-radius: 999px;
  pointer-events: none
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px
}

.thumb {
  display: block;
  width: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s, border-color .15s
}

.thumb:hover {
  opacity: 1
}

.thumb[aria-current="true"] {
  border-color: var(--red);
  opacity: 1
}

.thumb img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgba(20, 3, 9, .95);
  color: #fff
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px
}

.lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--red);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer
}

.lightbox-close:hover {
  background: #fff
}

.lightbox-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  height: calc(100vh - 210px);
  aspect-ratio: 4/5;
  object-fit: contain;
  border-radius: 14px
}

.lightbox-count {
  font-size: .9rem
}

.lightbox-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px
}

.lightbox-thumbs .thumb {
  width: 56px
}

body:has(.lightbox[open]) {
  overflow: hidden
}

.info h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.5;
  color: var(--red-deep)
}

.info .role {
  font-size: 1.05rem;
  margin-bottom: 6px
}

.lead {
  font-size: 1.05rem;
  margin: 14px 0 18px
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 22px
}

.facts div {
  border-inline-start: 4px solid var(--pink);
  padding-inline-start: 12px
}

.facts b {
  display: block;
  font-size: 1.4rem;
  color: var(--red);
  line-height: 1.5
}

.facts span {
  color: var(--muted);
  font-size: .86rem
}

.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 16px
}

.block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 8px
}

.block p+p {
  margin-top: 10px
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.skills li {
  background: var(--pink-soft);
  border-radius: 10px;
  padding: 2px 14px;
  font-size: .9rem
}

.timeline li {
  padding: 8px 0;
  border-top: 1px dashed var(--line)
}

.timeline li:first-child {
  border-top: 0;
  padding-top: 0
}

.timeline b {
  display: block
}

.timeline span {
  color: var(--muted);
  font-size: .92rem
}

.contact {
  display: grid;
  gap: 8px
}

.contact li {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.contact span {
  color: var(--muted)
}

.contact a {
  color: var(--red);
  font-weight: 500
}

.btn {
  display: block;
  text-align: center;
  margin-top: 16px;
  background: var(--red);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700
}

.btn:hover {
  background: var(--red-deep);
  color: #fff
}

.related {
  padding: 16px 0 24px
}

.related>h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--red-deep);
  margin-bottom: 16px
}

.related .grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  padding-bottom: 0
}

@media (max-width:820px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .photo {
    position: static
  }

  .gallery-open img {
    max-height: 70vh
  }
}