/*
Theme Name: Erick Bruno Theme
Theme URI: https://itomic.com.au/
Author: Itomic Digital
Author URI: https://itomic.com.au/
Description: A bespoke WordPress theme. 
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: erick-bruno-theme
*/

/* Import Libre Caslon Display from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Commissioner:ital,wght@0,200..900;1,200..900&display=swap');

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Libre Caslon Display', serif;
    line-height: 1.3;
    background: #ffffff;
    color: #000000;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

/* Header and navigation */
.site-header {
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
    display: flex;
    /* align all header content to the right of the page */
    justify-content: flex-end;
    /* vertically center the links and logo so the red line would cut through the middle */
    align-items: center;
    /* allow header to span full width; margins handled by padding */
    max-width: none;
    margin: 0;
}

.site-header .primary-links {
    /* use flex layout for the primary links; spaces come from HTML */
    display: flex;
    /* prevent automatic spacing between flex items */
    gap: 0;
    font-size: 1rem;
    text-transform: capitalize;
    /* remove top margin to align vertically with the logo */
    margin-top: 0;
    /* add a small margin to separate the nav from the logo */
    margin-right: 1rem;
}

.site-header .primary-links a {
    color: #000000;
    position: relative;
}

/* adjust spacing in the primary navigation */
.primary-links {
    display: flex;
    align-items: center;
}

/* style project title preceding the slash in header */
.primary-links .project-title {
    font-size: 1rem;
    white-space: nowrap;
    /* no margin since spacing handled by HTML */
    margin-right: 0;
}

.primary-links .proj-separator {
    color: #c40000;
    /* remove margin since spacing handled by HTML */
    margin-left: 0;
    margin-right: 0;
    font-size: 1rem;
}

.primary-links a {
    /* remove margin since spacing handled by HTML */
    margin-right: 0;
    /* default colour inherited from parent */
}

/* Highlight the active page/project link in the primary navigation */
.primary-links a.active {
    color: #c40000;
}

.primary-links a:last-of-type {
    margin-right: 0;
}

/* Style for project title shown before the primary links */
/* duplicate removed above */

.site-header .logo {
    /* use a bold sans‑serif font for the logo */
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-align: right;
    position: relative;
    white-space: nowrap;
}

/* Make the logo link clickable without style changes */
.site-header .logo a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
}
.site-header .logo a:visited,
.site-header .logo a:hover,
.site-header .logo a:active {
    color: inherit;
    text-decoration: none;
}

.site-header .logo span.line {
    display: block;
    width: 100%;
    height: 1px;
    background: #c40000;
    position: absolute;
    /* adjust strike‑through slightly higher while keeping below the midline */
    top: 62%;
    left: 0;
}

/* Project navigation */
.project-nav {
    font-size: 2.5rem;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-width: 1400px;
    /* occupy only 65% of the page and align to the right */
    width: 65%;
    margin: 2rem 0 0 auto;
    padding: 0 2rem;
    position: relative;
    /* align items to the right so text flows towards the right margin */
    justify-content: flex-end;
    text-align: right;

    /* ensure it sits above the preview image */
    z-index: 10;
}

.project-nav .project-link {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-nav .project-link:hover {
    color: #c40000;
}

.project-nav .separator {
    color: #c40000;
    margin: 0 0.5rem;
}

.project-nav .collab {
    color: #c40000;
}

/* Preview image container */
.preview-container {
    /* Use fixed positioning so the preview is relative to the viewport */
    position: fixed;
    /* place preview at the centre of the viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* size similar to gallery images with white space around */
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 700px;
    pointer-events: none;
    /* ensure preview appears behind project navigation but above background */
    z-index: 0;
    opacity: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.preview-container.visible {
    /* 70% transparency corresponds to 30% opacity */
    opacity: 0.3;
}

/* Front page featured images */
.featured-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 2rem;
}

.featured-images img {
    max-width: 100%;
    width: calc(50% - 2rem);
    height: auto;
    display: block;
    opacity: 0.6;
}

/* Single project gallery */
.gallery {
    column-count: 3;
    column-gap: 1rem;
    margin: 3rem 2rem;
}

.gallery img {
    width: 100%;
    margin-bottom: 1rem;
    display: block;
}

/* Contact page */
.contact-content {
    /* centre the contact area on the right side of the page */
    width: 65%;
    margin: 4rem 2rem 4rem auto;
    padding: 0 2rem;
    font-size: 1.4rem;
    /* default alignment; child elements control their own text alignment */
    text-align: left;
}

.contact-content .bio {
    max-width: 100%;
    margin-bottom: 2rem;
    /* centre the biography text within its container */
    text-align: center;
}

.contact-content .details {
    max-width: 100%;
    text-align: right;
}

.contact-content .details a {
    color: #c40000;
    /* match the logo font for contact details */
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

/* Style the name and phone lines in the contact details to use the logo font */
.contact-content .details p {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0.2rem 0;
}

/* Gallery page grid */
/* Gallery page grid (Overview) */
.select-gallery {
    /* Use CSS columns to create a masonry-style layout where images stack naturally */
    column-count: 3;
    column-gap: 1rem;
    margin: 3rem 2rem;
}

.select-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    /* Avoid breaking images awkwardly across columns */
    break-inside: avoid;
}

/* Project image slider */
.project-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    /* position slider fixed and centred like the preview image */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 700px;
    margin: 0;
    z-index: 0;
}

.project-slider button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #c40000;
    padding: 0 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* Position slider arrows on either side of the image */
.project-slider .prev {
    left: 1rem;
}
.project-slider .next {
    right: 1rem;
}

/* Prev/next arrow indicators */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #c40000;
    font-size: 2rem;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    font-family: inherit;
}
.slider-arrow-prev {
    left: 1rem;
}
.slider-arrow-next {
    right: 1rem;
}

.project-slider button:focus {
    outline: none;
}

.project-slider .slider-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .project-nav {
        font-size: 1.8rem;
    }
    .contact-content {
        flex-direction: column;
        text-align: left;
    }
    .contact-content .bio,
    .contact-content .details {
        max-width: 100%;
        padding-right: 0;
    }
    .featured-images img {
        width: 100%;
    }
}
/* =====================================================
   LOGO – RED STRIKE LINE (FINAL, WORKING)
   ===================================================== */

   .site-header .logo {
    position: relative;
    padding-right: 0;
}

.site-header .logo span.line {
    position: absolute;
    left: -0.25em;
    top: 55%;
    height: 1.5px;
    width: calc(100% + 0.5em);
    background: #c00;
    pointer-events: none;
}
/* =====================================================
   TOP NAV – CONSISTENT SPACING
   ===================================================== */

   .site-header .primary-links {
    display: flex;
    align-items: center;
    gap: 0.7em; /* ≈ visual “two spaces” */
}
.site-header .primary-links a {
    margin: 0;
}
/* =====================================================
   HOME – HOVER PREVIEW OPACITY
   ===================================================== */

   .preview-container.visible {
    opacity: 0.7;
}
/* =====================================================
   LAYERING – NAVS ABOVE HOVER PREVIEWS
   ===================================================== */

/* Global header (Contact / Overview / ERICK BRUNO) */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
}

/* Project navigation (Nick / Sasha Zoya / etc) */
.project-link {
    position: relative;
    z-index: 20;
}

/* Hover preview images */
.preview-container {
    position: fixed;
    z-index: 10;
}
/* =====================================================
   GLOBAL – FIXED HEADER OFFSET
   ===================================================== */

   :root {
    --header-offset: 6rem;
}

body {
    padding-top: var(--header-offset);
}
/* Gallery internal spacing */
.gallery-grid {
    margin-top: 3rem;
}
/* =====================================================
   CONTACT PAGE – BODY COPY (MATCH PROJECT NAV SYSTEM)
   ===================================================== */

   .contact-content .bio {
    font-family: 'Libre Caslon Display', serif;
    font-size: 2.5rem;   /* exact match for now */
    line-height: 1.35;
    text-align: center;
}
/* =====================================================
   GLOBAL: SPACE BETWEEN HEADER AND PAGE CONTENT
   ===================================================== */

   .site-header + * {
    margin-top: 4rem;
}
.contact-content .details a,
.contact-content .details a:link,
.contact-content .details a:visited,
.contact-content .details a:hover,
.contact-content .details a:active {
    color: inherit;
}
.select-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.select-gallery img {
    height: 330px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}
.contact-content .details p {
    line-height: 2;
  }
  .contact-instagram {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/wp-content/themes/erick-bruno-theme-fix29/assets/icons/black-white-instagram-logo_svgstack_com_4141766031580.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .contact-content .details a[href^="mailto"] {
    color: #c40000;
  }
  .contact-content .details {
    margin-top: 6rem;
  }
  .contact-instagram {
    width: 30px;
    height: 30px;
  }
  .contact-instagram-wrap {
    margin-top: 20px;
  }
  .single-project .project-slider .slider-image {
    opacity: 1;
  }
  .single-project .project-slider .slider-image {
    transition: none !important;
    opacity: 1 !important;
}


/* Typography: use Commissioner for home project nav and contact body */
.project-nav,
.project-nav .project-link,
.contact-content,
.contact-content .bio {
    font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 300; /* Commissioner Light */
}
.project-nav a {
  font-weight: 300;
}

.contact-content h1,
.contact-content h2,
.contact-content h3,
.contact-content h4,
.contact-content h5,
.contact-content h6 {
  font-weight: 300;
}
/* Video support (no fade transitions) */
.preview-container {
    transition: none !important;
}

.project-slider .slider-image {
    transition: none !important;
}

/* Make video host fill the slider box */
.project-slider .slider-video-host {
    width: 100%;
    height: 100%;
}

/* Vimeo embed helpers */
.vimeo-embed {
    width: 100%;
    max-width: 100%;
}

.vimeo-embed-inner {
    width: 100%;
    aspect-ratio: var(--ratio, 16 / 9);
    position: relative;
}

/* Allow embeds to fit inside fixed-height containers like the slider */
.project-slider .vimeo-embed-inner {
    height: 100%;
}

.vimeo-embed-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Slider Vimeo: keep click-to-advance working and fix video positioning */
/* Ensure Vimeo fills the fixed slider box without shifting or cropping */
.single-project .project-slider {
    overflow: hidden;
}

.single-project .project-slider .slider-video-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.single-project .project-slider .vimeo-embed,
.single-project .project-slider .vimeo-embed-inner {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
}

.single-project .project-slider .vimeo-embed-inner iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}
/* Project page: absolutely no fading on video slides */
.single-project .project-slider .slider-video-host,
.single-project .project-slider .vimeo-embed,
.single-project .project-slider .vimeo-embed-inner,
.single-project .project-slider iframe {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}
/* Contact page: force Commissioner Light */
.contact-content .bio {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
}
/* Final lock: Commissioner Light on contact body text */
.contact-content .bio,
.contact-content .bio p {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
}
/* Home: force Commissioner Light */
.project-nav,
.project-nav .project-link,
.project-nav a {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
}
/* Home page: force Commissioner Light everywhere in project nav */
.project-nav,
.project-nav .project-link,
.project-nav a,
.project-nav span {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
}
/* FINAL: lock Commissioner Light explicitly */
.project-nav,
.project-nav .project-link,
.project-nav a,
.contact-content .bio,
.contact-content .bio p {
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
}

/* Ensure overlays position correctly */
.single-project .project-slider { position: fixed; }

/* =====================================================
   VIMEO SOUND ENABLE (PROJECT SLIDER)
   First click on a video enables sound + controls.
   ===================================================== */

/* Default: keep click-to-advance working by ignoring iframe clicks */
.single-project .project-slider .slider-video-host iframe {
  pointer-events: none;
}

/* When interactive, allow clicking the Vimeo player */
.single-project .project-slider .slider-video-host[data-interactive="1"] iframe {
  pointer-events: auto;
}

/* Sound hint overlay (shown on muted video slides) */
.single-project .project-slider .slider-sound-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 12;
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  pointer-events: none;
}

/* Hide hint once interactive */
.single-project .project-slider.video-interactive .slider-sound-hint {
  display: none;
}

/* Next button only appears when video is interactive */
.single-project .project-slider .slider-next-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 13;
  display: none;
  font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
}

.single-project .project-slider.video-interactive .slider-next-btn {
  display: inline-block;
}
