* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: capitalize;
    transition: all .2s cubic-bezier(.34, 1.12, .68, 1.31);
}

#element {
    min-width: 35%;
    margin-left: 35%;
    color: #fff;
    font-weight: bold;
    font-size: 60px;
    text-align: center;
}

.gallery {
    min-height: 100vh;
    background: #666;
    padding-bottom: 100px;
}

.gallery .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
    list-style: none;
}

.gallery .controls a {
    text-decoration: none;
    color: #666;
}

.gallery .controls .buttons {
    height: 40px;
    width: 140px;
    background: whitesmoke;
    color: #666;
    font-size: 18px;
    line-height: 35px;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 3px rgba(0, 0, 0, .3);
    text-align: center;
}

.gallery .controls .buttons:hover {
    height: 42px;
    width: 141px;
    background: rgb(218, 103, 126);
    color: #fff;
    font-size: 18px;
    text-align: center;
    transform: scale(1.03);
}

.gallery .controls .buttons.active {
    background: crimson;
    color: #fff;
    font-weight: bold;
    transform: scale(1.05);
}

/* Image Slider Styles */
.slider-container {
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

/* Slider Navigation Buttons */
.slider-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Controls for image layout */
.gallery .image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 20px;
}

.gallery .image-container-item .image {
    position: relative;
    height: 270px;
    width: 350px;
    overflow: hidden;
    border: 15px solid #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
    margin: 10px;
    display: flex;
}

.gallery .image-container-item .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: .5s ease;
    display: flex;
}

.gallery .image-container-item .image:hover img {
    transform: scale(.9);
}

/* Delete Button CSS */
.remove-image {
    background-color: #fff;
    color: #666;
    padding: 5px 10px;
    border-radius: 40px;
    position: relative;
    object-fit: cover;
    font-size: 16px;
    cursor: pointer;
    margin-left: 120px;
    font-style: italic;
}

.remove-image:hover {
    background-color: crimson;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    object-fit: cover;

}

/* Upload Button CSS */
#upload-button {
    background-color: #fff;
    color: #666;
    border: none;
    padding: 5px 10px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 45%;
    font-style: italic;
    justify-content: space-between;
    position: relative;
    object-fit: cover;
}

#upload-button:hover {
    background-color: crimson;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    object-fit: cover;
}

#image-preview-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#image-upload {
    width: 50%;
    height: 50%;
    display: flex;
    color: #fff;
    font-size: 15px;
    position: relative;
    object-fit: cover;
}

#upload-form {
    background-color: transparent;
    color: #666;
    border: none;
    padding: 2px 5px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 15%;
    font-style: italic;
    justify-content: space-between;
    position: relative;
    object-fit: cover;
}

#upload-form input[type="file"] {
    color: #fff;
    background-color: transparent;
    font-size: 14px;
    cursor: pointer;
    margin-left: 25%;
    align-items: center;
    text-align: center;
    position: relative;
    object-fit: cover;
    border-radius: 50px;
}

#upload-form input[type="file"]:hover {
    background-color: transparent;
    color: rgb(241, 148, 206);
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
}

@media (max-width: 768px) {
    .image-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    #element {
        width: 100%;
        font-size: clamp(24px, 5vw, 60px);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .image-container {
        display: grid;
        grid-template-columns: 1fr;
    }
}
