/* General Styles */
.ccw-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card {
    flex: 1 1 calc(33.333% - 1rem);
    position: relative;
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
    }
}

.card-inner {
    position: relative;
    background: var(--card-bg-color, #fff);
    overflow: hidden;
}

.card-inner.ccw-hover-zoom_in .imgBox img,
.card-inner.ccw-hover-zoom_in .imgBox video {
    transition: transform 0.5s;
}

.card-inner.ccw-hover-zoom_in:hover .imgBox img,
.card-inner.ccw-hover-zoom_in:hover .imgBox video {
    transform: scale(1.1);
}

.card-inner.ccw-hover-zoom_out .imgBox img,
.card-inner.ccw-hover-zoom_out .imgBox video {
    transition: transform 0.5s;
    transform: scale(1.1);
}

.card-inner.ccw-hover-zoom_out:hover .imgBox img,
.card-inner.ccw-hover-zoom_out:hover .imgBox video {
    transform: scale(1);
}

.card-inner.ccw-hover-grayscale .imgBox img,
.card-inner.ccw-hover-grayscale .imgBox video {
    transition: filter 0.5s;
}

.card-inner.ccw-hover-grayscale:hover .imgBox img,
.card-inner.ccw-hover-grayscale:hover .imgBox video {
    filter: grayscale(100%);
}

.box {
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.imgBox {
    position: relative;
    width: 100%;
    height: 100%;
}

.imgBox img,
.imgBox video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imgBox video {
    display: block;
}

.thumbnail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-inner:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i,
.thumbnail-overlay svg {
    color: #fff;
    font-size: 3rem;
}

.icon {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    width: 6rem;
    height: 6rem;
    background: var(--card-bg-color, #fff);
    border-top-left-radius: 50%;
    transition: 0.3s;
    z-index: 1;
}

.icon:hover .iconBox {
    transform: scale(1.1);
}

.icon::before {
    position: absolute;
    content: "";
    bottom: 0.375rem;
    left: -1.25rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem var(--card-bg-color, #fff);
}

.icon::after {
    position: absolute;
    content: "";
    top: -1.25rem;
    right: 0.375rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem var(--card-bg-color, #fff);
}

.iconBox {
    position: absolute;
    inset: 0.625rem;
    background: var(--icon-bg-color, #282828);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.iconBox span {
    color: #fff;
    font-size: 1.5rem;
}

.content {
    padding: 0.938rem 0.625rem;
}

.ccw-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.938rem 0.625rem;
}

.content h3 {
    /* Removed text-transform: capitalize; */
    font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.content p {
    color: #565656;
    margin-bottom: 1rem;
}

.content ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.content ul li {
    text-transform: uppercase;
    background: var(--tag-bg-color, #d3b19a);
    color: var(--tag-text-color, #282828);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.188rem;
}

.content ul li a {
    color: inherit;
    text-decoration: none;
}

/* Scroll Animations */
.ccw-animate-fade_in {
    opacity: 0;
}

.ccw-animate-slide_up {
    opacity: 0;
    transform: translateY(20px);
}

.ccw-animate-zoom_in {
    opacity: 0;
    transform: scale(0.9);
}
