/* ==========================================================================
   HEN F. DESIGN — PORTFOLIO STYLESHEET
   Clean, optimized design system matching Cargo visual aesthetic
   ========================================================================== */

/* --- 1. Custom Typography --- */
@font-face {
  font-family: 'Portfolio Bit';
  font-weight: 400;
  font-style: normal;
  src: url('assets/fonts/Portfolio_bit_full-Regular.woff2') format('woff2');
  font-display: swap;
}

/* Acumin Pro Bold (700-900) */
@font-face {
  font-family: 'Acumin Pro';
  font-weight: 700 900;
  font-style: normal;
  src: url('assets/fonts/Acumin-Pro-Bold.woff2') format('woff2');
  font-display: swap;
}

/* Acumin Pro Medium (400-600) - Body copy, headers, active states */
@font-face {
  font-family: 'Acumin Pro';
  font-weight: 400 600;
  font-style: normal;
  src: url('assets/fonts/Acumin-Pro-Medium.woff2') format('woff2');
  font-display: swap;
}

/* Acumin Pro ExtraLight (200-300) - Detailed narrative descriptions */
@font-face {
  font-family: 'Acumin Pro';
  font-weight: 200 300;
  font-style: normal;
  src: url('assets/fonts/Acumin-Pro-ExtraLight.woff2') format('woff2');
  font-display: swap;
}

/* Acumin Pro Thin (100) */
@font-face {
  font-family: 'Acumin Pro';
  font-weight: 100;
  font-style: normal;
  src: url('assets/fonts/Acumin-Pro-Thin.woff2') format('woff2');
  font-display: swap;
}

/* --- 2. Base & Global Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 12px;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  margin: 0;
  padding: 10px;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 500;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #000000;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #ff33bb !important;
}

b,
strong {
  font-weight: 500;
}

hr {
  border: none;
  border-top: 1px solid black;
  margin: 25px 0;
}

/* --- 3. Typography Utility Classes --- */
.portfolio-bit {
  font-family: 'Portfolio Bit', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-top: 2px;
  margin-bottom: 8px;
  display: block;
  color: #000000;
}

.bit-text {
  font-family: 'Portfolio Bit', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.extra-bold,
.bold-title {
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.caption,
figcaption.caption {
  font-family: 'Acumin Pro', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  margin: 0.6em 0 1em 0;
  padding: 0 16px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

figcaption.caption {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

.caption a,
figcaption.caption a {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: underline;
}

.caption a:hover,
figcaption.caption a:hover {
  color: #000000;
}

.about-text {
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 200;
  font-size: 1.15rem;
  line-height: 1.6;
  padding: 0 16px;
}

.icon-caret,
.icon-arrow {
  display: inline-block;
  margin-right: 6px;
  font-weight: bold;
}

/* --- 4. Layout Architecture (Outer Frame & Columns) --- */
.site-layout {
  position: relative;
  display: grid;
  grid-template-columns: 50% 50%;
  height: calc(100vh - 20px);
  width: calc(100vw - 20px);
  border: 1px solid #000000;
  overflow: hidden;
  background: #ffffff;
}

/* Left Pinned Dashboard Column */
.desktop-left-column {
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid #000000;
  padding: 10px 10px 40px 10px;
  background: #ffffff;
}

/* Right Content Showcase Column (Pinned Footer Architecture) */
.content-showcase-column {
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 0;
}

#active-content-container {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 10px 30px 10px;
  min-height: 0;
}

/* Subtle Scrollbars */
.desktop-left-column::-webkit-scrollbar,
#active-content-container::-webkit-scrollbar {
  width: 4px;
}

.desktop-left-column::-webkit-scrollbar-thumb,
#active-content-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}

/* --- 5. Left Column Header Box (#main-content-container) --- */
#main-content-container {
  border: 1px solid black;
  background-color: white;
  padding: 8px 14px 0 14px;
  overflow: hidden;
}

.section-header {
  margin-bottom: 6px;
}

.blurb-text {
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 200;
  font-size: 1.15rem;
  line-height: 1.35;
  color: black;
}

.blurb-text p {
  margin: 0;
}

.dotted-underline {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  font-weight: 500;
}

.section-divider-full-width,
.footer-divider-full-width {
  display: none;
}

/* --- 6. Main Navigation Bar --- */
.main-nav-bar {
  margin: 0 -14px;
  width: calc(100% + 28px);
  text-align: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.nav-links-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  font-family: 'Portfolio Bit', sans-serif;
  margin: 0;
  padding: 0;
  height: 30px;
}

.nav-links-grid .nav-item {
  flex: 1;
  text-decoration: none;
  color: black;
  text-align: left;
  border-right: 1px solid black;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
  padding: 7px 4px 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.nav-links-grid .nav-item:last-child {
  border-right: none;
}

/* --- 7. Metallic Chrome Pipe Bar --- */
.chrome-pipe-container {
  position: relative;
  margin: 0 -14px;
  width: calc(100% + 28px);
  height: 30px;
  background: linear-gradient(0deg,
      #222 0%,
      #777 20%,
      #bbb 40%,
      #999 50%,
      #ccc 60%,
      #fff 72.5%,
      #555 100%);
  border-top: none;
}

.pipe-text {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% + 3px));
  left: 14px;
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.75);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 -1px 0 rgba(0, 0, 0, 0.2);
  filter: blur(0.1px);
}

/* --- 8. Project Index Table (Left Column) --- */
.project-index-table-container {
  border: 1px solid black;
  margin-top: 10px;
  margin-bottom: 20px;
  background: white;
  padding: 0;
}

.project-row {
  box-sizing: border-box;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.project-row:not(.gallery-title) {
  display: grid;
  grid-template-columns: 88px 1.25fr 1fr;
  align-items: stretch;
  padding: 0 !important;
  line-height: 1.15;
  border-bottom: 1px solid black;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  position: relative;
  background: white;
  box-sizing: border-box;
}

.project-index-table-container .col-unit {
  min-width: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-top: 7.5px !important;
  padding-bottom: 5px !important;
}

.project-index-table-container .slot-0 {
  padding-left: 14px !important;
  padding-right: 10px !important;
  border-right: 1px dashed black;
  text-align: left;
}

.project-index-table-container .slot-1 {
  padding-left: 10px !important;
  padding-right: 10px !important;
  border-right: 1px dashed black;
  text-align: left;
}

.project-index-table-container .slot-2 {
  padding-left: 10px !important;
  padding-right: 14px !important;
  text-align: left;
}

.project-index-table-container .project-row:first-child .col-unit {
  padding-top: 15px !important;
  padding-bottom: 6px !important;
}

.project-row:not(.gallery-title):last-child {
  border-bottom: none;
}

.project-row:not(.gallery-title) a {
  color: black;
  text-decoration: none;
}

.project-row:not(.gallery-title):hover .slot-0 a,
.project-row:not(.gallery-title):hover .slot-1 a {
  color: #ff33bb !important;
}

/* When hovering over slot-2 tags specifically, keep slot-0 and slot-1 black */
.project-row:not(.gallery-title):hover:has(.slot-2:hover) .slot-0 a,
.project-row:not(.gallery-title):hover:has(.slot-2:hover) .slot-1 a {
  color: black !important;
}

/* Tag Filter Buttons in Project Index */
.tag-filter-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: black;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline;
}

.tag-filter-btn:hover {
  color: #ff33bb !important;
  text-decoration: none;
}

.tag-filter-btn.active {
  color: inherit;
  font-weight: inherit;
}

#category-column-header.is-filtered {
  cursor: pointer;
  user-select: none;
}

#category-column-header.is-filtered:hover,
#category-column-header.is-filtered:hover .active-tag-label {
  color: #ff33bb;
}

.tag-separator {
  color: rgba(0, 0, 0, 0.4);
  margin: 0 3px;
  user-select: none;
}


/* Coming Soon Hover Overlay */
.project-row.coming-soon {
  position: relative;
  cursor: not-allowed;
  color: black;
  font-weight: 200;
}

.project-row.coming-soon::after {
  content: "Coming soon. Check back later.";
  position: absolute;
  inset: 0;
  background-color: white;
  color: black;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  z-index: 10;
  box-sizing: border-box;
  padding-top: 9px;
  padding-bottom: 3px;
}

.project-row.coming-soon:hover::after {
  display: flex;
}

.project-row.coming-soon:hover>* {
  visibility: hidden;
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  color: black;
}

/* --- 9. Project Cards in Right Column --- */
.page-holder {
  border: 1px solid black;
  margin-bottom: 10px;
  background: white;
}

.page-holder .page-holder {
  border: none;
  margin: 0;
  padding: 0;
}

/* Project Header Row inside cards */
.grid-row.project-row.gallery-title {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 16px 8px 16px !important;
  border-bottom: 1px dashed black !important;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  margin: 0 !important;
  background: white;
  box-sizing: border-box;
}

.project-divider-solid {
  border: none;
  height: 1px;
  background-color: black;
  margin: 0;
  width: 100%;
}

.grid-row.project-row.gallery-title a {
  color: black;
  text-decoration: none;
}

.grid-row.project-row.gallery-title a:hover {
  color: #ff33bb !important;
}

.grid-row.project-row.gallery-title .slot-0 {
  text-align: left;
}

.grid-row.project-row.gallery-title .slot-1 {
  text-align: center;
}

.grid-row.project-row.gallery-title .slot-2 {
  text-align: right;
}

/* --- 10. Slideshow Component --- */
.slideshow-container {
  position: relative;
  overflow: hidden;
  width: calc(100% - 32px);
  margin: 16px;
  background: transparent;
  border: none;
  padding: 0;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slideshow-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #000000;
  pointer-events: none;
  z-index: 5;
}

.slideshow-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.slideshow-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  width: auto;
  height: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  line-height: 0;
  outline: none;
}

.slideshow-btn svg {
  display: block;
  width: 16px;
  height: 22px;
}

.slideshow-btn svg polygon {
  stroke: #000000;
  stroke-width: 1px !important;
  vector-effect: non-scaling-stroke;
  transition: fill 0.08s ease;
}

.slideshow-container:hover .slideshow-btn {
  opacity: 0.85;
}

.slideshow-btn:hover {
  opacity: 1;
  transform: translateY(-50%);
}

.slideshow-btn:active {
  opacity: 1 !important;
  transform: translateY(-50%);
}

.slideshow-btn:active svg polygon {
  fill: #ff33bb !important;
  stroke: #000000 !important;
}

.slideshow-btn.prev-btn {
  left: 14px;
}

.slideshow-btn.next-btn {
  right: 14px;
}

.slideshow-indicators {
  display: none;
}

/* --- 11. Media Elements & Inner Inset Borders --- */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.zoomable-img,
.slideshow-slide img,
.slideshow-slide video,
.media-wrapper img,
.media-wrapper video {
  cursor: zoom-in;
}

/* Ensure slideshow media and zoomable images have zero opacity dimming or overlay on hover */
.slideshow-container:hover img,
.slideshow-container:hover video,
.slideshow-slide:hover img,
.slideshow-slide:hover video,
.zoomable-img:hover,
img:hover,
video:hover {
  opacity: 1 !important;
  filter: none !important;
  background-color: transparent !important;
}

/* Standalone Images & Videos */
.media-wrapper {
  margin: 16px;
}

.media-wrapper img {
  border: none;
  outline: 1px solid #000000;
  outline-offset: -1px;
  margin: 0 auto;
  padding: 0;
}

.media-wrapper video {
  border: 1px solid #000000;
  outline: none;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
}

/* Slideshow slides avoid duplicate margins/borders */
.slideshow-slide .media-wrapper {
  margin: 0;
  width: 100%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.slideshow-slide img,
.slideshow-slide video {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  outline: none;
}

.mobile-only-header .media-wrapper img,
.lightbox-content img,
.lightbox-content video {
  border: none !important;
  outline: none !important;
}

/* Video wrappers (Vimeo / responsive video) */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 16px;
  width: calc(100% - 32px);
  border: none;
}

.video-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #000000;
  pointer-events: none;
  z-index: 2;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grid Galleries in Inner Pages (Chloris, Dissonant, Love & Irony, MYO) */
gallery-grid,
gallery-columnized {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px;
  width: calc(100% - 32px);
}

gallery-grid .media-wrapper,
gallery-columnized .media-wrapper {
  margin: 0;
  width: 100%;
}

/* --- 12. Inner Page Two-Column Layout & Subheadings --- */
.grid-row:not(.project-row) {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 15px 0;
  padding: 0 16px;
  width: 100%;
}

/* Tighter, uniform spacing between first media item and project text */
.slideshow-container:has(+ .grid-row:not(.project-row)),
.media-wrapper:has(+ .grid-row:not(.project-row)),
.slideshow-container:has(+ hr + .grid-row:not(.project-row)),
.media-wrapper:has(+ hr + .grid-row:not(.project-row)),
.page-holder>.slideshow-container:first-of-type,
.page-holder>.media-wrapper:first-of-type {
  margin-bottom: 12px;
}

.media-wrapper+hr:has(+ .grid-row:not(.project-row)),
.slideshow-container+hr:has(+ .grid-row:not(.project-row)),
.page-holder>hr:has(+ .grid-row:not(.project-row)),
.page-holder>.media-wrapper:first-of-type+hr {
  margin: 10px 0 12px 0;
}

.slideshow-container+.grid-row:not(.project-row),
.media-wrapper+.grid-row:not(.project-row),
.page-holder>hr+.grid-row:not(.project-row) {
  margin-top: 24px;
}

/* Collapse any stray empty line breaks between first media and project text */
.page-holder br:has(+ .grid-row),
.page-holder br:has(+ br + .grid-row),
.page-holder br:has(+ br + br + .grid-row),
.slideshow-container+br,
.media-wrapper+br {
  display: none;
}

/* --- Case Study Section Headings & Dividers --- */
.case-study-divider {
  border: none;
  border-top: 1px solid black;
  margin: 32px 16px 12px;
  width: calc(100% - 32px);
}

.case-study-divider.standalone {
  margin: 28px 16px;
}

.case-study-divider.dotted {
  border-top: 1px dotted black;
}

.case-study-divider.dashed {
  border-top: 1px dashed black;
}

.case-study-divider.blank {
  border-top: none;
}

.case-study-heading {
  text-align: center;
  font-family: inherit;
  font-size: 1.15rem;
  margin: 0 16px 4px;
  padding: 0;
  line-height: 1.4;
}

/* Collapse excessive line breaks around headings and gallery grids */
.case-study-heading + br,
.case-study-divider + br,
.case-study-heading + br + br,
.page-holder div[style*="text-align: center"] + br,
.page-holder div[style*="text-align: center"] + br + br,
.page-holder hr + br,
.page-holder hr + br + br,
.page-holder gallery-grid + br,
.page-holder br:has(+ gallery-grid) {
  display: none;
}


.col-unit.span-4 {
  flex: 0 0 35%;
  max-width: 35%;
  padding-right: 24px;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
}

.col-unit.span-8 {
  flex: 0 0 65%;
  max-width: 65%;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 200;
}

/* Auto-span column unit in project body grids (used for full-width subheadings) */
.grid-row:not(.project-row) .col-unit.span-auto {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  text-align: center;
}

.grid-row:not(.project-row):has(.col-unit.span-auto) {
  margin: 24px 0 14px 0;
  justify-content: center;
}

/* Section Subheadings in Project Pages (Wordmark, Process Images, Poster Preliminary Ideation, etc.) */
.page-holder>div[style*="text-align: center"]:not(.slideshow-container *):not(.caption),
.page-holder .grid-row:not(.project-row) .col-unit.span-auto,
.page-holder .grid-row:not(.project-row) .col-unit.span-auto div[style*="text-align: center"],
.page-holder .grid-row:not(.project-row)>div[style*="text-align: center"] {
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
}

.page-holder>div[style*="text-align: center"]:not(.slideshow-container *):not(.caption) {
  margin: 24px 0 14px 0;
}

.page-holder div[style*="text-align: center"] br {
  display: none;
}

.page-holder div[style*="text-align: center"]:empty {
  display: none;
}

/* --- 13. Pinned Footer (Right Column) --- */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid black;
  background: #ffffff;
  padding: 10px 12px;
  z-index: 10;
  margin: 0;
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 200;
}

.footer-content-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.footer-col.left,
.footer-col.left.bit-text {
  font-family: 'Portfolio Bit', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  line-height: 1;
  display: flex;
  align-items: center;
  transform: translateY(3.5px);
}

.footer-col.center {
  display: flex;
  gap: 16px;
  align-items: center;
  line-height: 1;
  transform: translateY(1.5px);
}

.footer-col.center a {
  color: black;
  text-decoration: none;
}

.footer-col.center a:hover {
  color: #ff33bb !important;
}

.footer-col.right {
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  color: black;
  line-height: 1;
  display: flex;
  align-items: center;
  transform: translateY(1.5px);
}

/* --- 14. Lightbox Modal (Split-Pane on Desktop, Fullscreen on Mobile) --- */
.lightbox-modal {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lightbox-modal *::selection,
.lightbox-modal *::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

.lightbox-modal.active {
  display: flex;
}



#lightbox-pdf {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Desktop Viewport (>= 900px): Pinned to Left 50% Column */
@media (min-width: 900px) {
  .lightbox-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    border-right: 1px solid #000000;
    z-index: 1000;
    padding: 30px 24px;
    overflow: hidden;
  }

  .lightbox-modal.is-pdf-mode {
    padding: 0;
    cursor: default;
  }

  .lightbox-modal.is-pdf-mode .lightbox-content {
    cursor: default;
    width: 100%;
    height: 100%;
  }

  .lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-out;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: zoom-in;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }

  .lightbox-content.is-zoomed img,
  .lightbox-content.is-zoomed video {
    cursor: zoom-out;
  }
}

/* Mobile Viewport (< 900px): Fullscreen Modal Overlay */
@media (max-width: 899px) {
  .lightbox-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    z-index: 99999;
    padding: 20px;
    border: none;
  }

  .lightbox-modal.is-pdf-mode {
    background: #ffffff;
    padding: 0;
    cursor: default;
  }

  .lightbox-modal.is-pdf-mode .lightbox-content {
    cursor: default;
  }

  .lightbox-modal.is-pdf-mode #lightbox-pdf {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
  }

  .lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-out;
  }

  .lightbox-content.is-zoomed {
    touch-action: none;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
  }

  .lightbox-content.is-zoomed img,
  .lightbox-content.is-zoomed video {
    cursor: zoom-out;
  }
}

/* --- 14b. Contact Page & Form Styling --- */
.contact-info-card {
  border: 1px solid black;
  padding: 16px;
  margin-bottom: 20px;
  background: #ffffff;
}

.contact-info-card p {
  margin: 6px 0;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.contact-form-card {
  border: 1px solid black;
  padding: 18px;
  margin-bottom: 20px;
  background: #ffffff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-field label {
  font-family: 'Acumin Pro', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid black;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  box-sizing: border-box;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field input {
  padding: 13px 12px 8px 12px;
  line-height: 1.15;
}

.contact-field textarea {
  padding: 12px 12px 10px 12px;
  line-height: 1.4;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-family: 'Acumin Pro', sans-serif;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  background-color: #fafafa;
  border-color: #000000;
  box-shadow: inset 0 0 0 1px #000000;
}

.contact-submit-btn {
  background: black;
  color: white;
  border: 1px solid black;
  padding: 16px 16px 10px 16px;
  cursor: pointer;
  margin-top: 8px;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-family: 'Portfolio Bit', sans-serif;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.contact-submit-btn:hover {
  background: #ff33bb !important;
  color: white !important;
  border-color: #ff33bb !important;
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-feedback {
  margin-top: 15px;
  padding: 14px 18px;
  border: 1px solid black;
  background: #000000;
  color: #ffffff;
  font-family: 'Acumin Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.contact-feedback.error {
  background: #fff0f0;
  color: #c00000;
  border-color: #c00000;
}

/* --- 15. Responsive Adaptations for Mobile (< 900px) --- */
.mobile-only-header,
.mobile-view-toggle,
.mobile-only-footer {
  display: none;
}

@media (max-width: 899px) {

  html,
  body {
    overflow: auto;
    height: auto;
  }

  .site-layout {
    display: block;
    height: auto;
    overflow: visible;
    border: none;
  }

  .desktop-left-column {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: none;
    padding: 0;
  }

  .desktop-left-column .left-column-inner {
    padding: 0 10px;
    overflow: visible;
    height: auto;
  }

  /* Mobile header already provides top wordmark, blurb, nav, and chrome pipe */
  .desktop-left-column>.left-column-inner>.portfolio-bit,
  .desktop-left-column>.left-column-inner>#main-content-container {
    display: none;
  }

  .desktop-left-column .project-index-table-container {
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .mobile-only-header {
    display: block;
    padding: 10px;
    background: white;
  }

  .mobile-view-toggle {
    display: none !important;
  }

  .content-showcase-column {
    height: auto;
    overflow-y: visible;
    padding: 0;
  }

  #active-content-container {
    height: auto;
    overflow-y: visible;
    padding: 15px 10px 90px 10px;
  }

  .content-showcase-column .site-footer {
    display: none;
  }

  .mobile-only-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-top: 1px solid black;
    padding: 8px 15px;
  }

  .mobile-only-footer .site-footer {
    border-top: none;
    padding: 0;
    margin: 0;
  }

  .grid-row:not(.project-row) .col-unit.span-4,
  .grid-row:not(.project-row) .col-unit.span-8 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 12px;
  }

  .project-index-table-container .col-unit {
    margin-bottom: 0 !important;
  }

  gallery-grid,
  gallery-columnized {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px;
    width: calc(100% - 24px);
  }

  .media-wrapper:not(.slideshow-slide .media-wrapper) {
    margin: 12px;
  }

  .slideshow-container,
  .video-wrapper {
    margin: 12px;
    width: calc(100% - 24px);
  }
}