#main{
    display: none;
}

.main-wrapper, .content-wrapper{
    background: transparent;
}

.site-main {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

#main-container instacart-collection{
    display: block;
}

/* Shown in place of a carousel until it loads, or if the Instacart widgets can't load. Sized like a loaded carousel. */
.collection-fallback{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    background-color: #f2f3f1;
    border: 2px dashed #c7ccc2;
    border-radius: 10px;
    box-sizing: border-box;
}

.collection-fallback span{
    padding: 12px 24px;
    font-family: 'Nexa', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #5f6c50;
    border-radius: 30px;
    transition: background-color .3s;
}

.collection-fallback:hover span{
    background-color: #4a543e;
}

.collection-fallback i{
    margin-left: 6px;
}

.department-products .collection-fallback{
    height: 100%;
}

.weekly-ad .collection-fallback{
    min-height: 410px;
}

.section-title,
.info-container > .info h2{
    font-family: 'Veneer', sans-serif;
    font-size: 48px;
    line-height: normal;
    letter-spacing: 2px;
    color: #5f6c50;
    text-transform: uppercase;
    margin: 0;
}

/*************
 * Weekly Ad *
 *************/

.weekly-ad{
    margin-top: 10px;
}

.weekly-ad .section-heading{
    text-align: center;
    margin-bottom: 10px;
}

.snap-link{
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;
    font-family: 'Nexa', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #2f2f2f;
    text-decoration: none;
    background-color: #f2f3f1;
    border: 1px solid #d7dad3;
    border-radius: 50px;
}

.snap-link span{
    margin-left: 6px;
    color: #5f6c50;
    text-decoration: underline;
}

.snap-link:hover span{
    color: #4a543e;
}

/********************
 * Department strip *
 ********************/

.department-strip{
    margin: 30px 0;
    background-color: #f4f4f1;
    border-top: 1px solid #e6e6e1;
    border-bottom: 1px solid #e6e6e1;
}

.department-strip ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto !important;
    padding: 12px 0;
    list-style: none;
    font-family: 'Nexa', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .5px;
    color: #4a4a4a;
}

.department-strip li{
    margin: 0;
}

.department-strip li + li:before{
    content: '\2022';
    margin: 0 10px;
    color: #5f6c50;
}

/***************
 * Departments *
 ***************/

.department{
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    grid-template-areas:
        "heading link"
        "image products";
    gap: 16px 24px;
    align-items: start;
    padding: 20px 24px 24px;
    background-color: white;
    border: 1px solid #e6e6e1;
    border-radius: 12px;
    box-shadow: 0px 4px 20px 0px #0000000d;
    box-sizing: border-box;
}

.department.no-image{
    grid-template-areas:
        "heading link"
        "products products";
}

.department-heading{
    grid-area: heading;
}

.department-heading h2{
    margin: 0;
    font-family: 'Nexa', sans-serif;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    color: #2f2f2f;
}

.department-title-mobile{
    display: none;
}

.department-heading p{
    margin: 4px 0 0;
    font-family: 'Nexa', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
}

.department-link{
    grid-area: link;
    justify-self: end;
    align-self: center;
    font-family: 'Nexa', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #5f6c50;
    text-decoration: none;
}

.department-link:hover{
    color: #4a543e;
    text-decoration: underline;
}

.department-link i{
    margin-left: 6px;
    transition: transform .3s;
}

.department-link:hover i{
    transform: translateX(4px);
}

.department-image{
    grid-area: image;
    align-self: stretch;
    position: relative;
    min-height: 280px;
    border-radius: 10px;
    overflow: hidden;
}

.department-image img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keeps the butcher in frame and the logo in the photo's corner from being cut in half */
#department-meat .department-image img{
    object-position: 70% 30%;
}

.department-products{
    grid-area: products;
    align-self: stretch;
    min-width: 0;
}

/*********
 * Tiles *
 *********/

.tiles{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
    gap: 20px;
    margin: 60px auto;
}

.tile{
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}

.tile:hover,
.tile:focus{
    transform: translateY(-6px);
    box-shadow: 0px 10px 30px 0px #00000040;
}

.tiles .tile:focus{
    outline: 2px solid #0969da;
    outline-offset: 4px;
}

.tile img{
    display: block;
    width: 100%;
    height: 100%;
}

/**************
 * Store video *
 **************/

.store-video{
    position: relative;
    display: flex;
    align-items: center;
    max-height: 560px;
    margin: 60px auto;
    overflow: hidden;
}

.store-video video{
    display: block;
    width: 100%;
    object-fit: cover;
}

.video-toggle{
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: white;
    font-size: 16px;
    background-color: #000000a0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.video-toggle:hover{
    background-color: #000000d0;
}

.video-toggle:focus{
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

/*********************
 * Founded by Family *
 *********************/

.info-container{
    width: 100%;
    display: flex;
    justify-content: center;
}

.info-container > .info{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.info-container > .info img{
    max-width: 45%;
    max-height: 350px;
    border: solid 5px white;
    box-shadow: 0px 10px 30px 0px #00000040;
}

.info-container > .info .text{
    padding: 10px;
}

.info-container > .info h2{
    margin-bottom: 20px;
    text-align: center;
}

.info-container > .info p{
    font-family: 'Nexa', sans-serif;
    font-size: 16px;
    line-height: 150%;
    font-weight: normal;
    color: #282828;
    margin-bottom: 0px;
}

.wood{
    background: url("../images/wood-7.png") center center;
    background-size: 50%;
}

.line{
    width: 80%;
    max-width: 800px;
    height: 8px;
    margin: 50px auto;
}

@media screen and (max-width: 800px) {
    .department{
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "image image"
            "heading link"
            "products products";
    }
    .department.no-image{
        grid-template-areas:
            "heading link"
            "products products";
    }
    .department-image{
        min-height: 220px;
    }
    .info-container > .info{
        flex-direction: column;
        margin: 10px;
    }
    .info-container > .info img{
        max-width: 100%;
    }
    .tiles{
        gap: 20px;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 600px) {
    .section-title,
    .info-container > .info h2{
        font-size: 36px;
    }
    .weekly-ad,
    .department{
        padding: 0 16px;
        box-sizing: border-box;
    }
    .weekly-ad .section-heading{
        text-align: left;
    }
    .department-strip{
        display: none;
    }
    .department{
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "image"
            "heading"
            "products";
        gap: 12px;
        margin-top: 30px;
        background-color: transparent;
        border: none;
        border-radius: 0px;
        box-shadow: none;
    }
    .department.no-image{
        grid-template-areas:
            "heading"
            "products";
    }
    .department-image{
        min-height: 200px;
        border-radius: 8px;
    }
    .collection-fallback,
    .weekly-ad .collection-fallback{
        min-height: 340px;
    }
    .department-title{
        display: none;
    }
    .department-title-mobile{
        display: inline;
    }
    .department-heading h2{
        font-family: 'Veneer', sans-serif;
        font-size: 28px;
        font-weight: normal;
        letter-spacing: 1px;
        color: #5f6c50;
    }
    .department-heading p,
    .department-link{
        display: none;
    }
    .tiles{
        gap: 12px;
        padding: 0 16px;
        margin: 40px auto;
    }
    .tile{
        border-radius: 50%;
    }
    .store-video{
        margin: 40px auto;
    }
}
