.pro-logo {
    text-align:right
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    animation: zoomIn 0.5s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoomOut {
    animation: zoomOut 0.5s ease;
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0);
    }
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 80%;
    margin: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
       
.modal .prev,
.modal .next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    cursor: pointer;
    color: white;
    user-select: none;
    -webkit-user-select: none;
}

.modal .prev {
    left: 20px;
}

.modal .next {
    right: 20px;
}
    
.grid-wrapper { 
    width: 100%;
    display: flex;
    gap: 25px;
    height: 408px;
}
    
.gallery-grid-left {
    width: 66%;
}
    
.gallery-grid-right {
    width: 31%;
}
    
.gallery-grid-right .portfolio-item {
    height:100%
}
    
.portfolio-item img, 
.portfolio-item video,
.portfolio-item iframe {
    transition: transform 0.5s ease; /* Adjust duration and timing function as needed */
}

.portfolio-item:hover img, 
.portfolio-item:hover video,
.portfolio-item:hover iframe{
    transform: scale(1.1); /* Adjust the scale factor for zoom effect */
}
        
.main-iframe iframe {
    height: 500px;
}
        
.iframe-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* transparent background */
}
    
@media screen and (min-width: 1918px) {
    .grid-wrapper {
        height: 430px;
    }
}
   

@media screen and (max-width: 767px) {
        
    .gallery { 
        display: flex;
        flex-direction: column;
    }
        
    .gallery-grid-left,
    .gallery-grid-right {
        width: 100%;
    }
        
    .pro-logo {
        text-align:center;
    }
        
    .main-iframe iframe {
        height: 320px;
    }
        
    .grid-wrapper {
        height: auto;
    }
            
    #modal-iframe iframe {
        width:100%;
        height:auto;
    } 
            
    .modal .prev,
    .modal .next {
        position: absolute;
        top: unset;
        bottom: 2%;
    }

    .modal .prev {
        left: 40%;
    }

    .modal .next {
        right: 40%;
    }
}