/* animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-up for .col elements when they enter viewport */
.col {
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeIn 600ms ease-out forwards;
    animation-delay: var(--delay, 0ms);
}

.animate-fade {
    opacity: 0;
    will-change: opacity, transform;
    animation: fadeIn 600ms ease-out forwards;
    animation-delay: var(--delay, 0ms);
}
.animate-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* image cycle */
.inactive {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

/* Image cycle container and use same fadeIn keyframe for each image */
.img-cycle {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
}

.img-cycle img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 1;
}

.img-cycle img:first-child {
    opacity: 1;
    z-index: 2;
}

.img-cycle img.fade-in {
    animation: fadeIn 600ms ease-out forwards;
    z-index: 3;
}

.animate {
    opacity: 0;
}

@media (max-width: 560px) {
    .img-cycle {
        min-height: 300px;

        img {
            object-fit: cover !important;
        }
    }
}