  :root {
    /* Color Variables - Change these to update the entire theme */
    --bg-color: #fcefff;
    --card-bg: #fff;
    --primary-color: #d44d8c;
    --secondary-color: #ffd3ec;
    --text-color: #333;
    --text-secondary: #666;
    --text-tertiary: #444;
    --border-color: #eee;
    --shadow-color: rgba(0,0,0,0.12);
    --shadow-light: rgba(0,0,0,0.05);
    --overlay-bg: rgba(0,0,0,0.85);
  }

  
  @font-face {
    font-family: basis33;
    src: url("/fonts/basis33.ttf");
  }

  body {
    font-family: "basis33";
    background: var(--bg-color);
    background-image: url('https://ophanimkei.com/images/bgchurch.webp');
    background-size: cover;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .profile-card {
    background: var(--card-bg);
    box-shadow: 0 8px 24px var(--shadow-color);
    width: 460px;
    height: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    border: 14px solid transparent;
    border-image: url('/images/greenborder.png') 19 round;
    width: 792px;
    padding: 20px;
    border-image-slice: fill;
    z-index: 9999;
    background-color: #ffffff8e;
  }
  .profile-container {
    display: flex;
    gap: 1.5rem;
  }

  .info-side img {
    width: 160px;
    border-radius: 20px;
    border: 3px solid var(--secondary-color);
    height: 160px;
    margin-right: 10px;
    margin-bottom: 15px;
  }

  .info-side {
    flex: 3;
  }
  .profile-header h1 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
  }
  .profile-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
  }
  .profile-content {
    line-height: 1.6;
    color: var(--text-tertiary);
    font-size: 0.95rem;
  }
  .gallery-title {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  /* Mosaic Gallery Styles */
    .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 10px; /* base row height for mosaic */
    gap: 1rem;
    }

    .art-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.2s ease;
    grid-row-end: span 1; /* will be set by JS */
    }

    .art-card img {
    width: 100%;
    height: auto; /* important for correct mosaic */
    display: block;
    }

    .art-card:hover {
    transform: translateY(-4px);
    }

  .art-card img {
    height: 300px;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
  .art-credit {
    padding: 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--text-secondary);
  }
  .art-credit a {
    color: var(--primary-color);
    text-decoration: none;
  }
  .art-credit a:hover {
    text-decoration: underline;
  }

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-buttons li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px;
  margin-right: 5px;
  background: #ffffff;
  border-radius: 4px 4px 0 0;
}

.tab-buttons li.active {
  background: #ffffff72;
  border-bottom: 2px solid #333;
}


  /* Lightbox overlay */
#lightbox-overlay {
  position: fixed;         /* cover the whole viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);  /* semi-transparent black */
  display: none;           /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 99999;          /* super high so it's above everything */
  cursor: pointer;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  z-index: 100000;        /* above the overlay background */
  position: relative;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  user-select: none;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 100001;         /* above the image */
}

#prev {
  left: 20px;
}

#next {
  right: 20px;
}
