.img-comp-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* Maintain 3:2 aspect ratio (200px height / 300px width) */
    overflow: hidden; /* Ensure child elements respect border radius */
}

.img-comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-comp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    max-width: 100%;
}
.img-comp-overlay{
    border-right: 1px solid #636161;
}
.card-body {
    text-align: center;
}

.card-title {
    margin: 0; /* Remove margin if desired */
    font-size: 1.25rem; /* Adjust font size as needed */
}


.img-comp-label {
    position: absolute;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    z-index: 10;
}

.before-label {
    bottom: 10px;
    left: 10px;
}

.after-label {
    bottom: 10px;
    right: 10px;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    /* set the appearance of the slider: */
    width: 40px;
    height: 40px;
    background-color: var(--text-color);
    opacity: 0.7;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Adjust the font size as needed */
    color: white; /* Adjust the color as needed */
}

.img-comp-slider::before {
    content: '↔';
    margin-top: -4px;
}

.compare-card:hover {
    cursor:auto;
    transform: translateY(0px);
}