.photo-gallery .item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}
.photo-gallery .item img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
        object-fit: cover;
        object-position: center center;
    border-radius: 3px;
    transition: var(--transition);
}
.photo-gallery img:hover {
    cursor: pointer;
}

.modal {
    align-items: center;
    display: none;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    z-index: 60;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}
.modal.is-active {
    display: flex;
}

.modal-background {
    background-color: rgba(10,10,10,.86);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-card, .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: 100%;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
}
@media screen and (min-width: 769px) {
    .modal-card, .modal-content {
        margin: 0 auto;
        max-height: calc(100vh - 40px);
        position: relative;
        width: 100%;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#lightbox_prev,
#lightbox_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(29, 24, 104, 0.7);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1000;
  border-radius: var(--border-radius);
}
#lightbox_prev:hover,
#lightbox_next:hover {
  background-color: rgba(29, 24, 104, 1);
}
#lightbox_prev {
  left: 10px;
  padding: 1rem 1rem 1rem 1.35rem;
}
#lightbox_next {
  right: 10px;
  padding: 1rem 1.35rem 1rem 1rem;
}

.arrow {
  border: solid white;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 6px;
}
.arrow.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}
.arrow.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  font-style: italic;
  background-color: rgba(0, 0, 0, .75);
  padding: 10px;
}

.modal-close {
    background: 0 0;
    height: 65px;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 65px;
    border: none;
    cursor: pointer;
    pointer-events: auto;
}
.modal-close:hover{
    border-radius: 290486px;
    background-color: rgba(29, 24, 104, 0.7);
}

.modal-close::after {
    height: 50%;
    width: 4px;
}
.modal-close::before {
    height: 4px;
    width: 50%;
}
.modal-close::after, .modal-close::before {
    background-color: #fff;
    content: "";
    display: block;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform-origin: center center;
}