.pibe-parallax-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Link styling */
.pibe-parallax-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.pibe-parallax-link:hover {
    text-decoration: none;
}

.pibe-parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.pibe-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pibe-parallax-content {
    position: absolute;
    z-index: 2;
    padding: 20px;
    max-width: 80%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pibe-parallax-content > * {
    margin-top: 0;
    margin-bottom: 1em;
}

.pibe-parallax-content > *:last-child {
    margin-bottom: 0;
}

.pibe-content-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pibe-content-top-left {
    top: 20px;
    left: 20px;
}

.pibe-content-top-right {
    top: 20px;
    right: 20px;
    text-align: right;
}

.pibe-content-bottom-left {
    bottom: 20px;
    left: 20px;
}

.pibe-content-bottom-right {
    bottom: 20px;
    right: 20px;
    text-align: right;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .pibe-parallax-content {
        max-width: 90%;
        padding: 15px;
    }
}

/* Animation Styles */
.pibe-animated {
    opacity: 0;
    animation-fill-mode: forwards;
    --animation-strength: 30px;
}

.pibe-animated.pibe-loaded {
    animation-name: var(--pibe-animation);
}

/* Animation Definitions */
.pibe-animation-fade-in {
    --pibe-animation: pibeFadeIn;
}

.pibe-animation-slide-up {
    --pibe-animation: pibeSlideUp;
}

.pibe-animation-slide-down {
    --pibe-animation: pibeSlideDown;
}

.pibe-animation-slide-left {
    --pibe-animation: pibeSlideLeft;
}

.pibe-animation-slide-right {
    --pibe-animation: pibeSlideRight;
}

.pibe-animation-zoom-in {
    --pibe-animation: pibeZoomIn;
}

.pibe-animation-zoom-out {
    --pibe-animation: pibeZoomOut;
}

@keyframes pibeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pibeSlideUp {
    from {
        opacity: 0;
        transform: translateY(var(--animation-strength));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pibeSlideDown {
    from {
        opacity: 0;
        transform: translateY(calc(var(--animation-strength) * -1));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pibeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(var(--animation-strength));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pibeSlideRight {
    from {
        opacity: 0;
        transform: translateX(calc(var(--animation-strength) * -1));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pibeZoomIn {
    from {
        opacity: 0;
        transform: scale(var(--zoom-start, 0.7));
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pibeZoomOut {
    from {
        opacity: 0;
        transform: scale(var(--zoom-start, 1.3));
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.pibe-zoom-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform-origin: center center;
}

.pibe-zoom-wrapper .pibe-parallax-image {
    position: relative;
    top: 0;
    left: 0;
}

.pibe-loaded.pibe-hover-zoom-in:hover .pibe-zoom-wrapper {
    transform: scale(1.1);
}

.pibe-loaded.pibe-hover-zoom-out:hover .pibe-zoom-wrapper {
    transform: scale(0.9);
}

.pibe-loaded.pibe-hover-blur:hover .pibe-parallax-image {
    filter: blur(5px);
}

.pibe-loaded.pibe-hover-grayscale:hover .pibe-parallax-image {
    filter: grayscale(100%);
}

.pibe-loaded.pibe-hover-sepia:hover .pibe-parallax-image {
    filter: sepia(100%);
}

.pibe-loaded.pibe-hover-brightness:hover .pibe-parallax-image {
    filter: brightness(150%);
}

.pibe-loaded.pibe-hover-contrast:hover .pibe-parallax-image {
    filter: contrast(150%);
}

.pibe-loaded.pibe-hover-saturate:hover .pibe-parallax-image {
    filter: saturate(200%);
}

/* Ensure smooth transitions */
.pibe-parallax-image {
    transition: filter 0.5s ease;
    /* Remove transform transition to avoid interfering with parallax */
}

/* For zoom hover effects, we need to separate the transition */
.pibe-hover-zoom-in .pibe-parallax-image,
.pibe-hover-zoom-out .pibe-parallax-image {
    transition: filter 0.5s ease;
}