/* Mantém proporção 16:9 para o vídeo principal */
.ype-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0px;
}

.ype-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.ype-wrapper {
    max-width: 100%;
    margin: 30px auto;
    border-radius: 0px;
    background: #3e4532;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    color: #fff;
    overflow: hidden;
}

.ype-player iframe {
    width: 100%;
    border-radius: 0px;
}

.ype-carousel-container {
    position: relative;
    margin-top: 15px;
    overflow: hidden;
}

.ype-thumbs {
    display: flex;
border-radius:0px;
    transition: transform 0.4s ease;
}

.ype-thumb {
    flex: 0 0 25%; /* 4 vídeos por linha */
    box-sizing: border-box;
    padding: 0px;
border:1px solid #3e4532;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

.ype-thumb img {
    width: 100%;
    border-radius: 0px;
    display: block;
}

.ype-thumb:hover {
    transform: scale(1.0);
    opacity: 0.9;
}

.ype-title {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 5px;
    color: #CCC88C;
    min-height: 35px;
font-family: Nunito ;
font-weight: bold;
}

.ype-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(62,69,50,0.6);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 35px;
    height: 75px;
    cursor: pointer;
    border-radius: 0px;
    z-index: 10;
    transition: background 0.3s;
}


.ype-prev { left: 0; }
.ype-next { right: 0; }

@media (max-width: 900px) {
    .ype-thumb { flex: 0 0 33.33%; } /* 3 por linha */
}
@media (max-width: 600px) {
    .ype-thumb { flex: 0 0 50%; } /* 2 por linha */
}
@media (max-width: 400px) {
    .ype-thumb { flex: 0 0 100%; } /* 1 por linha */
}
