.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Cela force la hauteur à être égale à la largeur */
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:not(.no-hover) img:hover {
  transform: scale(1.05);
}

.gallery-item2 {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.gallery-item2 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item2:not(.no-hover) img:hover {
  transform: scale(1.05);
}

.video-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  height: auto;
}

.video-container-vertical {
  height: auto;
  width: 50%;
  margin: 0 auto;
}



.modal {
    display: none; /* Assurez-vous que le modal est masqué par défaut */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* max-width: 80vw;
    max-height: 80vh; */
}

.modal-content img {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain; /* Assure que l'image ne soit pas déformée */
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    /* border-radius: 0 3px 3px 0; */
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 10px;
    border-radius: 3px 3px 0 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.caption {
    text-align: center;
    padding: 10px;
    color: #333;
    font-size: 16px;
}
