/* ========================================
   MITEE Maker Directory - Maker Profile
   ======================================== */

/* Main Maker profile */
.mitee-maker-profile {
    max-width: 1000px;
    margin: 0 auto;
}

/* Featured maker image/logo */
.mitee-maker-featured-image {
    margin: 0 0 30px;
    text-align: center;
}

.mitee-maker-featured-image img {
    display: block;
    width: auto;
    max-width: 450px;
    max-height: 400px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Profile sections */
.mitee-maker-section {
    margin: 32px 0;
}

.mitee-maker-section h2 {
    margin-bottom: 12px;
}

/* Category and availability badges */
.mitee-maker-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}

.mitee-maker-tag {
    display: inline-block;
    margin: 0 4px 8px;
    padding: 6px 12px;
    border: 1px solid #777;
    border-radius: 18px;
    line-height: 1.2;
}

/* Website / store / social buttons */
.mitee-maker-links {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -6px;
}

.mitee-maker-links a {
    display: inline-block;
    margin: 0 6px 12px;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
}

/* Made @ Monumental Impact */
.mitee-made-at-mitee {
    margin-top: 35px;
    padding: 14px 18px;
    border-left: 4px solid #333;
    font-size: 1.05em;
}

/* Mobile */
@media (max-width: 600px) {

    .mitee-maker-featured-image img {
        max-width: 100%;
        max-height: 300px;
    }

}

/* ========================================
   Maker pages - remove theme post elements
   ======================================== */

/* Hide the theme's featured image on Maker pages.
   Our Maker Profile displays its own image. */
.single-mitee_maker .entry-thumbnail,
.single-mitee_maker .post-thumbnail {
    display: none;
}

/* Hide theme post metadata on Maker profiles */
.single-mitee_maker .entry-meta,
.single-mitee_maker .post-meta {
    display: none;
}

/* Maker introduction - image + about */

.mitee-maker-intro {
    display: flex;
    align-items: center;
    margin: 20px 0 35px;
}

.mitee-maker-intro .mitee-maker-featured-image {
    flex: 0 0 38%;
    margin: 0;
    text-align: center;
}

.mitee-maker-intro .mitee-maker-featured-image {
    flex: 0 0 38%;
    margin: 0 45px 0 0;
    text-align: center;
}

.mitee-maker-intro .mitee-maker-featured-image img {
    width: 100%;
    max-width: 350px;
    max-height: 350px;
    height: auto;
    object-fit: contain;
}

.mitee-maker-about {
    flex: 1;
}

.mitee-maker-about h2 {
    margin-top: 0;
}

/* Stack image and About on smaller screens */

@media (max-width: 700px) {

    .mitee-maker-intro {
        display: block;
    }

    .mitee-maker-intro .mitee-maker-featured-image {
        margin: 0 0 25px 0;
    }

    .mitee-maker-intro .mitee-maker-featured-image img {
        max-width: 300px;
    }
}

/* ========================================
   MITEE Maker Directory - Card Grid
   ======================================== */

/* Directory grid */
.mitee-maker-directory {
    display: flex;
    flex-wrap: wrap;
    margin: 30px -15px 0;
}

/* Individual Maker card */
.mitee-maker-card {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
    padding: 22px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

/* Image area */
.mitee-maker-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    margin-bottom: 20px;
    text-decoration: none;
}

.mitee-maker-card-photo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

/* Placeholder when Maker has no image */
.mitee-maker-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    background: #f3f3f3;
    color: #777;
    font-size: 1.2em;
}

/* Maker name */
.mitee-maker-card-title {
    margin: 0 0 12px;
    font-size: 1.4em;
    line-height: 1.25;
}

.mitee-maker-card-title a {
    text-decoration: none;
}

/* What I Make */
.mitee-maker-card-categories {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -3px 10px;
}

.mitee-maker-card-category {
    display: inline-block;
		margin: 0 3px 6px;
    padding: 5px 10px;
    border: 1px solid #888;
    border-radius: 16px;
    font-size: 0.85em;
    line-height: 1.2;
}

/* Short Maker description */
.mitee-maker-card-description {
    margin-bottom: 16px;
}

.mitee-maker-card-description p {
    margin: 0;
}

/* Custom Requests badge */
.mitee-maker-custom-requests {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 18px;
    padding: 5px 10px;
    border: 1px solid #555;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 600;
}

/* View Maker */
.mitee-maker-card-action {
    margin-top: auto;
    padding-top: 8px;
}

.mitee-maker-card-action a {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
}

/* Tablet */
@media (max-width: 900px) {

    .mitee-maker-card {
        width: calc(50% - 30px);
    }
}

/* Mobile */
@media (max-width: 600px) {

    .mitee-maker-directory {
        display: block;
				margin: 30px 0 0;
    }

    .mitee-maker-card {
        width: 100%;
        margin: 0 0 20px;
    }

    .mitee-maker-card-image {
        height: 200px;
    }

    .mitee-maker-card-photo {
        max-height: 190px;
    }
}

/* Hide SiteOrigin post taxonomy footer on Maker profiles */
.single-mitee_maker .entry-categories,
.single-mitee_maker .entry-taxonomy,
.single-mitee_maker .entry-footer {
    display: none !important;
}

/* Maker Directory submission form */
.mitee-maker-submission textarea.mitee-short-text {
    height: 90px;
}

.mitee-maker-submission textarea.mitee-about-text {
    height: 160px;
}

.mitee-maker-submission textarea.mitee-products-text {
    height: 130px;
}

.mitee-maker-submission input[type="text"],
.mitee-maker-submission input[type="email"],
.mitee-maker-submission input[type="url"],
.mitee-maker-submission textarea {
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}

.mitee-maker-submission h3 {
    margin-top: 35px;
}

/* Maker Directory - Project & Product Photos */

.mitee-maker-gallery-section {
    margin-top: 30px;
}

.mitee-maker-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.mitee-maker-gallery-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 16px);
    height: 220px;
    margin: 0 8px 16px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f7f7f7;
    box-sizing: border-box;
}

.mitee-maker-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 700px) {

    .mitee-maker-gallery-item {
        width: calc(50% - 16px);
        height: 180px;
    }
}

@media (max-width: 450px) {

    .mitee-maker-gallery {
        display: block;
        margin: 0;
    }

    .mitee-maker-gallery-item {
        width: 100%;
        height: auto;
        margin: 0 0 15px;
    }

    .mitee-maker-gallery-image {
        height: auto;
    }
}

/* =========================================
   MITEE Maker Directory Submission Form
   ========================================= */

.mitee-maker-submission {
    max-width: 800px;
    margin: 30px 0;
}

/* Section headings */
.mitee-maker-submission h3 {
    margin: 40px 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 1.35em;
}

/* Don't add excessive space above first heading */
.mitee-maker-submission h3:first-child {
    margin-top: 0;
}

/* Field spacing */
.mitee-maker-submission p {
    margin: 0 0 20px;
}

/* Text, email and URL fields */
.mitee-maker-submission input[type="text"],
.mitee-maker-submission input[type="email"],
.mitee-maker-submission input[type="url"],
.mitee-maker-submission textarea {
    width: 100%;
    max-width: 700px;
    padding: 10px 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Textareas */
.mitee-maker-submission textarea {
    line-height: 1.5;
    resize: vertical;
}

/* Help text */
.mitee-maker-submission .form-note {
    max-width: 700px;
    margin-top: -10px;
    color: #666;
    font-size: .9em;
    line-height: 1.45;
}

/* Checkbox choices */
.mitee-maker-submission .wpcf7-checkbox {
    display: block;
    margin-top: 8px;
}

.mitee-maker-submission .wpcf7-list-item {
    display: inline-block;
    margin: 0 22px 10px 0;
}

.mitee-maker-submission .wpcf7-list-item input {
    margin-right: 5px;
}

/* File uploads */
.mitee-maker-submission input[type="file"] {
    display: block;
    max-width: 100%;
    margin: 8px 0 14px;
}

/* Acceptance checkbox */
.mitee-maker-submission .wpcf7-acceptance .wpcf7-list-item {
    display: block;
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

/* Submit button */
.mitee-maker-submission input[type="submit"] {
    padding: 11px 22px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

/* CF7 validation errors */
.mitee-maker-submission .wpcf7-not-valid-tip {
    margin-top: 5px;
}

/* CF7 final response */
.mitee-maker-submission .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 14px 16px;
}

/* Mobile */
@media (max-width: 600px) {

    .mitee-maker-submission {
        margin-top: 20px;
    }

    .mitee-maker-submission h3 {
        margin-top: 32px;
    }

    .mitee-maker-submission .wpcf7-list-item {
        display: block;
        margin: 0 0 10px;
    }
}