/* --- MEMORIES CSS (LIGHT THEME MATCHING MAIN SITE) --- */

:root {
    --primary-color: #a31d24; /* Brand Red */
    --primary-hover: #801419;
    --dark-bg: #faf7f2; /* Warm Cream */
    --card-bg: #ffffff; /* Pure White */
    --text-light: #0b0f19; /* Dark Text */
    --text-muted: #64748b; /* Muted Slate Text */
    --transition-speed: 0.3s;
  }
  
  body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: "Inter", sans-serif;
  }
  
  /* Hero Banner with Dark Brand Red Gradient */
  .memories-hero {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #a31d24 0%, #600c0f 100%);
    border-bottom: 1px solid rgba(163, 29, 36, 0.1);
    overflow: hidden;
  }
  
  .memories-hero .hero-bg-accent {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 70%
    );
    pointer-events: none;
    border-radius: 50%;
  }
  
  .memories-title {
    font-family: "Outfit", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff; /* Kept white for contrast against dark gradient */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
  }
  
  .memories-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85); /* Kept light for readability */
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Gallery Section & Filters */
  .gallery-section {
    padding: 60px 0 100px;
  }
  
  .filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 45px;
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }
  
  .filter-label {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
  }
  
  .year-filters-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
  }
  
  .filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff; /* White text for active filter */
    box-shadow: 0 4px 15px rgba(163, 29, 36, 0.3);
  }
  
  /* Grid Layout */
  .media-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  /* Media Cards */
  .media-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-speed) ease;
    aspect-ratio: 4 / 3;
    cursor: pointer;
  }
  
  .media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(163, 29, 36, 0.1);
    border-color: rgba(163, 29, 36, 0.2);
  }
  
  .media-card-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b0b0b;
  }
  
  .media-card img,
  .media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
  }
  
  .media-card:hover img,
  .media-card:hover video {
    transform: scale(1.05);
  }
  
  /* Play Icon Overlay for Videos */
  .video-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(163, 29, 36, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
    transition: all var(--transition-speed) ease;
  }
  
  .media-card:hover .video-overlay-icon {
    background-color: var(--primary-hover);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(163, 29, 36, 0.4);
  }
  
  /* Info Overlay */
  .media-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      transparent 100%
    );
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
  }
  
  .media-card:hover .media-info-overlay {
    opacity: 1;
    transform: translateY(0);
  }
  
  .media-year-badge {
    background-color: var(--primary-color);
    color: #ffffff; /* White text for contrast */
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 8px;
    font-family: "Outfit", sans-serif;
    text-transform: uppercase;
  }
  
  .media-title-text {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff; /* White text over dark overlay gradient */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Status Message (Empty/Error) */
  .status-icon {
    font-size: 4rem;
    color: rgba(163, 29, 36, 0.15);
  }
  .status-title {
    font-family: "Outfit", sans-serif;
    color: var(--text-light);
  }
  
  /* Lightbox Modal */
  .lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .lightbox-modal.active {
    display: flex;
    opacity: 1;
  }
  
  .lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    z-index: 10001;
  }
  
  .lightbox-close:hover {
    color: var(--primary-color);
  }
  
  .lightbox-content-wrapper {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  
  #lightbox-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #lightbox-media-container img,
  #lightbox-media-container video {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .lightbox-caption {
    margin-top: 20px;
    color: #ffffff; /* Lightbox caption is white over black backdrop */
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-align: center;
  }
  
  /* Responsiveness */
  @media (max-width: 768px) {
    .memories-title {
      font-size: 2.2rem;
    }
    .filter-container {
      padding: 10px 20px;
      border-radius: 20px;
      flex-direction: column;
    }
    .media-grid-container {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 15px;
    }
    .lightbox-close {
      top: 15px;
      right: 20px;
      font-size: 35px;
    }
  }
  