.gallery-section {
    padding: 20px;
    background-color: #f4f4f4;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
}

/* Heading with Optional Underline */
.gallery-heading-with-underline h2 {
    position: relative;
    margin-bottom: 40px; /* Ensure there is space for the line */
    text-align: center; /* Center the heading text */
}

.gallery-heading-with-underline h2::after {
    content: "";
    display: block;
    width: 10%; /* Adjust to cover the text width */
    height: 2px; /* Make the line thinner */
    background: #F06D33; /* Set the line color to white */
    position: absolute;
    bottom: -10px; /* Position it below the text */
    left: 50%; /* Center the line */
    transform: translateX(-50%); /* Adjust to perfectly center the line */
}

.gallery-heading-without-underline h2 {
    margin: 0;
    text-align: center; /* Center the heading text */
}

/* Text Styles */
.galerry-text-style-1 h2 {
    font-size: 55px;
    font-family: 'Satisfy', cursive;
    font-weight: 400;
    color: #F06D33;
    text-align: center; /* Center the heading text */
}

.galerry-text-style-2 h2 {
    color: #F06D33;
    font-family: 'Montserrat', sans-serif;
    font-size: 3em; /* Adjust the font size as needed */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow added */
    text-align: center; /* Center the heading text */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
