.frame-breakout {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    justify-content: center;
}

.frame-contain {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    margin: 2.5rem auto;
    border-style: solid;
    border-width: 34px 31px 34px 30px;
    border-image-source: url('../images/frame/wooden-frame-gallery.png');
    /* Ces deux valeurs (slice + width) sont une estimation de départ :
       le PNG n'ayant pas de dimensions connues précisément de mon côté,
       ajustez-les à l'œil jusqu'à ce que les coins ne soient ni étirés
       ni coupés. slice = quelle portion de l'image sert de coin/bord ;
       border-width = à quelle épaisseur ça s'affiche réellement. */
    border-image-slice: 200;
    border-image-width: 34px;
    border-image-repeat: stretch;
}

.frame-inner {
    background: var(--color-fond);
    padding: 1.2rem 0;
}

.frame-inner > .signature {
    text-align: center;
    margin: 0 0 0.8rem;
    padding-inline: 1rem;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    color: var(--color-texte);
    line-height: 1.15;
}

.drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 1rem 0 0;
    font-family: var(--font-corps);
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.03em;
    color: var(--color-texte);
    opacity: 0.6;
}

.drag-hint svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.guest-latest-photos {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.guest-latest-photos.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.guest-latest-photos::-webkit-scrollbar {
    display: none;
}

.photo-strip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    padding: 0.6rem 0.6rem 0.9rem;
    border-radius: 4px;
    box-shadow: var(--ombre-douce, 0 6px 16px rgba(58,52,43,0.16));
}

/* Rotation propre à chaque bande, en cycle de 6 valeurs */
.photo-strip:nth-child(6n+1) { rotate: -3deg; }
.photo-strip:nth-child(6n+2) { rotate: 2deg; }
.photo-strip:nth-child(6n+3) { rotate: -1.5deg; }
.photo-strip:nth-child(6n+4) { rotate: 3deg; }
.photo-strip:nth-child(6n+5) { rotate: -2deg; }
.photo-strip:nth-child(6n+6) { rotate: 1deg; }

.photo-strip__item {
    margin: 0;
    line-height: 0;
}

.photo-strip__item img {
    display: block;
    width: 106px;
    height: 106px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

/* Les photos d'une même bande restent parfaitement alignées entre
   elles (comme une vraie bande photomaton) — l'effet "posé à la
   main" vient uniquement de la rotation de la bande (.photo-strip),
   pas des photos individuellement. */

@media screen and (min-width: 48em) {
    .frame-contain {
        max-width: 790px;
        border-width: 48px;
        border-image-width: 48px;
    }

    .frame-inner {
        padding: 1.6rem 0;
    }

    .guest-latest-photos {
        gap: 2rem;
        padding: 0.8rem 2rem;
    }

    .photo-strip {
        gap: 0.6rem;
        padding: 0.7rem 0.7rem 1.1rem;
    }

    .photo-strip__item img {
        width: 128px;
        height: 128px;
    }
}
