/* photo-gallery.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    color: #454545;
}

.overlay {
    width: 100%;
    height: 100vh;
    display: flex;
    position: absolute;
    background-color: rgba(0,0,0, 0.85);
    top: 0;
    left: 0;
    overflow: hidden;
    gap: 2rem;
    /* padding: 1rem; */
    display: none;
}

.overlay img {
    border-radius: 1rem;
    width: 50%;
    max-width: 800px;
    min-width: 310px;
    box-shadow: 0 0 2rem 0 rgba(0,0,0, 0.25);
}

.overlay .wrapper {
    position:relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* max-width: 1440px;
    height: auto; */
}

.image-container {
    position: relative;  /* IMPORTANT: this makes the button relative to the image */
    /* display: inline-block; shrink-wrap image */
    display: flex;
    
}
.overlay .button-group {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 1rem;
    color: black;
}

.overlay .button-group button {
    border-radius: .25rem;
    padding: 1rem;
    width: 25%;
    max-width: 130px;
    border: none;
    color: #454545;
    font-size: 1.1rem;
    background-color: #f2f2f2;
    cursor: pointer;
    transition: all .3s ease;
}

.overlay .button-group button:hover {
    background-color: #cac6c6;
}

.overlay.show {
    display: flex;
    position: fixed;
    z-index: 2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem;
    padding: 1rem;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    /* padding: 1rem; */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
        position: relative;
}

.wrapper img {
    max-height: 600px;
    width: min-content;
    max-width: 100%;
    position: relative;
    z-index: 99 !important;
}

/* .gallery {
    background-color: #f2f2f2;
    border-radius: .5rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    gap: 20px;
} */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background-color: #f2f2f2;
    border-radius: .5rem;
    padding: 1rem;
}

.image {
    /* flex: 30%; */
    min-width: 200px;
    background-color: #ccc;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: .5rem;
    cursor: pointer;
}

@media (min-width: 764px) {
    .overlay .button-group button {
        min-width: 100px;
    }
}

