﻿figcaption {
    height: 75px;
    color: #555; /* Start with dark gray */
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    line-height: 0.8;
    transition: color 0.3s ease; /* Color transition */
}

figure.effect-selena {
    background: #fff;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden; /* Ensure no overflow when scaling image */
    border-radius: 10px;
    box-shadow: 8px 8px 15px 5px #e0e0e0;
}

.image-container {
    width: 100%;
    padding-top: calc(100% / 2.1); /* Aspect ratio 2.1:1 */
    overflow: hidden;
    position: relative;
}

.image-container-v {
    width: 100%;
    padding-top: calc(100% / 1.75); /* Aspect ratio 1.75:1 */
    overflow: hidden;
    position: relative;
}

figure.effect-selena img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover Effects */
figure.effect-selena:hover img {
    transform: translate(-50%, -50%) scale(1.1); /* Slight zoom */
}

figure.effect-selena:hover figcaption {
    color: black; /* Change text color to black on hover */
}