/*
Theme Name: Portfolio Child
Template: blockbase
Version: 1.0
*/

/* ─── Inter (self-hosted) ─── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ─── Fluid Horizontal Padding ─── */

:root {
  --padding-inline: clamp(10px, calc(-15.38px + 7.05vw), 120px);
}

.wp-site-blocks {
  padding-inline: var(--padding-inline) !important;
}

.wp-site-blocks .wp-block-post-content,
.wp-site-blocks .entry-content,
.wp-site-blocks .is-layout-constrained,
.wp-site-blocks .wp-block-post-content-is-layout-constrained,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  padding-inline: 0 !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* ─── Full Bleed Elements ─── */

.wp-block-image.alignfull,
.wp-block-cover.alignfull,
.wp-block-group.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-inline: 0 !important;
}

/* ─── Remove Link Underline ─── */

a,
a:hover,
a:focus,
.wp-block-paragraph a,
.wp-block-row a {
  text-decoration: none !important;
}

/* ─── Hero Header Internal Spacing ─── */

.hero-nav-row {
  margin-top: 40px !important;
}

/* ─── Hero Nav Row ─── */

.hero-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 2em;
}

.hero-nav-row a {
  font-family: var(--wp--preset--font-family--editorial);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.hero-nav-row a,
.desktop-sticky-nav a,
.mobile-offcanvas-nav a,
.wp-block-post-title a {
  display: inline-block;
  padding: 8px 4px;
  margin: -8px -4px;
  perspective: 600px;
  text-decoration: none;
}

.hero-nav-row a span,
.desktop-sticky-nav a span,
.mobile-offcanvas-nav a span,
.wp-block-post-title a span {
  display: inline-block;
  backface-visibility: hidden;
  transition: transform 0.4s ease;
}

.hero-nav-row a:hover span,
.desktop-sticky-nav a:hover span,
.mobile-offcanvas-nav a:hover span,
.wp-block-post-title a:hover span {
  transform: rotateX(360deg);
}

/* ─── Anchor Nav Row ─── */

.wp-block-row {
  justify-content: space-between !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  --wp--custom--gap--horizontal: 0px !important;
}

.wp-block-row > .wp-block-paragraph {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding-inline: 0 !important;
  font-family: var(--wp--preset--font-family--editorial);
  font-weight: 600;
}

/* ─── Hero Banner Dynamic Height ─── */

.metaslider .flexslider .slides img {
  height: var(--hero-banner-height) !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  aspect-ratio: unset !important;
}

/* ─── Override WordPress Constrained Layout Auto Margins ─── */

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ─── Reset WordPress Constrained Layout ─── */

.is-layout-constrained,
.wp-block-post-content-is-layout-constrained {
  padding-inline: 0 !important;
  max-width: 100% !important;
}

/* ─── Hero Element Spacing ─── */

.wp-block-post-content > * + * {
  margin-top: 20px !important;
}

/* ─── Hide Desktop Hero Header on Mobile ─── */

@media (max-width: 599px) {
  .hero-header {
    display: none !important;
  }
}

/* ─── Remove Top Spacing on Mobile Slider ─── */

@media (max-width: 599px) {
  .wp-block-post-content > .hero-header + * {
    margin-top: 0 !important;
  }
}

/* ─── UI Background Style (shared across overlays/headers) ─── */

:root {
  --ui-bg-color: rgba(0, 0, 0, 0.85);
  --ui-bg-blur: 40px;
}

.ui-background {
  background: var(--ui-bg-color);
  backdrop-filter: blur(var(--ui-bg-blur));
  -webkit-backdrop-filter: blur(var(--ui-bg-blur));
}

/* ─── Mobile Header & Off-Canvas Nav ─── */

.mobile-header,
.mobile-offcanvas {
  display: none;
}

@media (max-width: 599px) {
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 15px;
    z-index: 1002;
    box-sizing: border-box;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
  }

  body .mobile-header {
    padding-inline: var(--padding-inline) !important;
  }

  .mobile-header-name {
    font-family: var(--wp--preset--font-family--editorial);
    font-weight: 600;
    color: #ffffff;
    font-size: 20px;
  }

  .mobile-burger {
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    padding: 0;
  }

  .mobile-burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #ffffff;
    left: 0;
    transition: all 0.3s ease;
  }

  .mobile-burger span:nth-child(1) { top: 0; }
  .mobile-burger span:nth-child(2) { top: 9px; }
  .mobile-burger span:nth-child(3) { top: 18px; }

  .mobile-burger.is-active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
  .mobile-burger.is-active span:nth-child(2) { opacity: 0; }
  .mobile-burger.is-active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

  .mobile-offcanvas {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: 40px 30px;
    box-sizing: border-box;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
  }

  .mobile-offcanvas.is-open {
    transform: translateX(0);
  }

  .mobile-offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 60px;
  }

  .mobile-offcanvas-nav a {
    color: #ffffff;
    font-family: var(--wp--preset--font-family--editorial);
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    text-align: center;
    width: 100%;
  }

  body {
    padding-top: 60px;
  }
}

/* ─── Page Stack Responsive Spacing ─── */

.page-stack {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  gap: 20px !important;
}

@media (max-width: 599px) {
  .page-stack {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

 @media (max-width: 599px) { .page-stack:has(.hero-header) 
 { padding-top: 0 !important; } }
}

/* ─── Desktop Sticky Header ─── */

.desktop-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--padding-inline) !important;
  padding-block: 20px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.desktop-sticky-header.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.desktop-sticky-name {
  font-family: var(--wp--preset--font-family--editorial);
  font-weight: 600;
  font-size: 32px;
  color: #ffffff;
}

.desktop-sticky-nav {
  display: flex;
  gap: 24px;
}

.desktop-sticky-nav a {
  font-family: var(--wp--preset--font-family--editorial);
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .desktop-sticky-header {
    display: none !important;
  }
}

/* ─── Lightbox Overlay ─── */

.portfolio-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.portfolio-lightbox-overlay.is-active {
  display: flex;
}

.portfolio-lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
}

.portfolio-lightbox-close,
.portfolio-lightbox-prev,
.portfolio-lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
}

.portfolio-lightbox-close {
  top: 20px;
  right: 30px;
}

.portfolio-lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.portfolio-lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* ─── Link Hover Flip Animation ─── */

.wp-block-row a,
.desktop-sticky-nav a,
.mobile-offcanvas-nav a,
.wp-block-post-title a {
  display: inline-block;
  padding: 8px 4px;
  margin: -8px -4px;
  perspective: 600px;
  text-decoration: none;
}

.wp-block-row a span,
.desktop-sticky-nav a span,
.mobile-offcanvas-nav a span,
.wp-block-post-title a span {
  display: inline-block;
  backface-visibility: hidden;
  transition: transform 0.4s ease;
}

.wp-block-row a:hover span,
.desktop-sticky-nav a:hover span,
.mobile-offcanvas-nav a:hover span,
.wp-block-post-title a:hover span {
  transform: rotateX(360deg);
}

/* ─── Commissions Section ─── */

.commissions-loop .wp-block-post {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 40px !important;
  padding-block: 60px;
  border-top: 1px solid #262626;
  align-items: start;
}

.commissions-loop .wp-block-post:first-child {
  border-top: none;
  padding-top: 0;
}

.commissions-loop .wp-block-post:last-child {
  padding-bottom: 0;
}

.commission-title {
  grid-column: span 2;
}

.commission-excerpt {
  grid-column: span 3;
}

.commission-image {
  grid-column: span 7;
}

.commission-image img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 599px) {
  .commissions-loop .wp-block-post {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding-block: 20px;
  }

  .commission-title,
  .commission-excerpt,
  .commission-image {
    grid-column: 1 / -1 !important;
  }

  .commission-image {
    order: 1;
  }

  .commission-title {
    order: 2;
  }

  .commission-excerpt {
    order: 3;
  }
}

/* ─── Project Image Hover Zoom (Personal Work) ─── */

.project_category-personal-work .wp-block-post-featured-image {
  overflow: hidden;
  display: block;
}

.project_category-personal-work .wp-block-post-featured-image img {
  transition: transform 0.4s ease;
}

.project_category-personal-work:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}

/* ─── Project Image Hover Zoom (Commissions) ─── */

.project_category-commission .commission-image {
  overflow: hidden;
  display: block;
}

.project_category-commission .commission-image img {
  transition: transform 0.4s ease;
}

.project_category-commission:hover .commission-image img {
  transform: scale(1.05);
}

/* ─── Process Section ─── */

.process-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-block: 80px !important;
  padding-bottom: 200px !important;
}

.process-section > .wp-block-heading {
  text-align: center;
}

.process-section > .wp-block-paragraph {
  width: 66.666%;
  margin-inline: auto !important;
  text-align: center;
}

.process-section > .wp-block-quote {
  width: 50%;
  margin-inline: auto !important;
  text-align: center;
}

.process-section > .wp-block-image {
  width: 83.333%;
  margin-inline: auto !important;
}

.process-section > .wp-block-image img {
  width: 100%;
}

/* ─── Process Video Row ─── */

.process-videos {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  align-items: start !important;
}

.process-videos.is-layout-constrained > * {
  margin-inline: 0 !important;
}

.process-video {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  display: block !important;
}

.video-left {
  padding-right: 60px;
  padding-top: 0;
}

.video-center {
  padding-inline: 30px;
  padding-top: 120px;
}

.video-right {
  padding-left: 60px;
  padding-top: 240px;
}

@media (max-width: 599px) {
  .process-videos {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .video-left,
  .video-center,
  .video-right {
    padding: 0 !important;
  }
}

/* ─── Contact Section ─── */

.contact-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #ffffff;
}

.wp-site-blocks .contact-inner {
  padding-inline: var(--padding-inline) !important;
  padding-block: 80px;
}

.contact-section,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.contact-section h4,
.contact-section p {
  color: #000000;
}

.contact-columns {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 80px;
}

.contact-image-col {
  grid-column: span 6;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: var(--padding-inline);
}

.contact-image-col img {
  width: auto;
  max-width: 100%;
  display: block;
}

.contact-name {
  font-family: var(--wp--preset--font-family--editorial);
  font-weight: 600;
  margin: 0 !important;
}

.contact-info-col {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-link {
  color: #000000 !important;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px !important;
}

@media (max-width: 599px) {
  .contact-columns {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .contact-image-col,
  .contact-info-col {
    grid-column: 1 / -1 !important;
  }
}

/* ─── Zero All Heading/Paragraph Spacing (safety net) ─── */

h1, h2, h3, h4, h5, h6, p,
.wp-block-heading,
.wp-block-post-title,
.wp-block-post-excerpt,
.wp-block-paragraph {
  margin: 0 !important;
  padding: 0 !important;
}

/* ─── Mobile Typography Overrides ─── */

@media (max-width: 599px) {
  h2,
  .wp-block-heading[data-heading-level="2"] {
    font-size: 42px !important;
  }
}

/* ─── Scroll Fade (Images, Titles, Excerpts) ─── */

.scroll-fade {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.scroll-fade.scroll-fade-visible {
  opacity: 1;
}

/* ─── Scroll Fade (Character Text, grouped by line) ─── */

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.text-fade-visible .split-char {
  opacity: 1;
  transform: translateY(0);
}


/* ─── CV Section ─── */

.cv-section > .wp-block-heading,
.cv-section > .wp-block-paragraph {
  width: 83.333%; /* 10/12, one-column indent each side */
  margin-inline: auto !important;
}

.cv-loop .wp-block-post {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 20px;
  padding-block: 40px;
  border-top: 1px solid #262626;
  align-items: start;
}

.cv-loop .wp-block-post:first-child {
  border-top: none;
  padding-top: 0;
}

.cv-loop .wp-block-post:last-child {
  padding-bottom: 0;
}

.cv-title {
  grid-column: 1 / span 4;
}

.cv-location {
  grid-column: 5 / span 2;
}

.cv-description {
  grid-column: 8 / span 6;
}

@media (max-width: 599px) {
  .cv-section > .wp-block-heading,
  .cv-section > .wp-block-paragraph {
    width: 100%;
  }

  .cv-loop .wp-block-post {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding-block: 20px;
  }

  .cv-title,
  .cv-location,
  .cv-description {
    grid-column: 1 / -1 !important;
  }
}

/* ─── Fluid H1 Size (Hero Artist Name) ─── */

.hero-header h1 {
  font-size: clamp(40px, calc(4.29px + 5.95vw), 90px) !important;
}

/* ─── Process Section Mobile Typography ─── */

@media (max-width: 599px) {
  .process-section > .wp-block-paragraph,
  .process-section > .wp-block-quote {
    width: 100% !important;
    margin-inline: 0 !important;
  }
}

@media (max-width: 599px) {
  .contact-info-col {
    align-items: flex-start;
  }

  .contact-link {
    text-align: left;
  }
}

/* ─── View More Button ─── */
.is-collapsed,
.personal-loop .wp-block-post.is-collapsed,
.commissions-loop .wp-block-post.is-collapsed { display: none !important; }
.view-more-btn { display: block; margin: 60px auto 0; padding: 14px 32px; background: none; border: 1px solid #ffffff; color: #ffffff; font-family: var(--wp--preset--font-family--editorial); font-weight: 600; font-size: 16px; text-transform: uppercase; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.view-more-btn:hover, .view-more-btn:focus-visible { background: #ffffff; color: #000000; }

@media (max-width: 599px) {
  .mobile-hero-slider { height: calc(100svh - var(--hero-text-height)); }
}

@media (max-width: 599px) {
  .wp-block-post-content > .page-stack { margin-top: 0 !important; }
}

/* ─── Footer V02 ─── */
.footer-v02 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.wp-block-post-content > .footer-v02 { margin-top: 0 !important; }
.footer-v02-image { grid-column: 1 / span 7; margin: 0 !important; }
.footer-v02-image img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 2 / 1 !important; object-fit: cover !important; }
.footer-v02-details { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 10px; }
.footer-v02-entry { display: flex; flex-wrap: wrap; column-gap: 12px; font-family: 'Inter', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.4; color: #ffffff; }
.footer-v02-entry a, .footer-v02-credit a { color: #ffffff; }
.footer-v02-credit { grid-column: 1 / -1; font-family: 'Inter', Helvetica, Arial, sans-serif; font-weight: 300; font-size: 12px; opacity: 0.6; }
@media (max-width: 599px) {
  .footer-v02 { grid-template-columns: 1fr; row-gap: 20px; padding-top: 20px; padding-bottom: 20px; }
  .footer-v02-image, .footer-v02-details, .footer-v02-credit { grid-column: 1 / -1; }
  .footer-v02-image img { aspect-ratio: 5 / 7 !important; }
}