.gallery {
	width: 100%;
	max-width: 800px;

	margin: 0 auto;
	margin-top: 75px;
	text-align: center;
	&__item {
		width: 50%;

		&:nth-child(4n + 1) {
			transform: scale(1.2);
			
			z-index: 1;
			transform-origin: center center;
		}
		.p-2 {
			box-shadow: 0px 0px 55px -1px rgba(0,0,0,0.64);
		}
		&:nth-child(5n) {}
        .image-wrapper {
            background: black;
            line-height: 0px;
        }
		img {
			width: 100%;
            opacity: 0.7;
            transition: opacity 0.5s ease;
             -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
            &:hover {
                opacity: 1
            }
		}
	}
	.main {
		
	}
}

.gallery-page {
	.types {
		position: relative;
	}
    .main {
        @include phone-only {
            width: 100%;
	        float: left;
	        overflow: hidden;
        }
        
        .after {
            transition: all 0.5s ease;
            width: 0;
            height: 0;
            border-bottom: 100px solid transparent;
            border-top: 0px solid transparent;
            content: '';
            z-index: 1;
            position: absolute;
            border-left: 100px solid #73674d;
            top: 0;
            opacity: 0.8;
            @include tablet {
                transition: all 0.5s ease;
                width: 0;
                height: 0;
                border-bottom: 650px solid transparent;
                border-top: 0px solid transparent;
                content: '';
                z-index: 1;
                position: absolute;
                border-left: 650px solid #73674d;
                top: 0;
                opacity: 0.8;
            }
        }
        .row {
            position: relative;
        }
        &__animation-overlay {
            position: absolute;
            $box-width-mobile: 400px;
            $box-width: 550px;
            width: $box-width-mobile;
            height: $box-width-mobile;
            transform-origin: center;
            top: 100px;
            z-index: 2;
            left: 60px;
            transform: rotate(270deg);
            @include tablet {
                left: 100px;
                top: 100px;
                width: $box-width;
                height: $box-width;
                z-index: 2;
            }
            .u__angle-box-1 {
                &:before {
                    display: none;
                }
            }
            *,
            *:after,
            span {
                background-color: #b5a272;
            }
            *:before {
                border-color: #b5a272;
            }
            .arrow-right {
                border-top: 5px solid transparent;
                border-bottom: 5px solid transparent;
                border-right: 22px solid #b5a272;
                width: 0;
                height: 0;
                content: '';
                position: absolute;
                z-index: 1;
                left: -40px;
                background: transparent;
                top: -4px;
            }
            .arrow-bottom {
                border-top: 22px solid #b5a272;
                border-left: 5px solid transparent;
                border-right: 5px solid transparent;
                width: 0;
                height: 0;
                content: '';
                background: transparent;
                position: absolute;
                z-index: 1;
                right: -4px;
                bottom: -41px;
            }
        }
         &__bg {
            @extend .u__bg;
            background-image: url('/assets/img/bg_gallery-dark.jpg');
            background-position: top right;
            @include tablet {
                background-image: url('/assets/img/bg_gallery-dark.jpg');
            }
        }
        &__content {}
        &__titles {
            position: relative;
            z-index: 3;
            text-align: center;
            h1 {
                line-height: .95em;
                text-transform: uppercase;
                margin-top: 30px;
                font-size: 13vw;
                //transition: font-size 0.5s ease;
                @include tablet {
                    font-size: 9.2em;
                }
                @include desktop {
                    font-size: 6vw;
                }
                @include large {
                    font-size: 9.2em;
                }
                br {
                    display: none;
                    @include tablet {
                        display: none;
                    }
                }
            }
            h2 {
                line-height: 1.3em;
                font-weight: normal;
                font-size: 1.9em;
                margin-top: 0px;
                color: $muddy-white;
                @include tablet {
                    font-size: 3.6em;
                }
                @include desktop {
                    font-size: 3vw;
                }
                @include large {
                    font-size: 3.6em;
                }
            }
        }
    }
}
.hidden-test {
	display: none;
}
.gallery--button {
	text-align: center;
	padding: 80px 0px;
	width: 100%;
	div {
		border: 1px solid #a38448;
		cursor: pointer;
		padding: 20px 60px;
		text-transform: uppercase;
		font-size: 12px;
		display: inline-block;
		color: #a38448;
		transition: all 0.5s ease;
		&:hover {
			background-color: #a38448;
			color: white;
		}
	}
	

}