
/* === Interactive Trichrome Slider === */
.trichrome-interactive {
  background: var(--page-bg);
  margin-bottom: 40px;
}

.trichrome-slider-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
}

.trichrome-slider-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 0;
}

.slider-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.slider-content .section-title-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 28px;
}

.slider-content .section-title-box h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.composite {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  overflow: hidden;
  max-height: 100%;
  max-width: 45%;
flex: 1 1 calc(25% - 10px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
}

.composite-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10;
  gap: 16px;
}

.composite-loading p {
  color: #fff;
  font-size: 14px;
  margin: 0;
}

.composite img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.slider-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 15px;
  min-width: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
}

.slider-label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.graphbox {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  overflow: hidden;
  cursor: ew-resize;
  border-radius: var(--radius);
  height: auto;
}

.graph {
  width: 100%;
  height: auto;
  max-height: 100%;
  user-select: none;
  pointer-events: none;
  display: block;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: black;
  cursor: ew-resize;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s;
}

.slider-line:hover,
.slider-line:active,
.graphbox:active .slider-line {
  box-shadow: 0 0 8px white;
}

.slider-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 30px;
  height: 100%;
  cursor: ew-resize;
}

.composition-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #fff;
  border-radius: var(--radius);
}

.comp-label {
  font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;

}

.comp-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
    font-family: "Ancizar Sans";  

  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s;
}

.comp-select:hover {
  border-color: #999;
}

.comp-select:focus {
  outline: none;
  border-color: #666;
}

.slider-text-box {
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--radius);
    line-height: 1.6;
    color: #333;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.slider-text-box p {
    font-size: small;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
    padding-top: 16px;
}

/* Mobile Responsive */
@media (max-width: 740px) {
  .trichrome-slider-container {
    flex-direction: column;
    gap: 15px;
  }

  .slider-content .section-title-box {
    display: none;
  }
  .composite {
    aspect-ratio: 2 / 3;
    align-self: center;
    max-width: 100%;
    width: 100%;
  }

  .slider-content {
    width: 100%;
  }

  .slider-stack {
    flex-direction: column;
    gap: 15px;
  }

  .slider-label {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .graphbox {
    width: 100%;
  }
}

/* === Content Sections === */
.trichrome-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trichrome-content .section-title-box,
.trichrome-content .section-text-box,
#trichrome-gallery .section-title-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 32px;

}

.trichrome-content .section-title-box h2
#trichrome-gallery .section-title-box {
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  color: var(--text);
}

.trichrome-content .section-text-box p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 1.2em;
  color: var(--text);
}

.trichrome-content .section-text-box {
  margin-bottom: 40px;
}

/* === Trichrome Resources Section === */
#trichrome-resources .section-title-box h2 {
  font-size: 32px;
  margin-bottom: 0;
}
#trichrome-resources .section-text-box {
  background: #fff;
  padding: 20px 28px;
  border-radius: var(--radius);
  line-height: 1.6;
  color: #333;
  font-size: 17px;
  min-height: 0;
  overflow-y: auto;
  margin-top: 0;
}

#trichrome-resources .section-text-box p {
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
    padding-top: 16px;
}
#trichrome-resources ul {
  margin: 0 0 0 0.5em;
  padding: 0;
  list-style: disc inside;
}
#trichrome-resources ul ul {
  margin-left: 1.5em;
  list-style: circle inside;
}
#trichrome-resources li {
  margin-bottom: 1.1em;
}
#trichrome-resources h4 {
  color: var(--rose, #b44e4e);
  font-weight: 600;
  font-size: 24px;
  padding-top: 16px;
}

/* === Gallery Grid === */
#trichrome-gallery {
  background: var(--page-bg);
}

#trichrome-gallery .work-title-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 20px;
}

#trichrome-gallery .work-title-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

#trichromeGalleryGrid {
    column-width: 200px;
    column-gap: 12px;
    width: 100%;
}


#trichromeGalleryGrid .photo-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#trichromeGalleryGrid .photo-item:hover::before {
  opacity: 1;
}

#trichromeGalleryGrid .photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

#trichromeGalleryGrid .photo-item img {
    width: 100%;
    height: auto;
    display: cover;
    border-radius: var(--radius);
  aspect-ratio: 2 / 3;
}

/* Spectral accent for section titles on this page (optional subtle touch) */
#about-trichrome .section-title-box h2::after,
#trichrome-gallery .section-title-box h2::after,
#trichrome-resources .section-title-box h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, 
    #6a0dad 0%,
    #4169e1 25%,
    #32cd32 50%,
    #ffd700 75%,
    #ff4500 100%
  );
  border-radius: 2px;
}
