.videotitle{
	font-weight: bold;
	font-family: Montserrat;
	margin: 0;
	color: #ffffff;
	font-size: 1.5em;
	
}

.videotext{
	font-family: Montserrat;
	margin: 5px 0 0 0;
	color: #ffffff;
}

.videobutton{
	font-family: NerdFonts;
	margin: 20px 0 0 0;
	color: #ffffff;
	font-size: 2.5em;
}

.videobutton:hover{
	color:#748cab;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: hidden;
}

.modal iframe {
    max-width: 90%;
    max-height: 90%;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    font-size: 18px;
    text-align: center;
    transition: opacity 0.3s ease;
    flex-direction: column
}

.grid-item:hover .overlay {
    opacity: 1;
}


.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    margin: auto;
    margin-bottom: 9%;
}


.grid-item.grow-in {
    opacity: 1;
    transform: scale(1);
}

.grid-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5);
    transition: 
        transform 0.2s ease-out,
        opacity 0.4s ease-out,
        box-shadow 0.2s ease-in-out;
}


.grid-item:hover {
    transform: scale(1.01); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.videobuttonmobile{
    display: none;
	font-family: NerdFonts;
	margin: 20px 0 0 0;
	color: #ffffff;
	font-size: 2.5em;
}

@media screen and (max-width: 768px) {
  .parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
  }

  .grid-item {
    opacity: 1;
    transform: scale(1);
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
  }

  .grid-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
  }

  .overlay {
    position: static;
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: none;
    opacity: 1;
  }

.videobutton {
    display: none;
}

.videobuttonmobile {
    display: block;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

  .videotitle,
  .videotext {
    color: #333333;
    margin-top: 10px;
  }

  .videotext{
    margin: 2px 0 0 0;
    }

  .grid-item:hover {
    transform: none;
    box-shadow: none;
  }
}

