/*
Theme Name: Craft Beer Market
Theme URI: https://www.craftbeermarket.jp/
Author: CRAFT BEER MARKET
Author URI: https://www.craftbeermarket.jp/
Description: Craft Beer Market Official WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: craftbeermarket
*/

/* WordPress Core Support Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Frontend Layout Enhancements & Fallback Styles (Theme style.css)
   ========================================================================== */

/* 1. NEWS Feed Slider: Ensure correct flex layout and prevent vertical stacking before slick initializes */
#news .feed:not(.slick-initialized) {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
}

#news .feed:not(.slick-initialized) .news-item {
    flex: 0 0 25%;
    max-width: 25%;
    box-sizing: border-box;
}

@media screen and (max-width: 767px) {
    #news .feed:not(.slick-initialized) {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #news .feed:not(.slick-initialized) .news-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   2. WordPress Admin Bar Compatibility
   ========================================================================== */
@media screen and (min-width: 783px) {
    body.admin-bar .ft-fixed {
        top: 32px !important;
    }
    body.admin-bar .store-container {
        top: 102px !important;
        height: calc(100vh - 102px) !important;
    }
    body.admin-bar .menu-toggle {
        top: 32px !important;
        height: calc(100vh - 32px) !important;
    }
}

@media screen and (max-width: 782px) {
    #wpadminbar {
        display: none !important;
    }
    html {
        margin-top: 0 !important;
    }
    * html body {
        margin-top: 0 !important;
    }
}
