* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* background-color: white ; */
    background-image: url(background\ image\ for\ shiva\ portfolio.webp);
}

#wrapper {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;

}

.container h1 {
    margin: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 3rem;
    color: rgb(219, 219, 111);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.card {
    width: 32%;
    /*for spacing*/
    /* height: 32%; */
    position: relative;
    margin-bottom: 20px;
    /* border-radius: 30px; */
    overflow: hidden;
}

.card img {
    height: 100%;
    width: 100%;
    filter: grayscale(100%);
    box-shadow: 0 0 20px #333;
    object-fit: cover;
}

.card :hover {
    transform: scale(1.03);
    transition: 0.5s;
    filter: drop-shadow(0 0 10px #333);
    transition: 0.3s;
    border: #e2dede solid 1px;
}

.card :hover img {
    filter: grayscale(0%);
}

.card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    width: 100%;
    height: 20%;
    font-size: 16px;
    font-weight: 500;
    color: #e2dede;
    text-align: center;
    opacity: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255));
    transition: 0.3s;
}

.card:hover figcaption {
    opacity: 1;
    transform: scale(1.03);
}

#wrap {
    height: 1vh;
    width: 90vw;
    display: flex;
    justify-content: right;
    align-items: end;
    color: aliceblue;
}

.btn {
    border-radius: 50px;
    background-color: #768208;
    padding: 0.8rem 2.3rem;
    font-size: 18px;

    box-shadow: 5px 5px 7px 0px #0000003f;
    position: relative;
    z-index: 1;
}

.btn ::before {
    content: "details";
    background-color: #1f1f1f;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.8s;
    z-index: -1;
}

.btn :hover ::before {
    transform: scaleX(1);
}