/* Swiper Container */
.sarara-portfolio-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
}

/* Slide Item */
.sarara-item { 
    height: auto;
    display: flex;
    flex-direction: column;
}

.sarara-inner-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.sarara-inner-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Image with Object-Fit Cover (mantém proporções sem distorcer) */
.sarara-inner-item img {
    width: 100%;
    object-fit: cover; /* CRUCIAL: Corta a imagem proporcionalmente */
    object-position: center; /* Centraliza o recorte */
    display: block;
    transition: transform 0.4s ease;
}

.sarara-inner-item:hover img {
    transform: scale(1.05);
}

/* Title Overlay */
.sarara-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sarara-title span {
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.sarara-inner-item:hover .sarara-title { 
    opacity: 1; 
    transform: translateY(0);
}

/* Lightbox */
#sarara-portfolio-overlay.sarara-hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
#sarara-portfolio-overlay {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}
#sarara-portfolio-wrap {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
}
#sarara-portfolio-iframe-wrap {
    width: 100%; height: 100%; 
    background: #fff; 
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
#sarara-portfolio-iframe { width: 100%; height: 100%; border: 0; }

#sarara-portfolio-close {
    position: absolute; top: -40px; right: 0;
    width: 32px; height: 32px; 
    border: none; background: none;
    color: #fff;
    font-size: 40px; 
    line-height: 32px;
    cursor: pointer; 
    z-index: 100000;
    transition: transform 0.2s;
}
#sarara-portfolio-close:hover { transform: scale(1.1); color: #ff4d4d; }
