/* assets/image-text-reveal.css */

.image-text-reveal-widget {
    margin: 0 auto;
    position: relative;
}

.image-text-reveal-container {
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-text-reveal-container:hover {
    transform: translateY(-2px);
}

.image-text-reveal-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-text-reveal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-text-reveal-container:hover .image-text-reveal-image {
    transform: scale(1.05);
}

.image-text-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-text-reveal-container:hover .image-text-reveal-overlay {
    opacity: 1;
}

.image-text-reveal-title {
    padding: 20px;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.image-text-reveal-description {
    background: #fff;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text-reveal-description.show {
    opacity: 1;
}

.image-text-reveal-description p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #666;
    text-align: justify;
    direction: rtl;
    text-justify: inter-word;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
.image-text-reveal-description p::-webkit-scrollbar {
    display: none;
}

/* RTL Support */
.image-text-reveal-widget[dir="rtl"] .image-text-reveal-description p {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-text-reveal-widget {
        margin: 0 10px;
    }
    
    .image-text-reveal-title {
        font-size: 20px;
        padding: 15px;
    }
    
    .image-text-reveal-description p {
        padding: 15px;
        font-size: 13px;
    }
}

/* Animation Effects - Simplified */
.image-text-reveal-description {
    transition: opacity 0.4s ease;
}