/* -------------------------------------------------------
   Container
------------------------------------------------------- */
.fh-mb-wrapper {
    margin: 96px 32px;
    font-family: inherit;
}

.fh-mb-board-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.fh-mb-board-menu {
    position: relative;
}

.fh-mb-board-menu-toggle {
    border: 0;
    background: transparent;
    padding: 4px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fh-mb-board-single-menu-toggle {
    border: 0;
    background: transparent;
    padding: 4px 6px;
    gap: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.fh-mb-board-menu-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #111;
    margin: 2px 0;
}


.fh-mb-board-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    min-width: 150px;
    background: #fff;
    border: 1px solid #111;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    padding: 4px 0;
    display: none;
    z-index: 10;
}

.fh-mb-board-menu.fh-mb-board-menu--open .fh-mb-board-menu-dropdown {
    display: block;
}

.fh-mb-board-menu-item {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 10px 20px;
    font-size: 16px;
    font-family: 'Circular', 'sans-serif';
    text-transform: uppercase;
    cursor: pointer;
}

.fh-mb-board-menu-item:hover {
    background: #f5f5f5;
}

.fh-mb-board-menu-delete,
.fh-mb-board-menu-item.fh-mb-board-menu-delete {
    color: #b00020;
}

/* -------------------------------------------------------
   Canvas base (single-board items)
------------------------------------------------------- */
.fh-mb-canvas {
}

.fh-mb-inner {
    text-align: center;
}

/* Board title used inside canvas view (optional) */
.fh-mb-title {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 2.5rem;
}

/* Empty state */
.fh-mb-empty {
    font-size: 32px;
    color: #777;
    margin: 0 0 300px;
}

/* Horizontal row of cards */
.fh-mb-row {
    display: flex; flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    overflow: visible;
}

/* Card for each item on a board */
.fh-mb-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.fh-mb-item-card .fh-mb-item-card--note {
    width: 350px;
}

/* Make the "image" area behave nicely for note tiles */
.fh-mb-item-card--note .fh-mb-item-img-wrap {
    width: 350px;
    height: 350px;
}

/* The note tile itself – a clean square */
.fh-mb-note-tile {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid black;
    background: #f9f9f9;
    padding: 32px;
    text-align: left;
    cursor: pointer;
}

/* The text that acts as the cover */
.fh-mb-note-tile-text {
    font-size: 25px;
    line-height: 1.4;
    overflow: hidden;

    /* Clamp to a few lines so it stays neat */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

.fh-mb-item-img-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Image area */
.fh-mb-item-img-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 350px;
    background: #f9f9f9;
}

.fh-mb-item-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

/* Black bar that slides up on hover */
.fh-mb-item-hover-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    background: #000;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0px;
    font-family: 'Circular', 'sans-serif';
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.fh-mb-item-img-wrap:hover .fh-mb-item-hover-bar {
    transform: translateY(0);
}

.fh-mb-canvas--readonly .fh-mb-item-hover-bar {
    display: none !important;
}

/* Center "VIEW PRODUCT" + "DELETE" */
.fh-mb-item-hover-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* View product + delete inside the bar */
.fh-mb-view-link,
.fh-mb-note-edit-link,
.fh-mb-remove {
    background: none;
    border: 0;
    padding: 0;
    color: #fff;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.fh-mb-view-link:hover,
.fh-mb-remove:hover {
    text-decoration: underline;
}

/* override old absolute positioning of delete button */
.fh-mb-remove {
    position: static;
    opacity: 1;
}


/* Title under image */
.fh-mb-item-meta {
    width: 100%;
    text-align: left;
    margin-top: 15px;
}


.fh-mb-item-title {
    font-size: 22px;
    font-weight: 400;
    text-decoration: none;
    color: #111;
}

.fh-mb-item-title:hover {
    text-decoration: underline;
}

.fh-mb-chevron {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
}

.fh-mb-chevron:hover {
    background: none;
}

.fh-mb-chevron.is-disabled {
    opacity: 0.35;
    cursor: default;
}


/* -------------------------------------------------------
   Overview page: /moodboard
------------------------------------------------------- */
.article .fh-mb-page-title {
    font-size: 40px;
    font-weight: 400;
}

.fh-mb-overview-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 20px;
    margin: 100px 0 50px;
    justify-content: space-between;
}

/* Generic link-style button (also reused in board header) */
.fh-mb-link-btn {
    border: 0;
    background: transparent;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: 'Circular', 'sans-serif';
}

.fh-mb-link-btn:hover {
    text-decoration: underline;
}

.fh-mb-sort {
    display: flex;
    align-items: center;
    font-family: 'Circular', 'sans-serif';
}

#fh-mb-sort-select {
    border: 0;
    background: transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Grid of moodboard cards */
.fh-mb-board-grid {
    display: flex; flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    overflow: visible;
}

/* Board card */
.fh-mb-board-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}
.fh-mb-board-placeholder-card {
    width: 280px;
}


/* Preview area on overview cards */
.fh-mb-board-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 320px;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}
.fh-mb-board-placeholder-preview {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 320px;
    overflow: hidden;
    text-decoration: none;
    background: black;
    padding: 50px;
}

.fh-mb-board-preview img {
    height: 100%;
    width: auto;
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}

/* Board meta bottom area */
.fh-mb-board-meta {
    padding: 10px 0;
    text-align: left;
}

.fh-mb-board-title {
    font-size: 25px;
    font-weight: 400;
    color: #111;
    text-decoration: underline;
}

.fh-mb-board-title:hover {
    text-decoration: none;
}

.fh-mb-board-date {
    font-size: 16px;
    font-family: 'Circular', 'sans-serif';
}

/* -------------------------------------------------------
   Single board header (/moodboard/{id})
------------------------------------------------------- */
.fh-mb-board-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.fh-mb-back-link {
    font-family: 'Circular', 'sans-serif';
    font-size: 25px;
    text-transform: uppercase;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-decoration: none;
}

.fh-mb-back-link::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom: 6px;
    height:2px;
    background: currentColor;
    transform: scaleX(0);
}

.fh-mb-back-link:hover::after{
    transform: scaleX(1);
}

.fh-mb-back-icon{
    width:25px;
    height:25px;
    display:block;
}

.fh-mb-board-header-main{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.fh-mb-board-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 100px 0 50px;
}

.fh-mb-board-actions {
    display: flex;
    align-items: center;
    font-size: 16px;
}

/* Make the toggle look like an outlined icon button */
.fh-mb-board-single-menu-toggle.fh-mb-board-single-menu-toggle--icon{
    width: 50px;
    height: 60px;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
}

.fh-mb-board-single-menu-toggle.fh-mb-board-single-menu-toggle--icon:hover{
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.06);
    transform: translateY(-1px);
}

.fh-mb-board-single-menu-toggle.fh-mb-board-single-menu-toggle--icon i{
    font-size: 16px;
    line-height: 1;
}

/* Optional: if the dot spans still exist somewhere, hide them */
.fh-mb-board-single-menu-toggle--icon .fh-mb-board-single-menu-dot{
    display:none !important;
}


.fh-mb-notes-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 25px;
    font-family: 'Circular', 'sans-serif';
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.fh-mb-notes-trigger:hover {
    text-decoration: underline;
}


.fh-mb-link-btn--danger {
    color: #b00020;
}

.fh-mb-email-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    margin-top: 7rem;
}
.fh-mb-email-bar--hidden {
    display: none;
}
.fh-mb-share-with-fh {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fh-mb-share-with-fh input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.fh-mb-email-btn {
    padding: 15px 35px;
    border: 1px solid #000;
    background: #fff;
    text-transform: uppercase;
    font-size: 16px;
    font-family: 'Circular', 'sans-serif';
    transition: all 0.2s ease;
}
.fh-mb-email-btn:hover{
    background: black;
    color: white;
    text-decoration: none;
}

/* Hide Gravity Forms AJAX spinner (next to submit button) */
.gform_wrapper #gform_ajax_spinner_39 {
    display: none;
}

/* -------------------------------------------------------
   Mobile View starts here
------------------------------------------------------- */
@media (max-width: 768px) {
    .fh-mb-wrapper {
        margin: 2.5rem 16px 0;
    }

    .fh-mb-row {
        grid-template-columns: 1fr;
    }

    .fh-mb-overview-meta{
        flex-direction: column;
        align-items: flex-start;
    }

    .fh-mb-link-btn{
        padding-left: 4px;
    }
    .fh-mb-board-header-main{
        justify-content: flex-start;
    }
    .fh-mb-board-header-actions {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 50px 0 50px;
    }
    .fh-mb-notes-trigger, .fh-mb-back-link{
        font-size: 20px;
    }
    .fh-mb-item-card{
        width: 100%;
    }
    .fh-mb-item-card .fh-mb-item-card--note {
        width: 100%;
    }
    .fh-mb-item-card--note .fh-mb-item-img-wrap{
        width: 100%;
    }
    .fh-mb-item-img-wrap{
        height: auto;
        width: 100%;
    }
    .fh-mb-item-img-wrap img{
        width: 100%;
    }

    .fh-mb-email-bar{
        justify-content: flex-start;
        margin: 7em 0;
    }
    .fh-mb-email-btn{
        width: 100%;
    }
    .fh-mb-board-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) {
    .fh-mb-item-hover-bar {
        transform: translateY(0);
    }
}
