/* ===== WORK CARDS (FULL IMAGE + TITLE OVERLAY) ===== */

.work-card{
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    cursor: pointer;
}

.work-img{
    width: 100%;
    height: 340px;          /* aumenta/diminuisci per card più grandi */
    object-fit: cover;      /* riempie tutta la card */
    display: block;
}

.work-title-overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px 16px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;

    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
}

/* hover leggero */
.work-card{
    transition: transform .35s ease, box-shadow .35s ease;
}

.work-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.30);
}
/* ===== MODAL IMAGE AUTO SIZE ===== */

.modal-img-content{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.modal-img{
    display: block;
    width: auto;
    height: auto;

    max-width: 90vw;   /* limite orizzontale */
    max-height: 90vh;  /* limite verticale */

    margin: auto;
    border-radius: 12px;
}

/* bottone chiusura sopra l’immagine */
.modal-close-btn{
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    z-index: 10;
}
