
.gallery-con {
    padding-top: 30px;
    padding-bottom: 10px;    
    min-height: 200px;
    background-image: url("../img/friendsofaca_color.svg");
    background-size: 55%;
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center;    
}

.gallery-title, .annual-title {
    font-size: 2.3em !important;    
    color: #1d4871 !important;
}

.gallery-border {
    border: .1em solid #FFBE67 !important;
}

.photo-con {        
    margin: auto;
    max-width: 1440px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    grid-gap: 4px;
}

.photo__item {
    position: relative;
    /* border-top-right-radius: 50px;     */
    overflow: hidden;
}

.photo__img {    
    width: 100%;
    height: 100%;
    object-fit: cover;   
    transition: .4s ease-in-out;    
}

.photo__img:hover {         
    transform: scale(1.07, 1.07);        
}

.photo__title {
    position: absolute;
    bottom: 0;
    margin: 0px;
    padding: 10px 10px;
    text-align: center;    
    background: rgba(0,0,0,.5);
    font-size: 1em;
    width: 100%;
    color: #f5f5f5;
}

.photo__item:first-child {
    grid-column-start: span 2;
}
.photo__item:nth-child(2) {
    grid-column-start: span 2;
}
.photo__item:nth-child(3) {
    grid-column-start: span 1;
}
.photo__item:nth-child(4) {
    grid-column-start: span 3;
}

.photo__item:nth-child(5) {
    grid-column-start: span 2;
}
.photo__item:nth-child(6) {
    grid-column-start: span 2;
}
.photo__item:nth-child(7) {
    grid-column-start: span 3;   
    grid-row-start: span 2;
}
.photo__item:nth-child(8) {
    grid-column-start: span 1;
}
.photo__item:nth-child(9) {
    grid-column-start: span 1;
}
.photo__item:nth-child(10) {
    grid-column-start: span 1;
}
.photo__item:nth-child(11) {
    grid-column-start: span 2;
}
.photo__item:nth-child(12) {
    grid-column-start: span ;
}
.photo__item:nth-child(13) {
    grid-column-start: span 2;
}
.photo__item:nth-child(14) {
    grid-column-start: span 2;
}
.photo__item:nth-child(15) {
    grid-column-start: span 4;    
}

.photo__item:nth-child(16) {
    grid-column-start: span 2;
}

.photo__item:nth-child(17) {
    grid-row-start: span 1;
}

.photo__item:nth-child(18) {
    grid-column-start: span 1;
}

.photo__item:nth-child(19) {
    grid-column-start: span 2;
}
.photo__item:nth-child(20) {
    grid-column-start: span 2;
}

.photo__item:nth-child(21) {
    grid-column-start: span 2;   
}

.photo__item:nth-child(22) {
    grid-column-start: span 2;
}

.photo__item:nth-child(23) {
    grid-column-start: span 2;
}

.photo__item:nth-child(24) {
    grid-column-start: span 2;    
}

.photo__item:nth-child(25) {
    grid-column-start: span 2;
    grid-row-start: span 2;    
}

.photo__item:last-child {
    grid-column-start: span 1;
}

/* Carousel trasnsition speed */
.carousel-item-next, .carousel-item-prev, .carousel-item.active {
    transition: transform 2.8s ease;
    -webkit-transition: transform 2.8s ease;
    -moz-transition: transform 2.8s ease;
    -ms-transition: transform 2.8s ease;
    -o-transition: transform 2.8s ease;
}

.annual-con {    
    padding: 50px 0px;
}

.annual-txt {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.1em;
    font-weight: normal;
}

.annual-img {    
    margin: 10px;
    box-shadow: 0 2.5px 2.5px 0 rgba(0,0,0,.5);    
}

.chevron-sh {    
    font-size: 4.5em;
    text-shadow: .5px .5px 2px #1f1f1f;
    color: #e0e0e0;    
}

.download-con {
    text-align: center;
    margin: 50px auto;        
}

.download__title {
    padding-bottom: 50px;
    text-transform: uppercase;
    color: #1d4871;
}

.download__boxes {    
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;    
}

.download__content {
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 340px;
    padding: 18px;
    margin: 25px;    
    box-shadow: 0 0 2px .7px rgba(0,0,0,.4);
    flex-shrink: 0;        
}

.download__txt1 {
    margin-top: 190px;
    margin-bottom: 25px;
}

.download__txt2 {
    margin-top: 190px;
    margin-bottom: 48px;   
}

.download__link {
    margin-top: 15px;
    display: block;    
}

.download__link a{
    text-decoration: none;   
}

.download__img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;    
    object-fit: contain;
    border-bottom: .7px solid #cdcdcd;
    z-index: -1;
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    .photo-con {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo__item:first-child {
        grid-column-start: span 2;        
    }
    .photo__item:nth-child(2) {
        grid-column-start: span 2;        
    }
    .photo__item:nth-child(1) {
        grid-column-start: span 2;        
    }    
    .photo__item:nth-child(4) {
        grid-column-start: span 3;        
    }
    .photo__item:nth-child(5) {
        grid-column-start: span 2;
    }
    .photo__item:nth-child(6) {
        grid-column-start: span 2;        
    }
    .photo__item:nth-child(7) {
        grid-column-start: span 2;       
    }
    .photo__item:nth-child(8) {
        grid-column-start: span 2;       
    }
    .photo__item:nth-child(9) {
        grid-column-start: span 2;       
    }
    .photo__item:nth-child(10) {
        grid-column-start: span 4;       
    }
    .photo__item:nth-child(11) {
        grid-column-start: span 4;       
    }
    .photo__item:nth-child(12) {
        grid-column-start: span 4;       
    }
    .photo__item:nth-child(13) {
        grid-column-start: span 4;       
    }
    .photo__item:nth-child(14) {
        grid-column-start: span 4;       
    }
    
}
/* continuar aquí */
@media screen and (min-width: 425px) and (max-width: 767px) {

    .gallery-title, .annual-title {
        font-size: 1.8em !important;
    }

    .photo-con {
        grid-template-columns: repeat(5, 1fr);
    }
    .photo__item:first-child {
        grid-column-start: span 5;        
    }
    .photo__item:nth-child(2) {
        grid-column-start: span 3;
    }
    .photo__item:nth-child(3) {
        grid-column-start: span 2;        
    }
    .photo__item:nth-child(4) { 
        grid-column-start: span 5;        
    }
    .photo__item:nth-child(5) {
        grid-column-start: span 5;
    }    
    .photo__item:nth-child(6) {
        grid-column-start: span 5;
    }
    .photo__item:nth-child(7) {
        grid-column-start: span 5;        
    }
    .photo__item:nth-child(8) { 
        grid-column-start: span 5;        
    }
    .photo__item:nth-child(9) {
        grid-column-start: span 5;       
    }
    .photo__item:nth-child(10) {
        grid-column-start: span 5;
       
    }
    .photo__item:nth-child(11) {
        grid-column-start: span 5;
       
    }
    .photo__item:nth-child(12) {
        grid-column-start: span 5;
        
    }
    .photo__item:nth-child(13) {
        grid-column-start: span 5;       
    }
    .photo__item:nth-child(14) {
        grid-column-start: span 5;       
    }
    .photo__item:nth-child(15) {
        grid-column-start: span 5;       
    }    
    .photo__item:nth-child(16) {
        grid-column-start: span 5;       
    }    
    .photo__item:nth-child(17) {
        grid-column-start: span 3;       
    }    
    .photo__item:nth-child(18) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(19) {
        grid-column-start: span 3;       
    }    
    .photo__item:nth-child(20) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(21) {
        grid-column-start: span 3;       
    }    
    .photo__item:nth-child(22) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(23) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(24) {
        grid-column-start: span 3;       
    }    
    .photo__item:nth-child(25) {
        grid-column-start: span 5;       
    }    
    .photo__item:nth-child(26) {
        grid-column-start: span 5;       
    }    
    .photo__item:nth-child(27) {
        grid-column-start: span 5;       
    }    
    .photo__item:nth-child(28) {
        grid-column-start: span 3;       
    }    
    .photo__item:nth-child(29) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(30) {
        grid-column-start: span 1;       
    }    
    .photo__item:nth-child(31) {
        grid-column-start: span 4;       
    }    
    .photo__item:nth-child(32) {
        grid-column-start: span 2;       
    }    
    .photo__item:nth-child(33) {
        grid-column-start: span 3;       
    }    
}

@media screen and (max-width: 424px) {

    .gallery-title, .annual-title {
        font-size: 1.55em !important;
    }

    .photo-con {
        grid-template-columns: repeat(4, 1fr);
    }

    .photo__item:first-child {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(2) {
        grid-column-start: span 4;       
    }
    .photo__item:nth-child(3) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(4) {
        grid-column-start: span 4;         
    }
    .photo__item:nth-child(5) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(6) {
        grid-column-start: span 4;       
    }  
    .photo__item:nth-child(7) {
        grid-column-start: span 4;
        grid-row-start: span 1;     
    } 
    .photo__item:nth-child(8) {
        grid-column-start: span 4;        
    } 
    .photo__item:nth-child(9) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(10) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(11) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(12) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(13) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(14) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(15) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(16) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(17) {
        grid-column-start: span 1;       
    } 
    .photo__item:nth-child(18) {
        grid-column-start: span 3;       
    } 
    .photo__item:nth-child(19) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(20) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(21) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(22) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(23) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(24) {
        grid-column-start: span 4;              
    } 
    .photo__item:nth-child(25) {
        grid-column-start: span 4;
        grid-row-start: span 1;       
    } 
    .photo__item:nth-child(26) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(27) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(28) {
        grid-column-start: span 2;       
    } 
    .photo__item:nth-child(29) {
        grid-column-start: span 2;       
    } 
    .photo__item:nth-child(30) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(31) {
        grid-column-start: span 4;       
    } 
    .photo__item:nth-child(32) {
        grid-column-start: span 2;       
    } 
    .photo__item:nth-child(33) {
        grid-column-start: span 2;       
    } 

    .photo__title {
        display: none;
    }   
    
}

@media screen and (max-width: 376px) {
    .amg-org {
        font-size: .75em;
        color: #1d4871;
    }    

    .gallery-title {
        margin-top: 30px;
    }   
}

@media screen and (max-width: 320px) {    
    .amg-org {
        font-size: .69em;
        color: #1d4871;
    }

    .download__content {
        max-width: 260px;
    }

    .download__txt2 {
        margin-bottom: 24px;
    }
}





