@font-face {
    font-family: 'excelates';
    src: url('../../fonts/excelate/excelates.ttf') format('truetype');
}

.gallery-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    gap: 0;
    margin-top: 20%;
    margin-bottom: 20%;
}

/* Gallery1 */
.main-photo {
    width: 50%;
    position: relative;
    overflow: hidden;
    background-color: #000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Right side */
.right-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Gallery2 */
.photo-container:first-child {
    flex: none;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 350px;
    /* Altura reducida */
}

/* Gallery3 */
.photo-container:last-child {
    flex: none;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 355px;
    /* Altura reducida */
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Hover efecto */
img:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

button {
    font-family: 'excelates', sans-serif;
}

/* Botón base */
.gallery-container button {
    position: absolute;
    bottom: 20px;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 1rem;
    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 */
.main-photo button {
    left: 0px;
    right: auto;
    width: 80%;
}

/* Botones Gallery2 y 3 a la derecha */
.photo-container button {
    right: 0px;
    left: auto;
    width: 80%;
}

/* Hover botones */
.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);
}

/* Fade-in animación */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVO: Tablets */
@media (max-width: 1024px) {
    .gallery-container {
        flex-direction: column;
        max-width: 80%;
    }

    .main-photo,
    .right-side {
        width: 100%;
    }

    .photo-container {
        width: 100%;
        height: 180px;
    }

    .main-photo {
        min-height: 300px;
    }

    .gallery-container button {
        font-size: 1rem;
        width: 90%;
        padding: 12px 20px;
    }
}

/* RESPONSIVO: Móviles */
@media (max-width: 600px) {
    .photo-container {
        height: 160px;
    }

    .main-photo {
        min-height: 260px;
    }

    .gallery-container button {
        font-size: 0.95rem;
        width: 90%;
        padding: 10px 18px;
    }
}