/* ============================================
    Contiene: Estilos para la galería de fotos
   ============================================ */

/* === CURSOR PERSONALIZADO === */
/* Cursor para elementos clickeables */
a, button, .btn, .reminder-btn, .back-btn, .photo-frame, [onclick] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill="%23FF1493" d="M14 24.35l-1.45-1.32C5.4 18.36 2 15.28 2 11.5 2 8.42 4.42 6 7.5 6c1.74 0 3.41.81 4.5 2.09C13.09 6.81 14.76 6 16.5 6 19.58 6 22 8.42 22 11.5c0 3.78-3.4 6.86-8.55 11.54L14 24.35z"/></svg>') 14 14, pointer !important;
}

/* === GALERÍA DE FOTOS === */
/* Efecto de inclinación para las fotos */
.photo-frame:nth-child(odd) {
    transform: rotate(-3deg) translateY(8px);
}

.photo-frame:nth-child(even) {
    transform: rotate(3deg) translateY(8px);
}

/* Galería de fotos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

/* Estilo para cada marco de foto */
.photo-frame {
    position: relative;
    background: var(--white);
    padding: 15px 15px 50px 15px;
    border-radius: 2px;
    box-shadow: 0 3px 6px var(--black-10), 0 3px 6px var(--black-10);
    transition: box-shadow 0.3s, transform 0.3s;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    aspect-ratio: 3/4;
    overflow: hidden;
}

/* Efecto de zoom en la imagen */
.photo-frame:hover .photo-image {
    transform: scale(1.05);
}

/* Punto superior del marco */
.photo-frame::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent) 30%, var(--tertiary) 70%);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px var(--black-10);
    z-index: 10;
}

/* Efecto rotacion en el marco (Comentar si se activa efecto 3d o zoom)*/
/*.photo-frame:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px) !important;
    box-shadow: 0 10px 20px var(--shadow);
    z-index: 20;
    will-change: transform, box-shadow;
}*/

/* Mostrar Caption de la foto (Para futuro)
.photo-frame:hover .photo-caption {
    opacity: 1;
} */

/* Estilo del caption (Para futuro) */
/* .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black-70);
    color: var(--white);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
} */

/* Placeholder para la foto */
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--white-85);
    font-size: 3rem;
}

/* Estilo para la imagen */
.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border: 1px solid var(--black-10);
    box-shadow: inset 0 0 2px var(--black-05);
}

/* === RESPONSIVE === */
/* Adaptacion para tablets */
@media (max-width: 900px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Adaptacion para moviles */
@media (max-width: 480px) {
    .photo-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 10px 5px 20px 5px;
        height: auto;
        align-items: center;
        grid-template-columns: 1fr;
    }

    .photo-frame {
        flex: 0 0 calc(100vw - 20px);
        scroll-snap-align: center;
        height: auto;
        min-height: 60vh;
        padding: 10px;
        margin: 0 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        background: var(--white);
        border-radius: 2px;
        box-shadow: 0 2px 6px var(--black-10);
    }

    .photo-placeholder {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 0 5px;
    }

    .photo-image {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 65vh;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 auto;
    }

    .photo-frame::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
}
