* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

*,
*:hover,
*:focus,
*:active {
    outline: none;
    box-shadow: none;
    text-shadow: none;
}

/* titlte */
.title {
    font-family: sans-serif;
    font-size: 1.6rem;
    text-align: center;
    padding: 4.5rem 0 3rem 0;
}

/* lightbox */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main__content {
    display: grid;
    margin: 0 auto;
    width: 92%;
    max-width: 1024px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media screen and (max-width: 856px) {
    .main__content {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 2rem;
    }
}

.main__item {
    display: block;
    width: 100%;
}

.main__image {
    display: block;
    width: 100%;
    cursor: pointer;
}

.main__image:hover {
    filter: blur(2px);
}

/* modal */
.modal {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: hsla(0, 0%, 16%, 86%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal__content {
    display: block;
    width: 92%;
    max-width: 856px;
    padding: .5rem;
    background-color: #ffffff;
    border-radius: .2rem;
    position: relative;
}

.modal__image {
    display: block;
    width: 100%;
    border-radius: .2rem;
}

.modal--active {
    display: flex;
}

.modal__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: -1.8rem;
}

.modal__button--left {
    left: 1rem;
}

.modal__button--right {
    right: 1rem;
}

.modal__svg {
    display: block;
    width: 1.6rem;
    fill: #ffffff;
}

.modal__cancel {
    cursor: pointer;
    display: flex;
    width: 3rem;
    height: 3rem;
    position: absolute;
    top: -3.5rem;
    left: 50%;
    margin-left: -1.5rem;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

.modal__cancel--icon {
    fill: #ffffff;
    width: 1.6rem;
}