:root {
    --borderRadius: 12px;
}

body {
    font-family: monospace, sans-serif;
    color: #04101e8f;
    background: linear-gradient();
    background-color: #16213E;
}

h1 {
    color: #fff;
    font-size: 40px;
}

a {
    color: #1c628f;
}
#title {
    text-align: center;
    margin-top: 100px;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-template-rows: masonry;
    background-color: #04101e8f;
    padding: 50px;
    margin: 105px 175px;
    border-radius: var(--borderRadius);
}

.church, .grey {
    grid-row-start: span 2;
}

.nebula {
    grid-row-start: span 1;
}

.city {
    bottom: 50px;
}


figcaption p {
    margin-top: 0;
    padding: 5px 10px;
}

img {
    border-radius: var(--borderRadius);
    background-repeat: no-repeat;
    max-width: 100%;
    background-color: antiquewhite;
    box-shadow: 0 0 20px #1c628f;
    transition: all 0.4s;
}

img:hover {
    cursor: pointer;
    box-shadow: 0 0 35px #1c628f;
}

.i1 {
    width: 100%;
}

figcaption {
    border-bottom-left-radius: var(--borderRadius);
    border-bottom-right-radius: var(--borderRadius);
    margin-top: 10px;
    transition: all 0.4s;
}

figure:hover figcaption {
    color: #ffffff;
}


@media only screen and (max-width: 1500px) {
    .wrapper {
        margin: 105px 5px;
    }
}

@media only screen and (max-width: 1100px) {
    .wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 800px) {
    .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media only screen and (max-width: 450px) {
    .wrapper {
        padding: 0;
    }
}

