:root {
    --shoutbox-height: 284px;
}

#secondary-header-wrapper {
    padding-top: 30px;
}

#secondary-header {
    display: flex;
    align-items: stretch;
    height: var(--shoutbox-height);
    width: 100%;
    gap: 15px;
}

#header-column-left,
#header-column-right {
    flex: 0 0 auto; /* Don't grow or shrink, size based on content */
    display: flex;
    align-items: center;
}

#header-column-middle {
    flex: 1 1 auto; /* Grow and shrink as needed, fill available space */
    min-width: 0; /* Prevent flex item overflow */
}

#header-column-left img,
#header-column-right img {
    height: var(--shoutbox-height);
    width: auto;
    object-fit: contain;
    max-width: none; /* Prevent WordPress max-width constraints */
    border: 3px solid hsla(122, 25%, 36%, 1);
    border-radius: 12px;
}

#header-column-right div {
    height: 284px;
    width: 284px;
    aspect-ratio: 1/1;
    overflow: hidden;
}
#header-column-right a {
    display: block;
    height: 100%
}
#header-column-right img {
    height: 284px;
    width: 284px;
    object-fit: cover;
    object-position: center;
}


.shoutbox-wrapper {
    height: 100%;
    width: 100%;
}

#o-shoutbox {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#o-shoutbox-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    font-size: 14px;
    padding: 10px;
    min-height: 0;
    color: #aaa;
}

#o-shoutbox-input {
    flex: 0 0 40px;
    display: flex;
    padding: 5px;
    gap: 15px;     /* gap between input field and Submit button */
    border-top: none;
}

#o-shoutbox-text {
    flex-grow: 1;
    font-size: 14px;
    padding: 5px 10px;
}

#o-shoutbox-text::placeholder {
    color: #707070;
}

#o-shoutbox-submit {
    flex: 0 0 auto; /* Don't grow or shrink */
    font-size: 14px;
    padding: 5px 15px;
    color: white !important;
    background-color: hsla(122, 25%, 36%, 1);
    color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#o-shoutbox-submit:hover {
    background-color: hsla(122, 25%, 46%, 1);
}


.o-shoutbox-message {
    font-size: 13px;
    margin-bottom: 5px;
    position: relative;
    padding-right: 20px; /* Make room for delete button */
}

.o-shoutbox-username {
    font-weight: normal;
}

.o-shoutbox-profile-link {
    text-decoration: none;
    color: inherit;
}

.o-shoutbox-profile-link:hover {
    text-decoration: underline;
}

/* Maintain gender colors for the links */
.gender-m .o-shoutbox-profile-link {
    color: #4880f0;
}

.gender-f .o-shoutbox-profile-link {
    color: #f080c0;
}

.gender-o .o-shoutbox-profile-link {
    color: #a060e0;
}

.gender-a .o-shoutbox-profile-link {
    color: #4880f0;
}

.o-shoutbox-time {
    font-size: 80% !important;
    color: #666;
    margin: 0 0px;
    position: relative;
}


.o-shoutbox-time:hover::after {
    content: attr(title);
    position: absolute;
    top: 0;
    left: 0;
    background: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.o-shoutbox-time:hover::before {
    display: none;
}


.o-shoutbox-delete {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    padding: 2px 6px;
}

/* Only show delete button on hover if user is admin */
.admin-view .o-shoutbox-message:hover .o-shoutbox-delete {
    display: inline-block;
}


/*
#header-column-right {
    position: relative;
}
#header-column-right::after {
    content: "Erosmanic Placeholder";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #bbb;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}
*/




@media screen and (max-width: 979px) {

    #header-column-left,
    #header-column-right {
        display: none;
    }

    #o-shoutbox-messages {
        font-size: 16px;
    }

    #o-shoutbox-message {
        font-size: 16px;
    }

    #o-shoutbox-text {
        font-size: 16px;
    }

    #o-shoutbox-submit {
        font-size: 16px;
    }

    #header-column-middle {
        flex: 1 1 100%;
        padding: 0; /* Remove side padding since we're full width */
    }

    #secondary-header-wrapper {
        padding-top: 10px;
    }

    #secondary-header {
        gap: 0; /* Remove gap since side columns are hidden */
    }
}

