/* ACF Repeater Loop Display - Widget Styles */

/* Widget title */
.acf-repeater-loop-widget-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.acf-repeater-loop-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Editor only messages - hidden on frontend but visible to editor users */
.elementor-editor-active .acf-repeater-loop-display .elementor-alert[style*="display: none;"] {
    display: block !important;
    opacity: 0.8;
    margin-bottom: 15px;
}

.acf-repeater-loop-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

/* Image wrapper to contain image properly */
.acf-repeater-loop-item-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.acf-repeater-loop-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acf-repeater-loop-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    width: 100%;
}

.acf-repeater-loop-item-content {
    flex-grow: 1;
    padding: 15px;
}

/* Link styles */
.acf-repeater-loop-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Hover animations */
.has-hover-animation .acf-repeater-loop-item {
    will-change: transform, opacity, box-shadow;
}

/* Zoom effect */
.hover-animation-zoom .acf-repeater-loop-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* Lift effect */
.hover-animation-lift .acf-repeater-loop-item:hover {
    transform: translateY(-10px);
}

/* Opacity effect */
.hover-animation-opacity .acf-repeater-loop-item {
    opacity: 0.85;
}

.hover-animation-opacity .acf-repeater-loop-item:hover {
    opacity: 1;
}

/* Text alignment classes */
.acf-repeater-loop-item-content[style*="text-align: center"] .acf-repeater-loop-item-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.acf-repeater-loop-item-content[style*="text-align: right"] .acf-repeater-loop-item-title {
    margin-left: auto;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .acf-repeater-loop-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .acf-repeater-loop-container {
        grid-template-columns: 1fr;
    }
    
    .acf-repeater-loop-item-image-wrapper {
        height: 180px;
    }
} 