 /* Style the Image Used to Trigger the Modal */
#myImg {
    width: 100%;
    max-width: 250px;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 3rem;

    /*margin: 10px; */
    -webkit-filter: brightness(100%);

}
#myImg:hover {

    -webkit-filter: brightness(85%);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

figcaption {
  font-size: 0.9rem;
  line-height: 1.2rem;
  text-align: justify;
  hyphens: auto;
  max-width: 250px;
  margin-top: 1rem;
}
.center{
    display: flex;
    justify-content: center;
    align-items: center;

}
  /* The Modal (background) */
.modal {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  gap: 1rem;
}

.modal-div {
  max-height: 85%;
  max-width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  overflow: hidden;
}

/* Modal Content (Image) */
.modal-content {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
  
  /* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
width: 70%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  margin: 0 auto;
}
  
/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}
  
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}
  
/* The Close Button */
.close {
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  align-self: flex-end;
  margin: 20px;
}
  
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
  



/* Tabelle Jahre und Text */
.table {
    display: table;
  }
  
  .row {
    display: table-row;
  }
  
  .date {
    display: table-cell;
    text-align: left;
    padding-right: 10px;
  }
  
  .text {
    display: table-cell;
    margin-left: 10px;
  }


/* Zeugnis neben Text positionieren */

.spalten{
    display: flex;
    flex-direction: row;
}
.spalte_links{
    /* border: 2px solid brown; */

    width: 80%;
    flex-shrink: 1;
    height: 100%;
}

.spalte_rechts{
    /* border: 2px solid yellow; */
    width: 110px;
    flex-shrink: 0;

    align-self: flex-end;
    display: flex;
    justify-content: end;

}

.spalte_rechts > #myImg{
    height: 100%;
    width: 100%;
    padding: 3%;

}







/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 1060px){

    .spalten{
        flex-direction: column;
        align-items: center;

    }

    .spalte_links{
        width: 100%;

    }

    .spalte_rechts{
        width: 30%;
        height: auto;
        align-self: center;

    }



}



