
.multimedia_div_v1 {

  /* -------------- PHOTO GALLERY PURE CSS -------------- */
  .gallery_wrapper {
    padding: 20px;
    display: flex;
    justify-content: center;
  }

  .gallery_wrapper .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    width: 100%;
  }

  .gallery_wrapper .gallery a {
    display: block;
  }

  .gallery_wrapper .gallery img {
    /* height: 200px; */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .gallery_wrapper .gallery img:hover {
    transform: scale(1.05);
  }

  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    /* evita scrolling inutile */
  }

  .lightbox:target {
    display: flex;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
  }

  .lightbox .close,
  .lightbox .prev,
  .lightbox .next {
    position: absolute;
    top: 20px;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    transition: background 0.3s;
  }

  .lightbox .close {
    right: 20px;
  }

  .lightbox .prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox .next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox .close:hover,
  .lightbox .prev:hover,
  .lightbox .next:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* -------------- VIDEO LINK -------------- */
  .video-link {
    display: inline-block;
    width: 100%;
    max-width: 600px;
    text-decoration: none;
  }

  .video-link .video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
  }

  .video-link .video-thumbnail .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .video-link .video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: url("https://conference.unisalento.it/static/custom/files/play.svg") no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .video-link .video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}
