/*
Theme Name: Mayfield Band
Theme URI: https://mayfieldband.co.uk
Author: Mayfield Band
Description: Official theme for the Mayfield Band website
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: mayfield-band
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #E8E8E8;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
#wrapper {
    background: #ffffff;
    margin-left: auto;
    margin-right: auto;
    min-width: 320px;
    max-width: 1050px;
}

/* =============================================
   HEADER LOGO
   ============================================= */
#headerLogo {
    margin: 0;
    padding: 0;
}

#headerLogo img {
    width: 100%;
    display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
#header {
    padding: 0;
    background-color: #990000;
    border: none;
}

#menu_bar_top {
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu_bar_top ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu_bar_top li {
    margin: 0;
    padding: 0;
}

#menu_bar_top a,
#menu_bar_top .menu_top {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #ffffff;
}

#menu_bar_top a:hover,
#menu_bar_top .menu_top:hover {
    background: #640b0f;
    color: #ffffff;
}

#menu_bar_top .current-menu-item > a,
#menu_bar_top .current_page_item > a,
#menu_bar_top .Menu_Selected {
    background: #640b0f;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: #640b0f;
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* =============================================
   CONTENT WRAPPER
   ============================================= */
#content_wrapper {
    margin-left: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

#content_wrapper::after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    padding-top: 10px;
    padding-right: 6px;
    padding-bottom: 6px;
    text-align: right;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    border-top: 1px solid #E8E8E8;
    clear: both;
}

/* =============================================
   STORY / CONTENT BLOCKS
   ============================================= */
.Story_wrapper {
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 15px;
}

.Story_wrapper_float {
    padding-left: 10%;
    padding-top: 20px;
    padding-bottom: 15px;
    float: left;
}

.Story_wrapper_video_float {
    padding-left: 10%;
    padding-top: 20px;
    padding-bottom: 15px;
    float: left;
    width: 95%;
}

.SubHeading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 10px;
}

.StoryText {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
}

.StoryImage {
    max-width: 180px;
    max-height: 160px;
    padding-left: 5%;
    padding-top: 10px;
}

/* =============================================
   HOME PAGE
   ============================================= */
.HomeTable {
    width: 100%;
    border-collapse: collapse;
}

.HomeTable td {
    vertical-align: top;
}

.HomeTable td:first-child {
    width: 75%;
}

.HomeTable td:last-child {
    width: 25%;
    padding-right: 10px;
}

/* Image Slider */
.ImageSliderWrapper {
    padding-left: 25%;
    padding-top: 10px;
}

/* Slick slider overrides */
.home-slider {
    max-width: 400px;
    margin: 10px auto 0 auto;
}

.home-slider img {
    max-width: 400px;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
}

/* Facebook */
.facebook-link {
    padding-right: 10px;
    padding-left: 20px;
    padding-top: 20px;
}

.facebook-link img {
    height: 50px;
    width: auto;
}

/* Newsletters */
.NewsLetters {
    padding-top: 10px;
}

.NewsLettersWrapper {
    overflow-y: scroll;
    overflow-x: hidden;
    height: 400px;
}

.NewsLetter {
    max-width: 140px;
    padding-right: 10px;
    padding-bottom: 16px;
    text-align: center;
}

.NewsLetterLinkText {
    text-decoration: none;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

.NewsLetterImage {
    width: 100%;
    border: 1px solid darkgrey;
}

.NewsLetterDescription {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    display: block;
    width: 100%;
}

/* =============================================
   ENGAGEMENTS / EVENTS TABLE
   ============================================= */
.EngagementsTable {
    margin: 5px 0 10px 0;
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.EngagementsTable td {
    padding: 6px 18px 16px 12px;
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    vertical-align: top;
}

.EngagementsTable th {
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0 4px 10px;
    text-align: left;
}

.engagements-month-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0 4px 0;
}

/* =============================================
   VIDEO PAGE
   ============================================= */
.VideoWrapper {
    padding-top: 8px;
    padding-left: 20px;
    min-width: 300px;
    max-width: 400px;
}

.VideoWrapper iframe {
    width: 100%;
    height: 250px;
}

/* =============================================
   PHOTOS PAGE
   ============================================= */
.photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
}

.photo-grid a img {
    max-width: 180px;
    max-height: 160px;
    object-fit: cover;
    padding-top: 10px;
}

/* =============================================
   MUSIC PAGE
   ============================================= */
.MusicTable {
    width: 100%;
    border-collapse: collapse;
}

.MusicTable td {
    vertical-align: top;
    width: 50%;
}

.MusicWrapper {
    padding-left: 20px;
    padding-right: 20px;
    height: 320px;
    width: 100%;
    max-width: 350px;
    border: none;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

#Map {
    margin-left: 10px;
    flex: 1;
    min-width: 280px;
}

#Map iframe {
    width: 100%;
    max-width: 500px;
    height: 400px;
}

/* =============================================
   WORDPRESS GUTENBERG BLOCK RESETS
   ============================================= */
.wp-block-image img {
    height: auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #menu_bar_top ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    #menu_bar_top ul.toggled {
        display: flex;
    }

    #menu_bar_top li {
        width: 100%;
    }

    .HomeTable,
    .HomeTable tbody,
    .HomeTable tr,
    .HomeTable td {
        display: block;
        width: 100% !important;
    }

    .MusicTable,
    .MusicTable tbody,
    .MusicTable tr,
    .MusicTable td {
        display: block;
        width: 100% !important;
    }

    .Story_wrapper_float,
    .Story_wrapper_video_float {
        float: none;
        padding-left: 10px;
        width: 100%;
    }

    #Map iframe {
        width: 100%;
        height: 300px;
    }

    .contact-layout {
        flex-direction: column;
    }
}
