/* LUPABAY — global readability and tonal rhythm */
.brand img { filter: none; }
:root {
  --cream: #19191c;
}

.btn:hover {
  color: var(--yellow);
}

.btn-yellow:hover {
  border-color: var(--yellow);
  background: #0b0b0c;
  color: var(--yellow);
}

.closing-cta .btn-yellow:hover,
.yellow .btn-yellow:hover,
.case-deliverables-section .btn-yellow:hover {
  border-color: #0b0b0c;
}

.work-section,
.faq-home-section,
.cream {
  background: #19191c;
}

.case-deliverables-section,
.section.yellow,
.yellow {
  background: var(--yellow);
}

.section.cream + .section:not(.cream):not(.yellow):not(.dark):not(.case-deliverables-section),
.case-summary-section,
.portfolio-page {
  background: #0b0b0d;
}

.work-row {
  background: #e2dfd7;
  border: 1px solid #c8c5bc;
}

.work-info {
  background: #e2dfd7;
  color: #111113;
}

.work-info h2,
.work-info h3 {
  color: #111113;
}

.work-info > span {
  color: #555450;
  font-weight: 780;
}

.work-info p {
  color: #444340;
}

.work-link-label {
  display: inline-block;
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1.5px solid #111113;
  color: #111113;
}

.project-link:hover .work-link-label {
  color: #111113;
  border-color: var(--yellow);
}

.yellow :is(h1, h2, h3, h4, p, li, .lead, .eyebrow, .statement-index, .text-link, strong:not(.offer-price strong)),
.closing-cta :is(h1, h2, h3, h4, p, li, .lead, .eyebrow, .statement-index),
.manifesto-strip :is(h1, h2, h3, h4, p, li, .lead, .eyebrow, .statement-index) {
  color: #0b0b0c;
}

.case-deliverables-section {
  background: #0b0b0d;
  border-top: 1px solid #1c1c22;
  border-bottom: 1px solid #1c1c22;
  color: #f1efe8;
}

.case-deliverables-section .eyebrow {
  color: var(--yellow);
}

.case-deliverables-section .eyebrow::before {
  background: var(--yellow);
}

.case-deliverables-section :is(h1, h2, h3, h4) {
  color: #ffffff;
}

.case-deliverables {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: none;
}

.case-deliverables li {
  background: #141417;
  border: 1px solid #23232a;
  border-radius: 6px;
  padding: 16px 20px;
  border-bottom: 1px solid #23232a;
  color: rgba(241, 239, 232, 0.85);
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.case-deliverables li:hover {
  border-color: var(--yellow);
  background: #19191e;
  transform: translateX(4px);
}

.case-deliverables strong {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 700px) {
  .portfolio-page .work-info {
    min-height: 250px;
  }
}

/* Unified Case Gallery Cards across All Realizations */
.case-gallery,
.cml-dynamic-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.case-gallery-item,
.cml-gallery-item {
  grid-column: span 6;
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #22222a;
  background: #0d0d10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.case-gallery-item:hover,
.cml-gallery-item:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(242, 200, 0, 0.1);
}

.case-gallery-item img,
.cml-item-wrapper img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  padding: 0 !important;
  background: transparent !important;
}

.case-gallery-item:hover img,
.cml-gallery-item:hover .cml-item-wrapper img {
  transform: scale(1.015);
}

.case-gallery-item--wide,
.cml-gallery-item--wide {
  grid-column: span 12;
}

.case-gallery-item--half,
.cml-gallery-item--half {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .case-gallery-item,
  .cml-gallery-item,
  .case-gallery-item--wide,
  .cml-gallery-item--wide,
  .case-gallery-item--half,
  .cml-gallery-item--half {
    grid-column: span 12;
  }
}

/* Lightbox Modal Styles */
.lightbox-modal {
  border: none;
  padding: 0;
  background: rgba(11, 11, 13, 0.95);
  backdrop-filter: blur(8px);
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-modal:not([open]) {
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid #23232c;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: -10px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: var(--yellow);
  transform: scale(1.1);
}

/* Transparent PNG & Logo Light Canvas Support */
.case-gallery-item img[src*=".png"],
.cml-item-wrapper img[src*=".png"],
.case-gallery-item img.is-transparent,
.cml-item-wrapper img.is-transparent,
.case-gallery-item img[data-transparent],
.cml-item-wrapper img[data-transparent] {
  background: #ffffff !important;
  padding: 20px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  box-sizing: border-box !important;
}

.lightbox-img[src*=".png"],
.lightbox-img[data-transparent],
.lightbox-img.is-transparent {
  background: #ffffff !important;
  padding: 24px !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
}
