.gallery {
    width: 100%;
}

.gallery-container {
    align-items: center;
    display: flex;
    height: 400px; /* Change height to auto to allow content to determine height */
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    padding: 20px 0; /* Add padding for spacing */
}

.gallery-item {
    height: 150px; /* Adjust the height of gallery items */
    width: 150px; /* Adjust the width of gallery items */
    overflow: hidden;
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
    z-index: 0;
    border-radius: 10px;
    background-size: cover;
}


.gallery-item-1 {
    left: 15%;
    opacity: .4;
    transform: translateX(-50%);
}

.gallery-item-2,
.gallery-item-4 {
    height: 250px;
    opacity: 0.8;
    width: 380px;
    z-index: 1;
}

.gallery-item-2 {
    left: 30%;
    transform: translateX(-50%);
}

.gallery-item-3 {
    box-shadow: -2px 5px 33px 6px rgba(0, 0, 0, 0.35);
    height: 300px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 430px;
    z-index: 2;
}

.gallery-item-4 {
    left: 70%;
    transform: translateX(-50%);
}

.gallery-item-5 {
    left: 85%;
    opacity: .4;
    transform: translateX(-50%);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    height: 100px;
    position: relative; /* Change the position to relative */
    z-index: 1; /* Set a lower z-index for the controls */
}

/* .gallery-controls button {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    font-size: 30px;
    margin: 0 50px;
    padding: 0 12px;
} */
/* 
.gallery-controls-button:focus {
    outline: none;
}

.gallery-controls-previous {
    position: relative;
}

.gallery-controls-previous::before {
    border: solid #000;
    border-width: 0 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    left: -30px;
    padding: 10px;
    position: absolute;
    top: 25%;
    transform: rotate (135deg) translateY(-50%);
    transition: left 0.15s ease-in-out;
    width: 5px;
}

.gallery-controls-previous:hover::before {
    left: -40px;
}

.gallery-controls-next {
    position: relative;
}

.gallery-controls-next::before {
    border: solid #000;
    border-width: 5px 5px 0;
    content: '';
    display: inline-block;
    height: 5px;
    padding: 10px;
    position: absolute;
    right: -30px;
    top: 45;
    transform: rotate (-45deg) translateY(-50%);
    transition: right 0.15s ease-in-out;
    width: 5px;
}

.gallery-controls-next:hover:before {
    right: -40px;
} */

.gallery-nav {
    bottom: 15px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    position: absolute;
    width: 100%;
}

.gallery nav li {
    background: #ccc;
    border-radius: 50%;
    height: 10px;
    margin: 0 16px;
    width: 10px;
}


.gallery-nav li.gallery-item-selected {
    background: #555;
    }

    
    @media only screen and (max-width: 600px) {
        .gallery-container {
            height: 300px;
            max-width: 100%;
            padding: 20px 20px; /* Adjust padding for iPhone screens */

        }
    
        .gallery-item {
            height: 150px;
            width: 150px;
            border-radius: 10px; /* Smaller images need smaller border-radius */
        }
    
        .gallery-item-1,
        .gallery-item-5 {
            opacity: 0.4;
        }
    
        .gallery-item-2,
        .gallery-item-4 {
            height: 200px;
            opacity: 0.8;
            width: 250px;
        }
    
        .gallery-item-3 {
            box-shadow: none;
            height: 250px;
            opacity: 1;
            width: 300px;
        }
    


    }
   
        