/* For Project Portfolio page */

.service_padding {
    padding: 80px 0;
}

.section-title span {
    font-size: 60px;
}

.porfolio_lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.bg-\[\#B63339\] {
    --tw-bg-opacity: 1;
    background-color: rgb(182 51 57 / var(--tw-bg-opacity, 1));
}

.w-\[6\%\] {
    width: 6%;
}

.h-\[1px\] {
    height: 1px;
}

.bg-\[\#323864\] {
    --tw-bg-opacity: 1;
    background-color: rgb(50 56 100 / var(--tw-bg-opacity, 1));
}

.w-\[13\%\] {
    width: 13%;
}

.h-\[1px\] {
    height: 1px;
}

.mt-1 {
    margin-top: .25rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.bg-\[\#B63339\] {
    --tw-bg-opacity: 1;
    background-color: rgb(182 51 57 / var(--tw-bg-opacity, 1));
}

.w-\[6\%\] {
    width: 6%;
}

.h-\[1px\] {
    height: 1px;
}

.mt-\[3px\] {
    margin-top: 3px;
}

.portfolio_container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1199px) {
    .portfolio_container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .portfolio_container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 568px) {
    .portfolio_container {
        gap: 5px;
    }
}

.image-box {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.image-box img {
    width: 85%;
    object-fit: cover;
    margin: 20px;
    overflow: hidden;
    display: block;
    transition: 0.5s;
}

@media (max-width: 768px) {

    /* .image-box img {
        width: 70%;
    } */
}

@media (max-width: 568px) {
    .image-box img {
        width: 65%;
    }

}

@media (max-width: 468px) {
    .image-box img {
        width: 50%;
    }
}

.image-box:hover img {
    filter: blur(15px);
    /* turns grey */
    transform: scale(1.1);
    /* zoom-in effect */

}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    /* transition: 0.5s; */
    text-align: center;
    width: 80%;
}

.overlay-text p {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 8px;
    color: rgb(36, 33, 33)
}

.image-box:hover .overlay-text {
    opacity: 1;
    /* text appears */
}

.overlay-text .img_box_btn {
    border: 1px solid rgb(11, 6, 87);
    border-radius: 10px;
    padding: 5px;
    color: rgb(77, 13, 226);
}

.overlay-text .img_box_btn:hover {
    background: #e3bdf5;
}

@media (max-width: 768px) {
    .overlay-text {
        left: 40%;
    }

    .overlay-text p {
        display: none;
    }
}

@media (max-width: 468px) {
    .overlay-text {
        left: 30%;
    }
}