
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 5px;
    justify-items: center;
    /* width: 50%; */
}

.gallery-item {
    width: 100%;
    height: 300px;
    max-width: 300px;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.p-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 100px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    /* overflow: hidden; */
    
}

.p-modal-content {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    margin-top: 100px;
    display: block;
    border-radius: 8px;
}

.p-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.p-close:hover,
.p-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}