/* Base Image Styles */
.residency-small-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.residency-large-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info Section */
.residency-info {
  background-color: #fafafa;
  padding: 113px 30px;
  padding-top: 0;
}

.residency-meta {
  display: flex;
    width: 100%;
    padding-top: 70px;
    padding-bottom: 33px;
    border-bottom: 0.5px solid #121212;
    margin-bottom: 33px;
    flex-direction: row;
 
}

.meta-item:nth-child(1) {
  width: 60%;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -0.5px;
  color: #121212;
}

.meta-item:nth-child(2) {
  width: 40%;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -0.5px;
  color: #121212;
}

.meta-item:nth-child(3) {
  width: 21.78%;
  font-size: 50px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -0.5px;
  color: #121212;
}

.artist-info {
  display: flex;
  justify-content: space-between;
  width: 50%;
}

.artist-name {
  max-width: 50%;
}

.video-link-fallback{
  display: none;
}

/* Content Layout */
.residency-content {
  display: flex;
  gap: 120px;
  max-width: 87.38vw;
}

/* Sidebar */
.residency-sidebar {
  display: flex;
  flex-direction: column;
  width: 18.22vw;
  gap: 70px;
  word-wrap: break-word;
}

.artist-photo {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 363 / 248;
  display: block;
  border: 2px solid #b7b6b7;
  border-radius: 7px;
  object-position: center center;
}
.artist-photographer-placeholder {
 width: 100%;
    text-align: left;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 300;
    line-height: 27px;
    letter-spacing: -0.28px;
    color: #121212;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  margin-bottom: 48px;
}

.nav-link {
  font-size: 28px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -0.28px;
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #121212;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
}

.section-title-sidebar {
  font-size: 28px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -0.28px;
}

.active-link {
  color: #121212;
  font-weight: 500;
}

/* Main Text Content */
.residency-text {
  display: flex;
  flex-direction: column;
  width: 68.01vw;
  gap: 10px;
  font-size: 28px;
   line-height: 35px;
  letter-spacing: -0.28px;
  font-weight: 400;
}

.residency-text p,
.residency-text font,
.residency-text span,
.quote-text ,
.interviewer-text ,.interviewee-label, .left-content{
  font-size: 28px !important;
  font-weight: 300;
  line-height: 35px;
  font-family: 'MNKY Banana Grotesk' !important;
  letter-spacing: -0.28px;
  color: #121212;
  margin: 0;
}

/* Image handling in content */
.residency-text img,
.artist-statement-content img,
.artist-statement-item img {
  max-width: 100%;
  height: auto;
  display: block;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.16px;
  margin: 0px 0;
}

.residency-text iframe,
.artist-statement-content iframe,
.artist-statement-item iframe,
.wp-video,
.mejs-container {
  max-width: 100%;
  width: 100% !important;
  height: auto !important;
  display: block;
  margin: 20px 0;
}

.mejs-container {
  padding-top: 56.25%;
  height: 0 !important;
}

.mejs-mediaelement,
.mejs-mediaelement video,
.mejs-overlay,
.mejs-poster,
.mejs-layers {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.residency-text figure,
.artist-statement-content figure,
.artist-statement-item figure {
  max-width: 100%;
  margin: 20px 0;
}

.residency-text figure img,
.artist-statement-content figure img,
.artist-statement-item figure img {
  max-width: 100%;
  height: auto;
}

/* Artist Statement Section - CRITICAL FIX */
.artist-statement-section {
  display: none; /* Hidden by default */
  flex-direction: column;
  width: 68.01vw;
  gap: 10px;
  font-weight: 500;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .residency-content {
    align-items: flex-start;
  }
  .residency-sidebar {
    flex: 0 0 18.22vw;
  }
  .residency-text,
  .artist-statement-section {
    flex: 0 0 68.01vw;
  }
}

.artist-statement-section.active {
  display: flex; /* Only show when active */
}

.artist-statement-item {
  display: none;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.artist-statement-item.active {
  display: block;
}

.artist-statement-content {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Navigation Section */
.residency-navigation {
  padding-left: 30px;
  background-color: #fafafa;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  padding-top: 0;
      max-width: 1928px;
    margin: auto;
}

.nav-item {
  font-size: 50px;
  font-weight: 400;
  line-height: 59px;
  letter-spacing: -0.59px;
  color: #121212;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: #5b8068;
}

.nav-label {
  display: inline-block;
}

/* 700px–1024px — tablet */
@media (min-width: 699px) and (max-width: 1024px) {
  .residency-info {
    padding: 0 26px 170px 26px;
  }

  .residency-meta {
    display: flex;
    gap: 32px;
    padding-top: 65px;
    margin-bottom: 27.95px;
    padding-bottom: 32px;
  }

  .meta-item {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: -0.28px;
    display: none;
  }

  .artist-info {
    display: none;
  }

  .artist-name {
    display: block;
    font-size: 50px;
  }

  .residency-content {
    gap: 43px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .residency-sidebar {
    gap: 46px;
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .artist-photo {
    width: 39.28vw;
    height: auto;
    display: block;
    aspect-ratio: 275/248;
  }

  .residency-text {
    width: 100%;
  }

  .artist-statement-section {
    width: 100%;
    max-width: 100%;
  }

  .artist-statement-item,
  .artist-statement-content {
    max-width: 100%;
  }

  .residency-text img,
  .artist-statement-content img,
  .artist-statement-item img {
    max-width: 100%;
  }

  .mobile-style {
    display: flex;
    gap: 50px;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .residency-navigation {
    display: none;
    padding: 0 26px 65px 26px;
    padding-top: 33px;
  }

  .nav-item {
    font-size: 28px;
    line-height: 35px;
    letter-spacing: -0.28px;
  }

  .artist-photographer-placeholder {
    font-size: 16px;
    line-height: 20px;
  }
  .artist-name {
    max-width: 100%;
}


  .right-content {
     width: 100% !important;
}
.left-content {
    width: 100% !important;
}
}

/* 360px–699px — mobile (font sizes, line heights & letter spacing = 3/4 of tablet) */
@media (min-width: 360px) and (max-width: 698px) {
  .residency-info {
    padding: 0 26px 170px 26px;
  }

  .residency-meta {
        display: flex;
        gap: 32px;
        padding-top: 52.5px;
        margin-bottom: 27.95px;
        padding-bottom: 24px;
    }
    .artist-name {
    max-width: 100%;
}



  .meta-item {
    font-size: 21px;
    line-height: 26.25px;
    letter-spacing: -0.21px;
    display: none;
  }

  .artist-info {
    display: none;
  }

  .artist-name {
    display: block;
    font-size: 44.25px;
  }

  .residency-content {
    gap: 21.5px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  .residency-sidebar {
            gap: 23px;
        display: flex;
        flex-direction: column;
        width: 100%;
  }

  .artist-photo {
    width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 275 / 248;
  }
  .meta-item:nth-child(1) {
    width: 100%;
    font-size: 29px;
    font-weight: 400;
    line-height: 34px;
    letter-spacing: -0.5px;
    color: #121212;
}
  .active-link{
  color: #121212 !important;
  text-decoration: underline !important;
 }
  .residency-text {
    width: 100%;
  }

  .artist-statement-section {
    width: 100%;
    max-width: 100%;
  }

  .artist-statement-item,
  .artist-statement-content {
    max-width: 100%;
  }

  .residency-text img,
  .artist-statement-content img,
  .artist-statement-item img {
    max-width: 100%;
  }

  .residency-text p, .quote-text, .left-content, .residency-text span {
   font-size: 11px !important;
        line-height: 17.5px;
    letter-spacing: -0.21px;
  }

  .mobile-style {
           display: flex;
        gap: 0px;
        flex-direction: column-reverse;
        padding-top: 12px;
        padding-bottom: 12px;
  }
  
  .nav-link {
    font-size: 21px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.21px;
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

  .residency-navigation {
    display: none;
    padding: 0 26px 65px 26px;
    padding-top: 33px;
  }

  .nav-item {
    font-size: 21px;
    line-height: 26.25px;
    letter-spacing: -0.21px;
  }

  .artist-photographer-placeholder {
    font-size: 12px;
    line-height: 15px;
    padding-top: 5px;
  }
  .right-content {
     width: 100% !important;
}
.left-content {
    width: 100% !important;
}
}
.right-content {
    width: 25vw;
}
.left-content {
    width: 100%
}
.image-caption {
    font-size: 16px;
    line-height: 16px;
    padding-top: 10px;
    padding-bottom: 20px;
}

.sidebar-section.no-social-links {
  margin-top: 0;
}

/* Adjust sidebar nav margin when present */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  margin-bottom: 48px;
}

/* When there's no image, adjust sidebar layout */
.residency-sidebar:not(:has(.artist-image-section)) .mobile-style {
  margin-top: 0;
}

/* Tablet adjustments */
@media (min-width: 699px) and (max-width: 1024px) {
  .sidebar-nav {
    margin: 0;
  }
  
  .sidebar-section.no-social-links {
    margin-top: 0;
  }
  
  /* When no image exists on tablet */
  .residency-sidebar:not(:has(.artist-image-section)) {
    gap: 0;
  }
}

/* Mobile adjustments */
@media (min-width: 360px) and (max-width: 698px) {
  .sidebar-nav {
    margin: 0;
    margin-bottom: 23px;
  }
  
  .sidebar-section.no-social-links {
    margin-top: 0;
  }
  
  /* When no image exists on mobile */
  .residency-sidebar:not(:has(.artist-image-section)) {
    gap: 0;
  }
}
.right-content figcaption {
    font-size: 16px;
    line-height: 19px;
    margin-top: 10px;
}
span.mejs-currenttime , span.mejs-duration {
    font-size: 16px !important;
    line-height: 16px !important;
    filter: invert(1);
    padding-top: 8px;
}
.mejs-time-rail{
  padding-top: 17px !important;
}
.mejs-button>button{
      margin: 14px 6px !important;
}
