/* Web sitesinde galeri stili */
.youtube-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.youtube-gallery .youtube-video {
    position: relative;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 300px; /* Varsayılan genişlik */
    height: auto;
}

.youtube-gallery .youtube-video img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.youtube-gallery .youtube-video img:hover {
    transform: scale(1.05);
}

.youtube-gallery .youtube-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.youtube-gallery .youtube-video .play-button:before {
    content: '';
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
    display: inline-block;
    margin-left: 5px;
}


.youtube-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 3px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
    text-align: center;
    max-width: 98%;
    max-height: 98%;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.youtube-popup iframe {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}


.youtube-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background:#DD0000 ;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 100%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

