/* Mobile Logo Adjustments - Bootstrap Breakpoints (Mobile First) */

/* X-Small devices (portrait phones, less than 576px) - Default */

@media (max-width: 576px) {
    
}

.wp-block-site-logo {
    max-width: 85px;
}

.wp-block-site-logo img {
    width: 100%;
    height: auto;
}

.wp-block-post-title {
    font-size: 1.25rem !important;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .wp-block-site-logo {
        max-width: 140px;
    }

    .wp-block-post-title {
        font-size: 1.5rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .wp-block-site-logo {
        max-width: 170px;
    }

    .wp-block-post-title {
        font-size: 1.6rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .wp-block-site-logo {
        max-width: none; /* Remove restriction, use theme default */
    }

    .wp-block-post-title {
        font-size: inherit !important; /* Use theme default */
    }
}

.wp-child-theme-chefhilary .wp-site-blocks {
    padding: unset;
}

footer {
    margin-block-start: unset;
}

/* Main element background - mobile first (1rem default) */
main {
    margin-top: unset;
    padding: 0.25rem 1rem;
}

/* Medium screens (1.5rem) */
@media (min-width: 768px) {
    main {
        padding: 0.25rem 1.5rem;
    }
}

/* Extra large desktop (3rem) */
@media (min-width: 1200px) {
    main {
        padding: 0.25rem 3rem;
    }
}

/* Inner content areas white background */
.entry-content,
.wp-block-post-content {
    background-color: white;
    padding: 2rem 0;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
    margin-left: -.5rem
}

/* Featured Image */
figure.wp-block-post-featured-image {
    margin-top: unset !important;
}


/* Parallax Featured Image Effect - Image scrolls within container */

/* Container styling - fixed height with hidden overflow */
.wp-block-post-featured-image {
    position: relative;
    height: 300px !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

/* Image positioning for parallax effect */
.wp-block-post-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 200%; /* Makes image taller than container so there's room to scroll */
    object-fit: cover;
    will-change: transform;
    transform: translateY(0);
}

/* Keep overlay in place */
.wp-block-post-featured-image__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none; /* Allows interaction with content below */
}

/* Ensure the image stays behind the overlay */
.wp-block-post-featured-image img {
    z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-post-featured-image {
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .wp-block-post-featured-image {
        height: 200px !important;
    }
}
