@font-face {
    font-family: marthin;
    src: url(../fonts_mariage/Marthin.otf) format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: bariol-regular;
    src: url(../fonts_mariage/Bariol-Regular.otf) format("opentype");
}

@font-face {
    font-family: wedding;
    src: url(../fonts_mariage/Wedding.ttf) format("truetype");
}

:root {
    --main-color: rgb(254, 205, 0);
    --seco-color: rgb(254, 245, 218);
    --light: 50;
    --font-color: rgb(var(--light), var(--light), var(--light));
}

* {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: bariol-regular;
    color: var(--font-color)
}

body {
    margin: 5em auto;
    overflow-x: hidden;
}

h1,
h2 {
    margin: 0 auto 0 auto;
    text-align: center;
}

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    max-width: 1200px;
    margin: 2em auto;
}

.gallery .gallery-item {
    flex-grow: 1;
    flex-basis: 200px;
    overflow: hidden;
    max-width: 600px;
    max-height: 300px;
}

.gallery-item a {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gallery-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: 1s ease-in-out
}

.gallery-item:hover a img {
    transform: scale(1.05);
}
