/* photos_style.css */
/* Styles spécifiques pour la page de photos, basés sur la disposition de participants/informations */

.photos-gallery {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.05),
    0 1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid rgba(241, 132, 40, 0.15); /* Subtly tinted border */
}

.photos-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 80%; /* Adjusted ratio for better grid viewing */
  height: 0;
  overflow: hidden;
  background-color: #fafafa;
}



.photos-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2; /* Iframe will cover the spinner once loaded */
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

@media (min-width: 768px) {
  .photos-iframe-container {
    padding-bottom: 60%; /* Taller ratio for larger screens to fit more grid items */
    min-height: 800px;
  }
}

/* Fade overlay at the bottom */
.photos-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 90%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 30px;
  pointer-events: none; /* Let clicks pass through the fade part */
}

/* Google Drive access button */
.drive-button {
  pointer-events: auto; /* Re-enable clicks for the button */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(241, 132, 40, 1); /* Matches BUV orange theme */
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(241, 132, 40, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.drive-button:hover {
  background-color: white;
  color: rgba(241, 132, 40, 1);
  border: 2px solid rgba(241, 132, 40, 1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(241, 132, 40, 0.3);
}

.drive-button i {
  font-size: 1.3rem;
}

