/* Flex Containers & Base Reset */
.cs-container-40ac568e {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Important for inner zoom animations and overlays */
}

/* Background Overlay Base Styling */
.cs-container-40ac568e::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Allows click-through to button and card fields */
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 1; /* Sits over the background, below elements */
}

/* Position other elements over overlay */
.cs-container-40ac568e > * {
    position: relative;
    z-index: 2;
}

/* Hover Zoom Card Background Option */
.cs-hover-zoom {
    transition: background-size 0.4s ease;
}

/* Flex Row & Wrap Tags */
.cs-tags-40ac568e {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px; /* Fallback gap */
}

.cs-tag-item {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Button & Link reset */
.cs-btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Button Hover Animations */
.cs-btn-anim-grow {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cs-btn-anim-grow:hover {
    transform: scale(1.08);
}

.cs-btn-anim-shrink {
    transition: transform 0.3s ease;
}
.cs-btn-anim-shrink:hover {
    transform: scale(0.93);
}

.cs-btn-anim-slide-right {
    transition: padding-left 0.3s ease;
}
.cs-btn-anim-slide-right:hover {
    padding-left: 1.5em !important;
}

/* Image Wrapper with Overflow control for hover animations */
.cs-image-40ac568e {
    overflow: hidden;
    display: block;
}
.cs-image-40ac568e img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease-in-out;
}

/* Image Element Hover Animations */
.cs-img-hover-zoom-in:hover img,
.cs-container-40ac568e:hover .cs-img-hover-zoom-in img {
    transform: scale(1.1);
}

.cs-img-hover-zoom-out:hover img,
.cs-container-40ac568e:hover .cs-img-hover-zoom-out img {
    transform: scale(0.9);
}

/* Responsive Description Logic */
.cs-desc-40ac568e .cs-desc-full {
    display: inline;
}
.cs-desc-40ac568e .cs-desc-short {
    display: none;
}

@media (max-width: 767px) {
    .cs-desc-40ac568e .cs-desc-full {
        display: none;
    }
    .cs-desc-40ac568e .cs-desc-short {
        display: inline;
    }
}
