.batchphoto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.batchphoto-item {
    text-align: center; /* Center-align text within each item */
    box-sizing: border-box; /* Ensure padding/margin do not affect width */
    padding: 0px;
    border: 1px solid #000;
}

.batchphoto-item :hover {
    cursor: pointer;
}

.batchphoto-image {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.batchphoto-image img {
    width: 100%;
    min-height: 360px;
    height: auto;
    transition: transform 0.5s ease-in-out;
}

.batchphoto-image img:hover {
    transform: scale(1.2);
}

.batchphoto-det {
    width: 100%;
}

.batchphoto-batch {
    font-family: poppins;
    font-size: 14px;
    line-height: 14px;
    font-weight: 600;
    padding: 10px 0 5px 0;
    color: #000;
}

.batchphoto-course {
    font-family: poppins;
    font-size: 12px;
    line-height: 12px;
    padding: 5px 0 10px 0;
    color: #2d2d2d;
}

#imageModal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    padding-top: 60px;
}

#imageModal img {
    margin: auto;
    display: block;
    max-width: 80%;
    height: auto;
}

#imageModal span {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
}

@media (max-width: 800px) {
    .batchphoto {
        grid-template-columns: repeat(2, 1fr); /* Change to 2 columns on smaller screens */
    }
    .batchphoto-image {
        height: 300px;
    }
    .batchphoto-image img {
        min-height: 300px;
    }
}

@media (max-width: 500px) {
    .batchphoto {
        grid-template-columns: 1fr; /* Change to 1 column on very small screens */
    }
    .batchphoto-image {
        height: 150px;
    }
    .batchphoto-image img {
        min-height: 150px;
    }
}