/* Gallery Image Squares */
.portfolio-block-four .image-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
}

.portfolio-block-four .image-box .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.portfolio-block-four .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image to fill square, centered */
    object-position: center center;
}

/* Ensure hover effect covers the entire square */
.portfolio-block-four .image-box .hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hide shopping cart for gallery site */
.cart-btn {
    display: none !important;
}

/* Hide placeholder portfolio and recipes sections on homepage only */
body.home .portfolio-section,
body.home .recipes-section {
    display: none !important;
}

/* Language Toggle Buttons */
.language-toggle {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lang-btn img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Page Title Background Colors */
.page-gallery .page-title {
    background-color: #5fcac7 !important;
}

.page-recipes .page-title {
    background-color: #da9abe !important;
}

.page-contact .page-title {
    background-color: #f5a962 !important;
}

/* =============================================
   SIMPLE MOBILE NAVIGATION - Self-contained
   ============================================= */

/* Hide simple mobile nav on desktop */
.simple-mobile-header,
.simple-mobile-menu,
.simple-mobile-overlay {
    display: none;
}

/* Show on mobile screens */
@media (max-width: 1023px) {
    /* Hide the template's desktop navigation */
    .main-header .main-box,
    .main-header .menu_wave,
    .main-header .sticky-header,
    .mobile-header,
    .mobile-menu {
        display: none !important;
    }

    /* Simple Mobile Header */
    .simple-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: relative;
        z-index: 999;
    }

    .simple-mobile-logo img {
        height: 40px;
        width: auto;
    }

    /* Hamburger Button */
    .simple-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .simple-hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #5fcac7;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .simple-hamburger:hover span {
        background-color: #da9abe;
    }

    /* Mobile Menu Overlay */
    .simple-mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .simple-mobile-overlay.active {
        display: block;
    }

    /* Mobile Menu Panel */
    .simple-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 1001;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }

    .simple-mobile-menu.active {
        right: 0;
    }

    .simple-mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .simple-close-btn {
        font-size: 32px;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        line-height: 1;
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .simple-close-btn:hover {
        color: #5fcac7;
    }

    /* Navigation Links */
    .simple-mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
    }

    .simple-mobile-nav a {
        display: block;
        padding: 15px 25px;
        font-size: 18px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.2s ease;
    }

    .simple-mobile-nav a:hover {
        background: #f9f9f9;
        color: #5fcac7;
        padding-left: 30px;
    }

    .simple-mobile-nav a.active {
        color: #5fcac7;
        font-weight: 600;
        border-left: 4px solid #5fcac7;
    }
}
