
/************BilderLink in Galleryübersicht************/

.Media1-image-link{
    margin-top: 20px;
    border-radius: 15px; /* Abgerundete Ecken */
    border: 3px solid black; /* Schwarze Umrahmung */
    width: 100%; /* Du kannst die Größe nach Bedarf anpassen */
    min-width: 300px;
    height: auto;
    transition: transform 0.3s ease; /* Optional: Ein sanfter Übergangseffekt */
}
.Media1-image-link:hover {
    transform: scale(1.05); /* Optional: Bild leicht vergrößern bei Hover */
}



/************BilderGallery************
/* Mediengalerie-Stil */
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

.media-image-link, .media-gallery-link {
    width: 90%;
    min-width: 100px;
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.media-gallery-link {
    width: 100%;
    padding-top: 5px;
    min-width: 180px;
    max-width: 400px;
}

.media-image-link img, .media-gallery-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.media-image-link:hover, .media-gallery-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal-Stil */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 90%;
    right: 5%;
    left: 5%;
    display: flex;
    justify-content: space-between;
}

.prev, .next {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 60px;
    right: 5%;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Media Queries für kleine Bildschirme */
@media (max-width: 768px) {
    .media-image-link {
        min-width: 150px;
        max-width: 300px;
    }
    .media-image-link {
        width: 45%;
    }
}

/************BilderLink in Galleryübersicht************/
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
    height: 0;
    overflow: hidden;
    margin-top: 10px;
    margin-top: auto;
    margin-bottom: auto;
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }