/**
 * Portfolio Popup Styles
 *
 * @package Fotoshopcu Core
 */

/* Close button for portfolio popup */
.portfolio-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #FFCC00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.3s ease 0.5s forwards;
}

.portfolio-popup-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* The X icon inside the button */
.portfolio-popup-close::before,
.portfolio-popup-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
}

.portfolio-popup-close::before {
    transform: rotate(45deg);
}

.portfolio-popup-close::after {
    transform: rotate(-45deg);
}

/* Animation for the close button */
@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Make single portfolio look more like a popup */
.portfolio-single.is-popup {
    position: relative;
}

/* Add a subtle overlay effect to the page body when viewing a popup */
body.viewing-portfolio-popup {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive styles */
@media (max-width: 768px) {
    .portfolio-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .portfolio-popup-close::before,
    .portfolio-popup-close::after {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .portfolio-popup-close {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
    }
    
    .portfolio-popup-close::before,
    .portfolio-popup-close::after {
        width: 15px;
    }
} 