
.Apart .bloc {
    float: left;
    margin: 0 1.5em 1em 0;
    max-width: 184px;
    width: 100%;
    text-align: center;
}

.Apart .bloc img {
    width: 100%;
    height: auto;
}

.Apart .targeta {
    background-color: #f0f5fa;
    padding: 10px 10px 0 10px;
}

.Apart .bloc .enllac {
    display: inline-block;
    margin-top: 0.5em;
    font-weight: bold;
}

.Apart .ApartCont {
    overflow: hidden;
}

div.ApartCont ul {
    list-style: none;
    padding-top: 0;
    margin-top: 0;
}

/* Foto i vídeo */

.foto-video {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5em;
}

.foto-trobada {
    flex: 1 1 0;
    min-width: 280px;
    margin: 0;
    text-align: center;
}

.foto-trobada img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.foto-trobada figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
}

/* Foto amb alçada fixa (per a fotos de format apaïsat amb vídeo short al costat) */

.foto-trobada-fixa {
    margin: 0;
    text-align: center;
    min-width: 0;
}

.foto-trobada-fixa img {
    width: auto;
    height: 360px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.foto-trobada-fixa figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
}

.video-16x9 {
    position: relative;
    flex: 1 1 0;
    min-width: 280px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.video-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Vídeo vertical (format short 9:16) */

.video-short {
    position: relative;
    height: 360px;
    aspect-ratio: 9 / 16;
    flex: 0 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.video-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Foto i vídeo amb la mateixa alçada: contenidor 16:9 per la foto */

.foto-mateixa-alçada {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.foto-mateixa-alçada img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 740px) {
    .Apart .bloc {
        float: none;
        max-width: 100%;
        margin: 0 0 1em 0;
    }

    .foto-trobada-fixa img {
        width: 100%;
        height: auto;
    }

    .video-short {
        height: auto;
        width: 100%;
        max-width: 315px;
    }
}
