/* Style the image section */

#img-contact1 {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.img-container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Add padding for better spacing */
}

.items__title1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 3 images in one row */
    gap: 20px;
}

.card1 {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    /* Ensure images don't overflow */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card1 iframe {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card1 iframe:hover {
    transform: scale(1.1);
}


/* Style for full-screen display */

#fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

#fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.buttons2 {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
}

.buttons2 button {
    border: none;
    background-color: gold;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 600;
    align-items: center;
}

.buttons2 button:hover {
    color: orangered;
    transform: scale(1.1);
    transition: all 0.5s;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
}


/* Responsive styles */

@media screen and (max-width: 768px) {
    #img-contact1{
        padding: 0;
    }
    .img-container2 {
        padding: 0 10px;
        /* Reduce padding for smaller screens */
    }
    .grid2 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 images in one row for smaller screens */
    }
}