﻿/* Base Styles */
.row5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Ensures even distribution */
    gap: 10px;
}
#expandedImg {
    height: 402px;
    width: 456px;
    margin-left: 0px;
    text-align: center;
}
.column {
    flex: 1 0 24%;
    padding: 32px;
    box-sizing: border-box;
}

    /* Style the images inside the grid */
    .column img {
        width: 33%; /* Make it responsive by default */
        height: 400px; /* Maintain aspect ratio */
        background-color: #c35023;
        padding: 5px;
        margin-bottom: 10px; /* Adds space between images */
        cursor: pointer;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

        /* Hover effect for images */
        .column img:hover {
            opacity: 1;
        }

/* Expanding image container */
.container5 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

/* Navigation arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 1100;
    user-select: none;
}

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

/* Close button */
.closebtn {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 51px;
    color: #fff;
    cursor: pointer;
}

/* Image text */
#imgtext {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .column {
        flex: 1 0 48%; /* Adjust for tablets */
        padding: 16px;
    }

        .column img {
            width: 48%!important; /* Make height flexible for smaller screens */
        }
}


@media (max-width: 868px) {
    .column img {
        width: 48% !important;
    }
}

    @media (max-width: 768px) {
        .column {
            flex: 1 0 100%; /* Stack columns for smaller screens */
            padding: 10px;
        }

            .column img {
                width: 100%; /* Full-width images for smaller screens */
            }

        .arrow {
            font-size: 40px; /* Adjust arrow size for smaller screens */
        }

        .closebtn {
            font-size: 40px; /* Adjust close button size */
        }
    }

    @media (max-width: 576px) {
        .column img {
           width:100%!important; /* Ensure proper scaling on small devices */
        }

        #imgtext {
            font-size: 14px; /* Reduce text size */
        }

        .arrow {
            font-size: 30px; /* Further adjust arrow size */
        }

        .closebtn {
            font-size: 30px; /* Further adjust close button size */
        }
    }

@media (max-width: 500px) {
    #expandedImg {
        height: 376px!important;
        width: 397px!important;
        margin-left: 0px;
        text-align: center;
    }
}
@media (max-width: 400px) {
    #expandedImg {
        height: 331px !important;
        width: 357px !important;
        margin-left: 0px;
        text-align: center;
    }
}