/** START Carousel styling */
.carousel-item:after {
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background:rgba(0,0,0,0);
    z-index: 1;
}
.carousel-caption {
    z-index: 2;
}
/* END Carousel styling */

/* START Card grid and size fix */
.card-title-fixed-height {
    height: 2.0rem;
    overflow: hidden;
    text-align: center;
    hyphens: auto;
}

@media (max-width: 1399px) {
    .card-title-fixed-height {
        height: 3.5rem;
    }
}

.image-box-fixed-height {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box-fixed-height img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}
/* END Card grid and style fix */

/* START Zoom effect on cards images */
.image-box-fixed-height img:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-box-fixed-height img {
    transition: transform 0.3s ease-in-out;
}

/* for mobile touch, so they can also zoom */
.image-box-fixed-height img.zoomed {
    transform: scale(1.3);
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* END */

.card-title {
    color: #555cd5;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.card-slide {
    animation: slideIn 1s ease-out forwards;
    opacity: 0;
}
