/* Image Rotator Pro - Frontend Styles */

.irp-rotator-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.irp-rotator-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.irp-rotator-link {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.irp-rotator-link:hover {
    opacity: 0.95;
}

.irp-rotator-link:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.irp-rotator-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.irp-rotator-image.irp-active {
    opacity: 1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .irp-rotator-container {
        border-radius: 2px;
    }
    
    .irp-rotator-loading {
        padding: 30px 15px;
        font-size: 13px;
    }
}