main {
    display: block;
}

main .container {
    display: grid;
    gap: 2%;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 4%;
}

main .container div {
    position: relative;
}

main .container span {
    position: absolute;
    font-size: 2rem;
    color: brown;
    left: 20px;
}

main .container img {
    min-height: 100%;
    min-width: 100%;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

main .container img:hover {
    transform: scale(1.03);
    cursor: pointer;
}

/* lightbox */

.lightbox {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0 auto;
    transition: opacity 0.5s ease-in-out;
}

::-moz-selection {
    color: none;
    background: none;
}

::selection {
    color: none;
    background: none;
}

.lightbox.active {
    width: 100vw;
    height: 100vh;
    background-color: white;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: grid;
    grid-template-columns: 1fr 6fr 1fr;
    background-color: white;
    opacity: 1;

    transition: opacity 0.5s ease-in-out;
}

.lightbox .big-image {
    height: 75%;
    display: flex;
    align-self: center;
    position: relative;
}

.lightbox .big-image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
}


.lightbox .arrow-left,
.lightbox .arrow-right {
    display: flex;
    flex-direction: column;
    align-self: center;
    cursor: pointer;
    padding: 80px 0;
}

.lightbox .arrow-left {
    margin-right: 10%;
}

.lightbox .arrow-right {
    margin-left: 10%;
}

.lightbox .arrow-left:hover,
.lightbox .arrow-right:hover {
    background-color: rgb(242, 242, 242);
}

.lightbox .arrow-left img,
.lightbox .arrow-right img {
    width: 40%;
    align-self: center;
}

.lightbox .arrow-left.disabled,
.lightbox .arrow-right.disabled {
    visibility: hidden;
}

.lightbox .close-icon {
    display: none;
}

.lightbox.active .close-icon {
    display: block;
    position: absolute;
    right: 10px;
    top: 0;
    width: 80px;
    padding: 20px;
    cursor: pointer;
}

.lightbox.active .close-icon:hover {
    background-color: rgb(242, 242, 242);
}


@media (max-width: 870px) {

    main .container {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 630px) {
    main .container {
        display: flex;
        flex-direction: column;
    }

    main .container img {
        width: 100%;
    }

    .lightbox .arrow-left,
    .lightbox .arrow-right {
        visibility: hidden;
    }
}