/* === Card Grid === */

.prod-grid {
    display: grid;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    margin: 2em auto;
    grid-template-columns: repeat(2, 1fr);
  }

.prod-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
}

  .prod-card-header h2
  { 
    text-decoration: none;
  }

/* Main container bounding */
.prod-main {
  max-width: 1200px;
  margin: 0.5em auto;
  box-sizing: border-box;
}
  /* Make featured card span both columns */

  .feat-label {
    display: inline-block;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 15px;
    animation: fade-zoom-in 0.6s ease-out forwards;
    opacity: 0;
  }
  

  .featured-card {
    grid-column: 1 / -1;
  }

  .prod-card a,
  .prod-card a:visited {
    text-decoration: none;
    color: #fff;
  }

.prod-title {
  font-family: 'Readex Pro', sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 30px;
  margin: 0.5em 0;
}

/* Date Styling */
.prod-date {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5em;
    text-decoration: none;
  }

  .prod-date a
  {
    color: #9a9a9a !important;
  }

/* Thumbnail Styling */
.prod-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }


/* Replace .blur-bg with ::before for better Safari compatibility */
.featured-card .prod-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background-image: var(--thumb-url);
  background-size: cover;
  background-position: center;
  transform: translateY(0px) translateX(-120px);
  filter: blur(190px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  will-change: opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: opacity 0.4s ease;
}

@supports (-moz-appearance: none) {
  .featured-card .prod-thumb::before {
    opacity: 0.15;
  }
}


/* Fade-In Animations for prod-card */

.prod-card {
  opacity: 0;
  transform: translateY(80px) scale(1);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1) var(--delay, 0s),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) var(--delay, 0s);
}

.prod-card.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Allow overflow for blur backgrounds on featured thumbnails */

.prod-main,
.prod-list,
.feat {
  overflow: visible;
  position: relative;
}

  @media (max-width: 1024px) {
    .prod-title {
      font-size: 35px;
      margin: 0.3em 0 0.4em 0em;
    }

    .feat-label {
      padding: 2px 5px;
      font-size: 11px;
    }

    .featured-card .prod-thumb::before {
      opacity: 0.3 !important;
    }
  }

@media (max-width: 768px) {
  .prod-date {
    font-size: 9px;
    line-height: 1.3em;
  }

  .prod-main
  {
    padding: 0;
  }

  .prod-grid {
    grid-template-columns: 1fr;
    }
}

@media (max-width: 512px) {
  .prod-title {
    font-size: 28px;
    line-height: 26px;
  }
  .prod-date {
    font-size: 9px;
    line-height: 1.3em;
  }

  .feat-label {
    padding: 0px 4px;
    font-size: 7px;
  }

  .prod-thumb {
    position: relative;
    width: 100%;
    height: 13.5em;
    overflow: hidden;
  }
  
  .prod-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .prod-main {
    margin: 0;
  }

  .prod-grid
  {
    gap: 10px;
    margin-top: 1em;
  }
  
}

.prod-thumb img {
  transition: transform 0.4s ease;
}

.prod-thumb:hover img {
  transform: scale(1.01);
}

@keyframes fade-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
