html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.photo, 
.wedding {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.photo span,
.wedding span {
    font-size: 30px;
    color: white;
    filter: drop-shadow(0px 0px 6px black)
}

.photo::before, 
.wedding::before {
    height: 133.4%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    z-index: -1;
    filter: brightness(0.7) grayscale(0.7);
    transition: filter 0.3s ease-in-out
}

.photo:hover::before, 
.wedding:hover::before {
    filter: brightness(1) grayscale(0);
}

.photo::before {
    content: '';
    display: block;
    top: 0;
    left: 0;
    background-image: url('images/left.jpg');
    clip-path: polygon(0 0, 100% 0%, 100% 50%, 0% 100%);
}

.wedding::before {
    content: '';
    display: block;
    right: 0;
    bottom: 0;
    background-image: url('images/right.jpg');
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%, 0% 100%);
}


.text  {
    height: 100%;
    width: 100%;

    justify-content: center;
    align-items: center;
}

.text span {
    font-size: 30px;
    color: black;
    filter: drop-shadow(0px 0px 6px black)
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Great Vibes", cursive;
    font-size: 45px;
    color: #fff;
  }

.picture {
    top: 40%;
}

@media screen and (min-width:768px) 
{
    .container {
        flex-direction: row;
    }

    .photo::before, 
    .wedding::before {
        height: 100%;
        width: 133.4%;
    }

    .photo::before {
        clip-path: polygon(0 0, 100% 0%, 50% 100%, 0% 100%);
    }

    .wedding::before {
        clip-path: polygon(50% 0, 100% 0%, 100% 100%, 0% 100%); 
    }

}

  

  