/* Portfolio Zoom and Modal Styles */

/* Full-width portfolio layout for Naomi Fitness */
.full-width-portfolio {
    width: 100%;
    margin-bottom: 60px;
}

.portfolio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.portfolio-col {
    flex: 1;
    min-width: 300px;
}

.portfolio-col .portfolio-item {
    width: 100%;
    height: 400px;
}

/* Modal styling for image zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    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;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Cursor style for zoomable images */
.zoomable-image {
    cursor: pointer;
}

/* Animation for modal */
.modal-content, #modalCaption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    .portfolio-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 100%;
    }
}
