/* CONTENEDOR MÓVIL */
.mobile-frame {
    width: 390px;
    min-height: 100vh;
    background: #fbfaf9;
    overflow-x: hidden;
}

/* COLLAGE */
.collage {
    position: relative;
    height: 520px;
    /*margin: 40px 0;*/
    margin-top: 0px;
    margin-bottom: 190px;
}

.item {
    position: absolute;
    cursor: pointer;
    transition: transform .3s;
}

.item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.item img {
    width: 100%;
    display: block;
    /*border-radius: 12px;*/
}

/* TIPOS */
/*.polaroid {
    width: 160px;
    background: #fff;
    padding: 10px 10px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}*/

.polaroid {
    width: 160px;
   
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
}

/*.polaroid p {
    text-align: center;
    font-size: 12px;
    margin-top: 8px;
}*/

.polaroid p {
    margin-top: 8px;
    margin-bottom: 0px;
    font-size: 12px;
    text-align: center;

    /* 🔒 control del espacio */
    /*height: 28px;                /* espacio máximo del texto */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* máximo 2 líneas */
    -webkit-box-orient: vertical;
}

.polaroid img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

/* ROTACIONES */
.rotate-1 {
    top: 40px;
    left: 20px;
    transform: rotate(-8deg);
}

.rotate-2 {
    top: 10px;
    right: -10px;
    transform: rotate(10deg);
}

.rotate-3 {
    bottom: 90px;
    left: 35px;
    transform: rotate(-33deg);
}

.rotate-4 {
    bottom: -24px;
    right: 4px;
    transform: rotate(24deg);
}


.rotate-5 {
    top: 169px;
    left: 171px;
    transform: rotate(-7deg);
}

.rotate-6 {
    top: 400px;
    right: 165px;
    transform: rotate(9deg);
}


/*  modal   */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    max-width: 90%;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    /*border-radius: 16px;*/
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.modal-content p {
    color: #fff;
    margin-top: 15px;
    font-size: 1rem;
    opacity: .9;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}