/* =============================================
   FADE-UP SCROLL ANIMATIONS
   ============================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#tinymce .fade-up,
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children .fade-up:nth-child(1),
.ContentType_SubPageList_list .fade-up:nth-child(1),
.cms_SocialMedia_posts .fade-up:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .fade-up:nth-child(2),
.ContentType_SubPageList_list .fade-up:nth-child(2),
.cms_SocialMedia_posts .fade-up:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .fade-up:nth-child(3),
.ContentType_SubPageList_list .fade-up:nth-child(3),
.cms_SocialMedia_posts .fade-up:nth-child(3) {
    transition-delay: 0.1s;
}

.stagger-children .fade-up:nth-child(4),
.ContentType_SubPageList_list .fade-up:nth-child(4),
.cms_SocialMedia_posts .fade-up:nth-child(4) {
    transition-delay: 0.15s;
}

.stagger-children .fade-up:nth-child(5),
.ContentType_SubPageList_list .fade-up:nth-child(5),
.cms_SocialMedia_posts .fade-up:nth-child(5) {
    transition-delay: 0.15s;
}

.stagger-children .fade-up:nth-child(6),
.ContentType_SubPageList_list .fade-up:nth-child(6),
.cms_SocialMedia_posts .fade-up:nth-child(6) {
    transition-delay: 0.2s;
}

/* =============================================
   LAZY YOUTUBE VIDEOS
   ============================================= */
.video-container {
    transition: transform var(--transition-base);
}

.video-container:hover {
    transform: translateY(-4px);
}

.video-container:hover .play-button-wrapper {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-wrapper {
    transition: transform var(--transition-base);
    pointer-events: none;
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   LAZY IMAGES
   ============================================= */
img[loading="lazy"] {
    opacity: 0;
    transform: translateY(13px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

img[loading="lazy"].loaded {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LAZY BACKGROUNDS
   ============================================= */
.lazy-background {
    opacity: 0;
    transition: background-image 0.4s ease-in-out, opacity 0.4s ease-in-out;
    position: relative;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.lazy-background.overlay-light:before,
.lazy-background.overlay-dark:before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--color-dark-rgb), 0.55);
}

.lazy-background.overlay-light:before {
    background: rgba(var(--color-white-rgb), 0.7);
}

#tinymce .lazy-background:before {
    display: none !important;
}

.background-cover {
    background-size: cover;
}

.background-attachment-fixed {
    background-attachment: fixed;
}

.lazy-background.loaded {
    opacity: 1;
}
