﻿/* Style for the portfolio image box */
.featured-imagebox-portfolio.style3 {
    position: relative;
    cursor: pointer;
    max-width: 610px;
    margin: 10px;
}

.featured-thumbnail {
    overflow: hidden;
    min-height: 370px;
	width: 100%;
}

    .featured-thumbnail img {
        width: 100%;
        height: 370px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

        .featured-thumbnail img:hover {
            transform: scale(1.05);
        }

/* Modal styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* Responsive adjustments */
@media screen and (max-width: 700px) {
    .modal-content {
        width: 90%;
    }
}
