/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

.portfolio-image{	width:auto!Important;}

/* Limit YouTube lightbox height */
#yt-lightbox {
    width: 80%;              /* optional */
    max-width: 900px;        /* optional */
    margin: 0 auto;
}

#yt-lightbox .video-container {
    position: relative;
    height: 80vh !important;     /* 40% of view height */
    padding: 0 !important;        /* override 16:9 ratio */
}

#yt-lightbox iframe {
    width: 100%;
    height: 100%;                /* fill the 40vh container */
    border: none;
}

.youtube-thumb-wrapper {
    position: relative;
    display: block;
}
.youtube-home-section{
    padding: 30px;
    
}
.youtube-thumb-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    pointer-events: none; /* click still goes to thumbnail */
}

.youtube-play-icon i {
    color: #fff;
    font-size: 28px;
    margin-left: 3px; /* Canvas 'play' icon is slightly off center */
}

/* Hover effect */
.youtube-thumb-wrapper:hover .youtube-play-icon {
    background: rgba(255,0,0,0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-play-icon {
    border: 2px solid white !important;
}

.youtube-thumb-wrapper {
    position: relative;
}

.youtube-thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: 0.2s ease;
}

.youtube-play-icon i {
    color: #fff;
    font-size: 28px;
    margin-left: 2px;
}

.youtube-thumb-wrapper:hover .youtube-play-icon {
    background: rgba(255,0,0,0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox size fix */
#yt-lightbox .video-container {
    height: 40vh !important;
    padding: 0 !important;
}

#yt-lightbox iframe {
    width: 100%;
    height: 100%;
}


