#mod_youtubegrid {
   
    margin-top:30px;

}



.youtube-disclaimer {
    background-color: rgb(240, 240, 240);
    padding:20px;
  }

.grid-item {
    background-color: rgb(240, 240, 240);
   
  
  }

  .grid-item:hover {
    background-color: rgb(240, 240, 240);
    box-shadow: rgba(0, 0, 0, 0.8) 0px 5px 15px !important;
    cursor: pointer;
  }



.youtube-grid .grid-item img {
    width: 100%;
    height: auto;

}

.youtube-grid .grid-title {
    text-align: center;
    margin-top: 3px;
    padding:10px;
    font-size:80%;
    font-weight: 700;
}




/* Lightbox overlay */
#lightboxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

/* Lightbox content */
#lightboxContent {
    position: relative;
    background-color: #fff;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 0px;
    padding-top: 5px;
    border-radius: 0px;
    max-width: 100%;
    max-height: 100%;
    animation: scaleIn 0.4s ease-in-out;
}

/* Embedded video */
#lightboxContent iframe {
    width: 800px;
    height: 600px;
    border: none;
    border-radius: 0px;
}

/* Close button */
#lightboxClose {
    position: absolute;
    top: -30px;
    right: -30px;
    background-color:#1E6EBE;
    color: #fff;
    border: 5px solid #fff;
    border-radius: 0%;
    font-size: 60px;
    font-weight:700;
    width:64px;
    height:64px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#lightboxClose:hover {
    background-color: #ddd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}




@media screen and (max-width: 768px) {
    .youtube-grid {
        grid-template-columns: 1fr !important;
    }

    #lightboxOverlay {

        padding-left:10px; 
        padding-right:10px; 
        justify-content: left;
        align-items: left;

    }

}



@media (min-width: 768px) {
 
}



    @media (min-width: 992px)  {

    }
    
    @media (min-width: 1200px) {



    }