/* Photo presentation and responsive repairs layered over the original design. */
img {
  max-width: 100%;
}

.photo-container-studio picture,
.full-width-photo picture,
.full-width-margin-photo picture {
  display: block;
  width: 100%;
}

.photo-container-studio picture img,
.full-width-photo picture img,
.full-width-margin-photo picture img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.photo-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .18) 47%, rgba(0, 0, 0, .8) 100%);
  pointer-events: none;
  z-index: 1;
}

.photo-text {
  z-index: 2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.container,
.photo-container,
.photo-container2,
.photo-container-studio,
.about-container,
.partner-container,
.services-container,
.centered-container,
.custom-services-container,
.services-grading-content,
.studio-room-card-container,
.policy-container,
#contact-form {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.custom-top-flex-row,
.custom-services-left,
.custom-services-right,
.custom-lower-right-text,
.services-grading-stack,
.services-grading-midrow,
.services-grading-bottomtext,
.services-grading-stack-mobile,
.services-grading-smalltext,
.title-small {
  box-sizing: border-box;
}

.about-headline-row,
.about-headline-container,
.services-headline-row,
.services-headline-row2,
.services-headline-row3,
.services-headline-row2 > div,
.services-headline-row3 > div,
.custom-services-left,
.custom-services-right,
.services-grading-midtext {
  min-width: 0;
  max-width: 100%;
}

/* Size the Services intro to its content, without viewport-height blank space. */
.services-grading-main {
  min-height: 0;
}

.services-grading-img {
  width: 100%;
  height: 100%;
}

.custom-lower-right-text .is-mobile {
  display: none;
}

/* Keep room measurements legible and uncropped. */
.full-width-margin-photo img[src*="/measurements/"] {
  width: 100%;
  max-width: 1100px;
  height: auto;
  object-fit: contain;
}

.studio-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: calc(100% - 40px);
  max-width: 1354px;
  margin: 60px auto 80px;
}

.studio-photo-gallery-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-photo-gallery figure {
  min-width: 0;
  margin: 0;
}

.studio-photo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

.studio-photo-gallery figcaption {
  margin-top: 14px;
  color: #ccc;
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

/* The original desktop columns need their existing stacked layout on tablets. */
@media (max-width: 1100px) {
  header .header-container {
    gap: 20px;
  }

  header .logo-link {
    flex-shrink: 0;
  }

  header nav {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 10px;
  }

  header .links {
    margin-inline: 4px;
    white-space: nowrap;
  }

  header .contact-link {
    margin-left: 4px;
    padding-inline: 18px;
  }

  .photo-text {
    top: auto;
    bottom: 7%;
    min-width: 0;
    width: 92%;
  }

  .about-container,
  .partner-container {
    flex-direction: column;
    height: auto;
    gap: 30px;
  }

  .about-left,
  .partner-left {
    width: 100%;
    max-width: 720px;
    height: auto;
    max-height: none;
    padding: 30px;
    flex-basis: auto;
  }

  .about-headline-row {
    width: 100%;
  }

  .about-headline,
  .services-headline {
    max-height: none;
  }

  .about-right,
  .partner-right {
    max-width: 100%;
    height: auto;
    justify-content: center;
  }

  .about-main-image,
  .partner-main-image {
    height: auto;
  }

  .services-container,
  .centered-container,
  .content-flex {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .content-flex {
    width: 100%;
    padding-bottom: 0;
  }

  .services-left {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    padding: 40px 30px;
  }

  .bottom-flex-item {
    position: relative;
    width: 100%;
    flex-shrink: 0;
  }

  .custom-services-container,
  .custom-centered-container,
  .custom-content-flex {
    height: auto;
    min-height: 0;
  }

  .custom-centered-container {
    margin-top: 0;
  }

  .custom-top-flex-row {
    flex-direction: column;
    gap: 24px;
    padding: 40px 30px;
    margin-bottom: 0;
  }

  .custom-services-left,
  .custom-services-right {
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
  }

  .custom-parallel-text,
  .custom-parallel-text2 {
    margin-top: 0;
  }

  .custom-lower-right-text {
    position: static;
    max-width: 100%;
    padding: 0 30px 30px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(40px, 8vw, 96px);
  }

  .services-grading-content {
    min-height: 794px;
  }

  .services-grading-stack {
    width: 92%;
  }

  .services-grading-midrow {
    width: 80%;
    height: auto;
    min-height: 236px;
  }

  .services-grading-bottomtext {
    max-width: calc(100% - 50px);
    margin-top: 40px;
  }

  footer .footer-nav-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    gap: 16px 0;
    padding-block: 20px;
    box-sizing: border-box;
  }

  footer .footer-base {
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* Use the draft's separate mobile hero when the overlay no longer fits. */
@media (min-width: 442px) and (max-width: 700px) {
  .photo-container {
    display: none;
  }

  .photo-container-mobile {
    display: block;
    width: 100%;
    margin: 40px auto 0;
  }

  .photo-container-mobile img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-hero-text {
    padding: 28px 20px;
    text-align: center;
    color: #fff;
    font-family: "Neue Haas Grotesk", sans-serif;
  }

  .mobile-hero-text h1 {
    margin: 0 0 30px;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.15;
  }

  .mobile-hero-text h4 {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.18;
  }
}

@media (max-width: 700px) {
  .studio-photo-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-block: 40px;
  }

  .studio-room-card-container {
    max-width: calc(100% - 40px);
  }

  .services-grading-midrow {
    width: 100%;
  }

  .services-grading-content::before {
    width: 70%;
  }
}

@media (max-width: 441px) {
  .photo-container-mobile,
  .photo-container-mobile img,
  .mobile-hero-text,
  .photo-container-studio img,
  .about-container,
  .about-left,
  .about-right,
  .partner-container,
  .partner-left,
  .partner-right,
  #services,
  .services-container,
  .centered-container,
  .content-flex,
  .bottom-flex-item,
  .content {
    width: 100%;
    max-width: 100%;
  }

  .photo-container-studio picture img {
    max-width: 100%;
    height: auto;
  }

  .about-main-image,
  .partner-main-image {
    width: min(350px, calc(100vw - 40px)) !important;
    height: auto !important;
    max-height: none;
  }

  .about-btn,
  .mobile-contact-link,
  .photo-btn .title-btn--photo,
  .showreel-container2,
  .showreel-container2:active,
  .showreel-container2:focus {
    width: min(350px, calc(100vw - 40px)) !important;
  }

  .title-btn,
  .showreel-container,
  .showreel-container:hover,
  .showreel-container2:hover,
  .photo-btn {
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
  }

  .bottom-image {
    width: 100% !important;
    max-width: 100%;
  }

  .services-left {
    padding: 32px 0 0;
  }

  .services-headline-row {
    width: 100%;
  }

  .services-headline-row > div {
    min-width: 0;
  }

  .services-headline,
  .services-description {
    box-sizing: border-box;
  }

  .custom-top-flex-row {
    gap: 0;
    padding: 0 0 24px;
  }

  .custom-services-label {
    width: 100%;
    max-width: 100%;
  }

  .custom-lower-right-text span:not(.is-mobile) {
    display: inline;
  }

  .custom-lower-right-text:has(.is-mobile) span:not(.is-mobile) {
    display: none;
  }

  .services-grading-stack-mobile,
  .services-grading-img-mobile {
    width: min(350px, calc(100vw - 40px));
    max-width: 100%;
  }

  .services-grading-img-mobile {
    height: auto;
  }

  .services-grading-stack-mobile .services-grading-bottomtext,
  .services-grading-stack-mobile .services-grading-smalltext,
  .services-grading-stack-mobile .services-grading-midrow {
    max-width: 100%;
    box-sizing: border-box;
  }

  footer .footer-nav-bar {
    height: auto;
    flex-wrap: nowrap;
  }
}

/* Keep compact links and mobile labels inside their containers. */
.showreel-container2 { width: 302px; max-width: calc(100% - 40px); box-sizing: border-box; }
.showreel-text2 { white-space: nowrap; }
@media (max-width: 441px) {
  .custom-services-label { width: auto; max-width: calc(100% - 30px); }
}
@media (max-width: 380px) {
  .showreel-text2 { font-size: 14px; padding-left: 0; }
  .showreel-circle2 { flex-shrink: 0; }
}
/* Keep team cards inside tablet gutters while preserving the original portrait layout. */
.artist-card-container { max-width: calc(100% - 32px); box-sizing: border-box; }
@media (min-width: 442px) and (max-width: 900px) {
  .artist-card-details { margin-inline: auto; max-width: 100%; }
}
.contact-email-note { line-height: 1.5; }

/* Allow the longer artist biography to determine the card height. */
@media (min-width: 901px) {
  .artist-card-biography,
  .artist-card-biography .artist-card-details {
    height: auto;
    min-height: 454px;
  }
  .artist-card-biography::before { height: 100%; }
}

.artist-card-biography .artist-card-description p { margin: 0; }
.artist-card-biography .artist-card-description p + p { margin-top: 1em; }

/* Studio descriptor beside LUNO in the desktop and mobile headers. */
header .logo-link {
  gap: 7px;
  flex-shrink: 0;
  text-decoration: none;
}
header .header-logo-descriptor {
  display: block;
  color: #fff;
  font-family: "Neue Haas Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* Home: matching studio and Dolby directory links, wrapping on small screens. */
#world-first .studio-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 110px;
}

#world-first .studio-actions .title-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 0;
  text-decoration: none;
}

#world-first .studio-actions .title-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Dolby's directory is best opened on desktop; keep the notice visible on touch. */
#world-first .dolby-link-container {
  position: relative;
  display: inline-flex;
  max-width: calc(100vw - 40px);
}

/* Keep the note open as the pointer moves from the link to the tooltip. */
#world-first .dolby-link-container::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

#world-first .dolby-desktop-note {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid #393939;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}

#world-first .dolby-link-container:hover .dolby-desktop-note,
#world-first .dolby-link-container:focus-within .dolby-desktop-note {
  opacity: 1;
  visibility: visible;
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
  #world-first .dolby-desktop-note {
    opacity: 1;
    visibility: visible;
  }
}
