.photos {
    padding: 1rem 1.5rem;
}

.photo:hover {
    cursor: pointer;
}

.photos-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, 19rem);
    justify-content: center;
    align-content: center;
    text-align: center;
    gap: 1rem;
}

.photo-section {
    text-align: center;
    background-color: #7D8A9B;
    box-shadow: 0 0 0.1rem 0.1rem #7D8A9B;
    border-radius: 0.1rem;
    width: 19rem;
}

.photo-frame {
    border-radius: 0.1rem;
    box-shadow: 0 0 0.1rem 0.1rem #7D8A9B;
}

.photo-frame img {
    display: block;
    object-fit: cover;
    object-position: 0 20%;
}


.photo-section img{
    border-radius: 0.1rem;
    /* box-shadow: 0 0 0.1rem 0.1rem #7D8A9B; */
}

.photos-inner a {
    text-decoration: none;
    color: #000;
}

.photos-inner a:hover {
    filter: contrast(120%);
}

.photo-section h2 {
    width: 100%;
    align-self: center;
    display: block;
    margin: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: black;
    height: 100%;
    max-height: 100vh;
    width: 100%;
    max-width: 60rem;
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    grid-template-rows: 3rem 1fr 3rem;
    align-items: center;
    justify-items: center;
}

/* .modal-content > * {
    min-width: 0px;
    min-height: 0px;
} */

.close {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    color: white;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    user-select: none;
    -webkit-user-select: none;
}

.close:hover,
.close:focus {
    background-color: rgba(150,150,150,0.2);
    color: #bd5d5d;
    text-decoration: none;
    cursor: pointer;
}

.mySlides {
    display: none;
    flex-direction: column;
    justify-content:center;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.mySlides img{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.prev,
.next {
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 1.6rem;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
    grid-row: 1 / -1;
    width: 100%;
    height: 100%;
    text-align: center;
    display:flex;
    justify-content: center;
    align-items: center;
}

.prev {
    border-radius: 0 0.2rem 0.2rem 0;
    grid-column: 1 / 2;
}

.next {
    border-radius: 0.2rem 0 0 0.2rem;
    grid-column: 3 / 4;
}

.prev:hover,
.next:hover {
    background-color: rgba(150,150,150,0.2);
    color: #91a0b6;
}

.numbertext {
    align-self: center;
    color: #f2f2f2;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.caption-container {
    text-align: enter;
    background-color: black;
    padding: 0.1rem 1rem;
    color: white;
}

.modal-blocker {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    content: ' ';
    background: rgba(0,0,0,.5);
  }

  @media only screen and (max-width: 48rem) {
    .mySlides {
        grid-row: 1 / -1;
        grid-column: 1 / -1;
    }
  }
