﻿
.carousel-item .carousel-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .carousel-item .carousel-caption h2 {
        font-size: 80px;
        color: #ffffff;
        margin: 0 0 10px;
        opacity: 0;
    }

    .carousel-item .carousel-caption p {
        font-size: 30px;
        margin: 0;
        color: #eeeeee;
        opacity: 0;
    }

.carousel-item.active .carousel-caption h2 {
    animation: fadeInLeft 0.5s ease forwards;
}

.carousel-item.active .carousel-caption p {
    animation: fadeInRight 0.5s ease forwards;
}

/*Responsive*/
@media(max-width: 767px) {
    .carousel-item .carousel-caption h2 {
        font-size: 30px;
    }

    .carousel-item .carousel-caption p {
        font-size: 10px;
    }
}

/*Galeria de Imagenes*/
h1 {
    font-weight: 400;
    text-align: center;
    padding: 20px 0;
    font-size: 40px;
}

.linea {
    background: #550b51;
    height: 5px;
    width: 100%;
    display: block;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 95%;
    margin: auto;
    grid-gap: 10px;
    padding: 40px 0;
    overflow: hidden;
}

    .galeria > a {
        display: block;
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 6px rgba(0, 0, 0, .5)
    }

    .galeria img {
        width: 100%;
        vertical-align: top;
        height: 300px;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .galeria a:hover img {
        filter: blur(2px);
        transform: rotate(10deg) scale(1.3);
    }

.light-box {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.5);
    transition: transform .3s ease-in-out;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0)
}

    .light-box img {
        /*width: 75vw; */
        /*max-height: 78vh;*/
        object-fit: cover;
    }

    .light-box:target {
        transform: scale(1)
    }

.close {
    display: block;
    position: absolute;
    top: 80px;
    right: 40px;
    background: #851919;
    color: #fff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.next {
    display: block;
    background: #851919;
    color: #fff;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}

@media screen and (max-width:40px) {
    .galeria {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .close {
        top: 20px;
        right: 20px;
    }
}

/* Estilos de la galeria de imagenes */
        .gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
    padding: 20px;
    grid-gap: 10px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
}

    .gallery__item a:hover img {
        transform: scale(1.3);
    }

.gallery__img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
    object-fit: cover;
}



.gallery__title {
    position: absolute;
    bottom: 0;
    color: white;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
    width: 100%;
    margin: 0;
    padding: 10px;
}

.gallery__item:nth-child(4) {
    grid-column-start: span 2;
}

.gallery__item:nth-child(5) {
    grid-row-start: span 2;
}

.gallery__item:nth-child(9) {
    grid-column-start: span 2;
}

@media(min-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery__item:nth-child(3) {
        grid-column-start: span 2;
    }

    .gallery__item:nth-child(4) {
        grid-column-start: span 3;
    }

    .gallery__item:nth-child(5) {
        grid-row-start: span 3;
    }

    .gallery__item:nth-child(9) {
        grid-column-start: span 3;
    }
}

@media(min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(5, 1fr);
        width: 90%;
        margin: auto;
    }

    .gallery__item:nth-child(1) {
        grid-column-start: span 2;
        grid-row-start: span 2;
    }

    .gallery__item:nth-child(4) {
        grid-column-start: span 3;
        grid-row-start: span 3;
    }
}
