/* highlight-theme.css - Optimized and Cleaned Up */

/* Lightbox Title and Description Styling */
.lightbox-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .lightbox-description {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin: 0 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    line-height: 1.4;
  }
  
  /* Rest of the styles */
  
  body {
    background-color: #97C3DD;
    color: #333;
    font-family: 'Lato', sans-serif;
    color: #0B6192;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
  
 header {
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: #97C3DD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Main Title */
header h1 {
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    line-height: 1.2;
}

/* "Product of" Subtitle */
header h2 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    line-height: 1.2;
    margin-bottom: 5px; /* Small spacing before the logo */
}

/* Centering the Logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px; /* Adjust for better spacing */
}

/* Logo Styling */
.dataviz-logo {
    max-width: 100px; /* Adjust based on design preference */
    height: auto;
    display: block;
}

  .main-text {
    width: 90%;
    max-width: 900px;
    text-align: left;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
  }
  
  .social-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 20px;
  }
  
  .social-buttons img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
    opacity: 50%;
  }
  
  .social-buttons img:hover {
    transform: scale(1.2);
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    background-color: #97C3DD;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }
  
  .gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
  }
  
  .gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 10px;
    font-size: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1001;
  }
  
  .lightbox-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .left-arrow {
    left: 20px;
  }
  
  .right-arrow {
    right: 20px;
  }
  
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    text-align: left;
  }
  
  .lightbox-content {
    max-width: 90%;
    max-height: 70%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 2px;
    margin-bottom: 20px;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .close:hover {
    transform: scale(1.2);
  }
  
  .tools-used {
    margin-top: 2px;
    margin-bottom: 10px;
    background-color: #ffffff22;
    padding: 1px 8px;
    color: #ffffff;
    text-align: center;
  }
  
  .tools-list {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .tool-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-family: monospace;
  }
  
  .tool-icon {
    font-size: 1.2rem;
    margin-right: 8px;
  }
  
  .tool-icon.filled {
    color: #fc00f8;
    stroke: white;
  }
  
  .tool-icon.hollow {
    color: #ffffff; 
  }
  
  .decorative-circle {
    position: absolute;
    top: 4%;
    left: -30px;
    width: 150px;
    height: 150px;
    color: white;
    background-color: #6a1b9a;
    border-radius: 50%;
    border-color: #222;
    border-style: solid;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 170%
  }

.footer {
  background-color: #97C3DD;
  padding: 2vh; /* Responsive padding based on viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 5vh; /* Ensures the footer doesn’t get too small */
  max-height: 20vh; /* Caps the height so it doesn't get too large */
}

.footer-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-image {
  height: auto;
  width: auto;
  max-width: 15rem; /* Smaller size for small screens */
  object-fit: contain;
}

@media (min-width: 640px) {
  .footer-image { max-width: 30rem; }
}

@media (min-width: 768px) {
  .footer-image { max-width: 35rem; }
}

@media (min-width: 1024px) {
  .footer-image { max-width: 25rem; }
}

@media (min-width: 1280px) {
  .footer-image { max-width: 55rem; }
}

.lightbox-content-wrapper {
  width: 100%;
  max-width: 960px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Applique à toutes les variantes : image, vidéo, iframe */
.lightbox-content {
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: #000;
}

/* Pour que iframe (YouTube) s’affiche bien */
#lightbox-iframe {
  width: 90vw;
  height: 50vh;
  border: none;
}

/* Pour que video ait le bon style */
#lightbox-video {
  background-color: #000;
  width: 90%;
  height: auto;
  max-height: 70vh;
}

.gallery video {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery video:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item {
  background-color: #97C3DD;          /* même fond que la galerie */
  padding: 10px;
  border: 1px solid #ffffff;          /* bordure blanche */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;

  width: 100%;
  aspect-ratio: 1 / 1;                /* format carré */
  display: flex;
  align-items: center;               /* centre verticalement */
  justify-content: center;           /* centre horizontalement */
}

.gallery img,
.gallery video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
