/* style.css */

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header styles */
header { flex-direction: column; }


    background-color: #FFFFFF; /* white */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links li a:hover {
    color: #ff9900; /* orange hover */
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-card p {
    color: #777;
    font-size: 1rem;
}

/* Footer styles */
footer {
    background-color: #232f3e;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on mobile, replace with a menu button in practice */
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}




















.display-posts-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.display-posts-listing .listing-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}
.display-posts-listing img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
















/* Target the container for each object */
.display-posts-listing .listing-item {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center everything */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
}

/* Ensure the image takes full width and doesn’t float */
.display-posts-listing .listing-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1rem; /* Space between image and text */
}

/* Style the title */
.display-posts-listing .listing-item .title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: #333;
}

/* Ensure content (description, etc.) stays below */
.display-posts-listing .listing-item .content {
    width: 100%;
    text-align: center;
}

.display-posts-listing .listing-item .content p {
    margin: 0;
    color: #777;
}

/* Optional: Adjust 3D viewer if present */
.display-posts-listing .listing-item .three-d-viewer {
    width: 100%;
    height: 300px;
    margin-top: 1rem;
}
















/* Grid container */
.display-posts-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Each item container */
.display-posts-listing .listing-item {
    position: relative;
    background-color: #fff; /* Fallback */
    /* Remove border and padding */
    border: none; /* No border */
    padding: 0; /* Already set, but ensuring no padding */
    overflow: hidden;
    height: 300px; /* Keep your preferred height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image styling */
.display-posts-listing .listing-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Keeps full image visible */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Ensure image fills edges */
    width: 100%; /* Force full width */
    height: 100%; /* Force full height */
}

/* Overlay content */
.display-posts-listing .listing-item .title,
.display-posts-listing .listing-item .content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    color: #fff;
    text-align: center;
    width: 100%;
}

/* Overlay for readability */
.display-posts-listing .listing-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/*PRES CODE DELETE THIS SHIT IF CRAP STARTS BREAKING

AAAAAAAAAAHHHHHHHHHHHHHH
AAAAAAAAAAHHHHHHHHHHHHHH


AAAAAAAAAAHHHHHHHHHHHHHH

AAAAAAAAAAHHHHHHHHHHHHHH

AAAAAAAAAAHHHHHHHHHHHHHH

AAAAAAAAAAHHHHHHHHHHHHHH

AAAAAAAAAAHHHHHHHHHHHHHH

AAAAAAAAAAHHHHHHHHHHHHHH


 */

/* The clickable button container */
.parallax-button {
  position: relative;
  display: block;
  width: 220px;            /* Set the overall button width */
  height: 200px;           /* Set the overall button height */
  margin: 0 auto;          /* Centers the button horizontally */
  
  text-decoration: none;   /* Remove default link styles */
  color: #fff;             /* Text color */
  background-color: #333;  /* Fallback color if images fail to load */
  
  overflow: hidden;        /* Ensures images stay within round edges */
  border-radius: 20px;     /* Rounded corners */
  
  transition: transform 0.8s ease;  /* Smooth scaling on hover */
}

/* Slight scale of entire button on hover (optional) */
.parallax-button:hover {
  transform: scale(1.02);
}

/* Base styling for both image layers */
.parallax-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  
	transform translateZ(0);
  transition: transform 0.8s ease;
  will-change: transform;
  transform-origin: center center;  /* Zoom from center */
}

/* Main background image sits behind the overlay */
.main-bg {
  z-index: 0;
}

/* Optional PNG overlay sits above the main-bg */
.overlay-img {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center; /* critical for consistent scaling */
  
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}


/* Zoom both images on button hover */
.parallax-button:hover .parallax-image {
  /*transform: scale(0.98); */
	transform: translateY(10%) scale(1.1) ;
}

.parallax-button:hover .overlay-img {
  transform: translate(-50%, -50%) scale(1.5);
}



/* Text container sits on top of both images */
.parallax-content {
  position: absolute;
  top: 10px;               /* Move text down from the top edge */
  left: 50%;
  transform: translateX(-50%); 
  text-align: center;
  
  z-index: 2;              /* Above both images */
  width: 80%;              /* Constrain text width if desired */
}

/* Control heading size */
.parallax-content h2 {
  font-size: 1.2rem; 
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Control paragraph size if needed */
.parallax-content p {
  font-size: 1rem;
  line-height: 1.5;
}










body {
    color: #ffffff; /* White default */
}



















/* Removes Author */
.posted-by, .byline, .entry-meta .author, .ast-single-post-meta {
    display: none !important;
}














/* Only targets screens 767px wide and below (typical mobile breakpoint) */
@media only screen and (max-width: 767px) {
  /* Change the body/background wrapper to black */
  body {
    background-color: #000 !important;
  }
  /* If your theme wraps content in a different container (e.g., .site or .site-wrapper),
     you may need to override that too: */
  .site,
  .site-wrapper {
    background-color: #000 !important;
  }
}




















/* =============================================
   Mobile‐Only Fix for .display-posts-listing (≤ 767px)
   ============================================= */
@media only screen and (max-width: 767px) {
  /* 1) Force a single‐column grid on mobile */
  .display-posts-listing {
    grid-template-columns: 1fr;    /* one card per row */
    gap: 1.5rem;                  /* slightly tighter gap, adjust as desired */
  }

  /* 2) Let each card expand to its own height (no fixed 300px) */
  .display-posts-listing .listing-item {
    position: static;             /* remove relative/absolute stacking */
    height: auto;                 /* allow natural height */
    overflow: visible;            /* show everything inside */
    display: flex;                /* keep flex if you want vertical centring, or change to block */
    flex-direction: column;
    align-items: stretch;         /* stretch to full width */
    padding: 1rem;                /* keep your original padding */
    margin-bottom: 1rem;          /* extra spacing below each card */
    background-color: #fff;       /* preserve white background */
    border: 1px solid #ddd;       /* preserve border */
    border-radius: 5px;           /* preserve rounding */
  }

  /* 3) Make the image “static” above title/text */
  .display-posts-listing .listing-item img {
    position: static !important;  /* remove absolute positioning */
    transform: none !important;
    width: 100% !important;       /* fill card width */
    height: auto !important;      /* natural height */
    object-fit: cover;            /* cover full width without distortion */
    margin-bottom: 0.75rem;       /* space between image and title/content */
    z-index: auto !important;
  }

  /* 4) Remove the dark overlay pseudo‐element (::before) */
  .display-posts-listing .listing-item::before {
    display: none !important;
  }

  /* 5) Stack title & content normally, dark text on white card */
  .display-posts-listing .listing-item .title,
  .display-posts-listing .listing-item .content {
    position: static !important;  /* no layering */
    z-index: auto !important;
    padding: 0.5rem 0 !important; /* small vertical padding */
    color: #333 !important;       /* dark text for readability on white */
    width: 100% !important;
    text-align: left !important;  /* left‐align text on mobile (optional) */
  }
}















/* ───────────────────────────────────────────────────────────
   MOBILE‐ONLY OVERRIDE FOR .display-posts-listing (≤ 767px)
   ─────────────────────────────────────────────────────────── */
@media only screen and (max-width: 767px) {
  /* 1) Turn off grid entirely, make it a simple block container */
  .display-posts-listing {
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* 2) Each listing‐item becomes a block, full width, auto height */
  .display-posts-listing .listing-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
    overflow: visible !important;
    margin-bottom: 1.5rem !important;  /* adds vertical spacing between cards */
    padding: 1rem !important;          /* preserve your original padding */
    background-color: #fff !important; /* preserve white card background */
    border: 1px solid #ddd !important; /* preserve border */
    border-radius: 5px !important;     /* preserve rounding */
  }

  /* 3) Force the image into normal flow, full‐width above title/text */
  .display-posts-listing .listing-item img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    margin-bottom: 0.75rem !important;
    z-index: auto !important;
  }

  /* 4) Hide the dark overlay pseudo‐element (::before) if present */
  .display-posts-listing .listing-item::before {
    display: none !important;
  }

  /* 5) Stack title & content below the image, dark text on white */
  .display-posts-listing .listing-item .title,
  .display-posts-listing .listing-item .content {
    position: static !important;
    z-index: auto !important;
    padding: 0.5rem 0 !important;       /* small vertical padding */
    color: #333 !important;             /* dark text on white card */
    width: 100% !important;
    text-align: left !important;        /* left‐align text on mobile */
  }
}
