/* Main row with flexbox */
.main-row.gy1 {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Adjusts the spacing between rows */
}

/* Row styles */
.row.gy1 img.gy1 {
    width: 100%;
    height: auto; /* Ensures the images are responsive */
}

/* ************************************************** */
/* Grid Container with zoom effect on hover */
.grid-container.gy1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 10px;
    padding: 20px;
}

.grid-container.gy1 img.gy1 {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.grid-container.gy1 img.gy1:hover {
    transform: scale(1.1); /* Zoom effect */
}

@media (max-width: 768px) {
    .grid-container.gy1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-container.gy1 {
        grid-template-columns: 1fr;
    }
}

/* Overlay for modal when image is clicked */
.modal-overlay.gy1 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal content for the new image */
.modal-content.gy1 {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content.gy1 img.gy1 {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Close button */
.close-btn.gy1 {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}
