* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-weight: 500;
    color: #4c4c4c;
    outline: none;
    visibility: visible;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
    outline: 0;
}



.gallery-section {
    position: relative;
    z-index: 1;
}

.title-container {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 46px;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    color: #d27645;
} 

.filter {
    text-align: center;
    max-width: 1050px;
    margin: auto;
}

.btn {
    padding: 10px 20px;
    margin: 5px 4px 4px 0;
    display: inline-block;
    color: #003;
    background: #eee;
    border: 1px solid #d27645;
    transition: all 0.4s;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
}
.btn:hover,.btn-active {
    background: #d27645;
    color: #fff;
    transform: translateY(3px);
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px auto;
}

.set {
    display: none;
}

.set.all {
    display: block;
}

.gallery a {
    display: flex;
}

.gallery img {
    width: 200px;
    height: 220px;
    object-fit: cover;
    transition: 0.3s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px;
}

.gallery img:hover {
    transform: scale(1.1);
}

.closeBtn {
    position: absolute;
    font-size: 22px;
    font-weight: 500;
    right: 25px;
    top: 25px;
    color: white;
    transition: 0.5s linear;
    padding: 8px 40px;
    border-radius: 25px;
    background: red;
    outline: 2px solid #fff;
}
.closeBtn:hover {
    cursor: pointer;
    background: white;
    color: black;
}

.close-x {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: red;
    border-radius: 50%;
    padding: 5px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
}

.openDiv {
    width: 100%;
    height: 100vh;
    background: #000000e7;
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 0;
    z-index: 9999;
}
.imgPreview {
    width: 70%;
    object-fit: scale-down;
    max-height: 40vw;
    height: auto;
}

.prevButton, .nextButton {
    transition: 1s linear;
    padding: 10px 35px;
    font-size: 18px;
    border: none;
    color: white;
    background: #0005;
    border-radius: 10px;
    border: 1px solid white;
    margin: 10px;
}
.prevButton:hover, .nextButton:hover {
    background: #fff;
    color: black;
}


.back-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    margin-bottom: 40px;
    background-color: #d27645;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.back-button:hover {
    background-color: #ec5909;
    transform: scale(1.05);
}
.back-btn:hover {
    background-color: #e33c30;
}

/* responsive CSS */
@media (max-width: 767px) {
    .imgPreview {
        width: 70%;
        object-fit: scale-down;
        max-height: 100vw;
        height: auto;
    }
    .title {
        font-size: 36px;
    }
    .gallery img {
        width: 95px;
    }
    .closeBtn {
        padding: 6px 25px;
    }
}
