/* Adna Osman v1.0.30: portrait sizing and mobile navigation refinement. */

/* The portrait frame must end exactly where the photograph ends. */
.background-portrait {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

.background-portrait img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  object-position: center 18% !important;
}

/* Work with me remains the main item, with two explicit destinations beneath it. */
.nav-submenu {
  min-width: 252px;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-submenu a::after {
  content: "\2192";
  flex: 0 0 auto;
  color: #b0956e;
}

@media (min-width: 1101px) {
  .nav-submenu {
    padding: 7px;
    border: 1px solid rgba(51, 67, 58, 0.16);
    background: #fffaf5;
    box-shadow: 0 18px 44px rgba(33, 28, 24, 0.16);
  }

  .nav-submenu a,
  .nav-submenu a:visited {
    min-height: 40px;
    padding: 11px 12px;
    color: #211c18 !important;
    font-size: 0.78rem;
    font-weight: 750;
  }

  .nav-submenu a + a {
    border-top: 1px solid rgba(51, 67, 58, 0.1);
  }
}

@media (max-width: 1100px) {
  .nav-work-group {
    width: 100%;
    display: grid;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(51, 67, 58, 0.2);
  }

  .nav-work-link,
  .nav-work-link:visited {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
    color: #211c18 !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.12;
  }

  .nav-work-link::after {
    content: "";
    width: 8px;
    height: 8px;
    display: block;
    margin-right: 4px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .nav-submenu {
    min-width: 0;
    display: grid;
    gap: 5px;
    margin: 0 0 4px 1px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid rgba(176, 149, 110, 0.72);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-submenu a,
  .nav-submenu a:visited {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 4px;
    background: rgba(216, 195, 165, 0.18);
    color: rgba(51, 67, 58, 0.86) !important;
    font-family: Inter, sans-serif;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.25;
  }

  .nav-submenu a + a {
    border-top: 0;
  }

  .nav-submenu a:hover,
  .nav-submenu a:focus-visible {
    background: rgba(216, 195, 165, 0.34);
  }

  .nav-mobile-cta {
    width: min(100%, 330px);
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 18px;
    font-size: 0.8rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .nav {
    padding-top: 22px;
  }

  .nav-mobile-label {
    margin-bottom: 6px;
  }

  .background-portrait {
    width: min(100%, 440px) !important;
  }
}
