/**
 * Soft Focus Elementor Widgets - Stylesheet
 */

/* ================================
   Portfolio Card Widget Styles
   ================================ */

.sf-portfolio-card {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image and Video base styles */
.sf-portfolio-card img,
.sf-portfolio-card video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Content wrapper */
.sf-portfolio-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: none;
}

/* Title */
.sf-portfolio-card-title {
    display: inline-block;
    pointer-events: auto;
}

/* ================================
   Header Title Widget Styles
   ================================ */

.sf-header-title-wrapper {
    display: inline-block;
    width: 100%;
    overflow: visible;
}

.sf-header-title-container {
    position: relative;
    display: inline-block;
}

.sf-header-title-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    z-index: 0;
}

.sf-header-title-background-auto {
    /* No additional styles needed - handled by container */
}

/* Alignment handling for auto-width */
.sf-header-title-wrapper[style*="text-align: center"] .sf-header-title-container {
    margin-left: auto;
    margin-right: auto;
}

.sf-header-title-wrapper[style*="text-align: right"] .sf-header-title-container {
    margin-left: auto;
    margin-right: 0;
}

.sf-header-title-wrapper[style*="text-align: left"] .sf-header-title-container {
    margin-left: 0;
    margin-right: auto;
}

.sf-header-title-inner {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.sf-header-title {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 48px;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sf-header-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .sf-header-title {
        font-size: 24px;
    }
}

/* Editor specific styles */
.elementor-editor-active .sf-portfolio-card-video {
    pointer-events: none;
}
