/*
 * assets/css/gallery.css
 * CAMBIOS:
 * - Se limpió la regla 'margin' en la base.
 * - En la @media query de 1024px (tablet/móvil), se cambió
 * 'max-width: 100%' a 'max-width: 95%' para crear
 * márgenes laterales.
*/

@font-face {
    font-family: 'excelates';
    src: url('/assets/fonts/excelate/excelates.ttf') format('truetype');
}

#gallery-y2k-wrapper .gallery-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 640px; 
    margin: 1.5rem auto; /* <-- LIMPIADO (1.5rem arriba/abajo, auto a los lados) */
    gap: 0;
}

/* Gallery1 */
#gallery-y2k-wrapper .main-photo {
    width: 50%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 480px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-y2k-wrapper .main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Right side */
#gallery-y2k-wrapper .right-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

/* Gallery2 */
#gallery-y2k-wrapper .photo-container:first-child {
    flex: none;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 240px; 
}

/* Gallery3 */
#gallery-y2k-wrapper .photo-container:last-child {
    flex: none;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 240px; 
}

#gallery-y2k-wrapper .photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover efecto */
#gallery-y2k-wrapper img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

#gallery-y2k-wrapper button {
    font-family: 'excelates', sans-serif;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón base */
#gallery-y2k-wrapper .gallery-container button {
    position: absolute;
    bottom: 20px;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 0.5rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Botón Gallery1 a la izquierda (corte en la DERECHA) */
#gallery-y2k-wrapper .main-photo button {
    left: 0px;
    right: auto;
    width: 60%; 
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%); 
}

/* Botones Gallery2 y 3 a la derecha (corte en la IZQUIERDA) */
#gallery-y2k-wrapper .photo-container button {
    right: 0px;
    left: auto;
    width: 60%; 
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%); 
}

/* Hover botones */
#gallery-y2k-wrapper .gallery-container button:hover {
    background: #fff;
    color: #111;
    transform: translateY(18px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INICIO DE CAMBIOS RESPONSIVE ===== */

/* RESPONSIVO: Tablets */
@media (max-width: 1024px) {
    #gallery-y2k-wrapper .gallery-container {
        max-width: 90%; /* <-- CAMBIADO (era 100%) */
        margin: 1.5rem auto; /* <-- AÑADIDO (para centrar y dar margen vertical) */
    }

    /* Altura total = 300px */
    #gallery-y2k-wrapper .main-photo {
        height: 300px; 
    }
    
    /* 150px + 150px = 300px */
    #gallery-y2k-wrapper .photo-container:first-child,
    #gallery-y2k-wrapper .photo-container:last-child {
        height: 150px; 
    }

    #gallery-y2k-wrapper .gallery-container button {
        font-size: 0.5rem;
        width: 70%; 
        padding: 12px 20px;
    }
}

/* RESPONSIVO: Móviles */
@media (max-width: 600px) {
    
    /* Altura total = 280px */
    #gallery-y2k-wrapper .main-photo {
        height: 280px; 
    }

    /* 140px + 140px = 280px */
    #gallery-y2k-wrapper .photo-container:first-child,
    #gallery-y2k-wrapper .photo-container:last-child {
        height: 140px; 
    }

    #gallery-y2k-wrapper .gallery-container button {
        font-size: 0.3rem; 
        width: 70%; 
        padding: 4px 8px; 
        bottom: 5px; 
    }
}
/* ===== FIN DE CAMBIOS RESPONSIVE ===== */

/* ===== ETIQUETA PROXIMAMENTE ===== */
.tag-proximamente {
    position: absolute;
    top: 10px;           /* Separación del techo */
    right: 10px;         /* Separación de la derecha */
    background-color: #ff0000; /* Rojo intenso */
    color: #ffffff;      /* Letra blanca */
    padding: 4px 10px;
    font-family: 'Inter', sans-serif; /* O usa 'excelates' si prefieres */
    font-weight: 700;
    font-size: 0.7rem;   /* Tamaño de letra */
    text-transform: uppercase;
    z-index: 10;         /* Para asegurar que esté encima de la foto */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Sombra para resaltar */
    letter-spacing: 1px;
    pointer-events: none; /* Para que el click pase a través si es necesario */
}

/* Ajuste para móviles (hacer la etiqueta más pequeña) */
@media (max-width: 600px) {
    .tag-proximamente {
        top: 5px;
        right: 5px;
        padding: 3px 6px;
        font-size: 0.5rem; /* Letra más pequeña en celular */
    }
}