/*
 * Gilyoshida Website
 * Base stylesheet
 *
 * Fonts intentionally limited to classic system fonts.
 */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #202020;
    color: #eeeeee;

    font-family: Arial, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: #ccccff;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
}

.site-wrapper {
    width: 1200px;
    max-width: calc(100% - 40px);
    margin: 30px auto;
}


/*
 * Header
 */

.site-header {
    background: #303030;
    border: 1px solid #555555;
}

.site-title {
    padding: 20px;

    font-family: "Times New Roman", Times, serif;
    font-size: 32px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}


/*
 * Main navigation
 */

.main-navigation {
    display: flex;
    align-items: flex-end;

    border-top: 1px solid #555555;
    padding: 0 10px;
}

.main-navigation a {
    display: block;

    padding: 10px 18px;
    margin-right: 3px;

    background: #3a3a3a;

    border: 1px solid #555555;
    border-bottom: none;

    color: #eeeeee;
    text-decoration: none;
}

.main-navigation a:hover {
    background: #4a4a4a;
}


/*
 * Main content area
 */

.site-content {
    display: grid;
    grid-template-columns: 230px 1fr;

    min-height: 600px;

    background: #303030;

    border: 1px solid #555555;
    border-top: none;
}


/*
 * Sidebar
 */

.sidebar {
    padding: 15px;

    border-right: 1px solid #555555;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h2 {
    margin: 0 0 8px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.sidebar-section ul {
    margin: 0;
    padding-left: 20px;
}


/*
 * Main page content
 */

.main-content {
    padding: 25px;
    min-width: 0;
}

.main-content h1 {
    margin-top: 0;

    font-family: "Times New Roman", Times, serif;
    font-size: 32px;
}

.main-content h2 {
    font-family: Verdana, Arial, sans-serif;
}


/*
 * Public user profiles
 */

.user-profile-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;

    margin-bottom: 30px;
}

.user-profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 180px;
    height: 180px;

    border: 1px solid #555555;
    background: #282828;

    text-align: center;
    font-size: 13px;
}

.user-profile-summary h1 {
    margin-top: 0;
}

.user-profile-bio {
    white-space: normal;
}

.user-profile-section {
    margin-top: 30px;
    padding-top: 15px;

    border-top: 1px solid #555555;
}


/*
 * Gallery
 */

.gallery-upload {
    margin-bottom: 35px;
    padding-bottom: 20px;

    border-bottom: 1px solid #555555;
}

.gallery-upload input[type="text"],
.gallery-upload textarea {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

.form-help {
    color: #bbbbbb;
    font-size: 14px;
}

.gallery-list {
    margin-top: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 20px;
    align-items: start;
}

.gallery-item {
    min-width: 0;

    border: 1px solid #555555;
    background: #282828;
}

.gallery-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 220px;
    max-height: 420px;

    padding: 10px;

    overflow: hidden;

    background: #181818;

    border-bottom: 1px solid #555555;
}

.gallery-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 400px;

    object-fit: contain;
}

.gallery-item-content {
    padding: 12px;
}

.gallery-item-title {
    margin: 0 0 10px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.gallery-caption {
    margin-bottom: 15px;
}

.gallery-meta {
    margin-top: 15px;
    padding-top: 10px;

    border-top: 1px solid #444444;

    color: #bbbbbb;
    font-size: 13px;
}

.gallery-meta p {
    margin: 3px 0;
}

.gallery-actions {
    margin: 12px 0 0 0;
}


/*
 * Blog
 */

.blog-introduction {
    margin-bottom: 25px;
    color: #cccccc;
}

.blog-post-list {
    margin-top: 20px;
}

.blog-post-summary {
    margin-bottom: 25px;
    padding: 15px;

    border: 1px solid #555555;
    background: #282828;
}

.blog-post-summary h2 {
    margin: 0 0 5px 0;

    font-size: 22px;
}

.blog-post-summary h2 a {
    text-decoration: none;
}

.blog-post-summary h2 a:hover {
    text-decoration: underline;
}

.blog-post-meta {
    margin: 4px 0 15px 0;

    color: #bbbbbb;
    font-size: 13px;
}

.blog-post-pinned {
    display: inline-block;

    margin-left: 8px;
    padding: 1px 5px;

    border: 1px solid #666666;
    background: #3a3a3a;

    color: #eeeeee;

    font-size: 12px;
}

.blog-post-excerpt {
    margin: 15px 0;
}

.blog-post-read-link {
    margin-bottom: 0;
}

.blog-post-header {
    margin-bottom: 25px;
    padding-bottom: 12px;

    border-bottom: 1px solid #555555;
}

.blog-post-header h1 {
    margin-bottom: 5px;
}

.blog-post-lead {
    margin: 0 0 25px 0;
    padding: 12px 15px;

    border-left: 3px solid #666666;

    background: #282828;

    font-size: 17px;
}

.blog-post-content {
    overflow-wrap: break-word;
}

.blog-inline-media {
    margin: 25px auto;
    padding: 10px;

    max-width: 760px;

    border: 1px solid #555555;
    background: #181818;

    text-align: center;
}

.blog-inline-media-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 700px;

    margin: 0 auto;

    object-fit: contain;
}

.blog-inline-media figcaption {
    margin-top: 10px;
    padding-top: 8px;

    border-top: 1px solid #444444;

    color: #cccccc;

    text-align: left;
    font-size: 14px;
}

.blog-post-navigation {
    margin-top: 30px;
    padding-top: 15px;

    border-top: 1px solid #555555;
}


/*
 * Account Blog
 */

.account-blog-create {
    margin: 20px 0;
}

.account-blog-list {
    margin-top: 20px;
}

.account-blog-item {
    margin-bottom: 20px;
    padding: 15px;

    border: 1px solid #555555;
    background: #282828;
}

.account-blog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;
}

.account-blog-header h2 {
    margin: 0;
}

.account-blog-status {
    margin: 0;

    white-space: nowrap;
}

.status-label {
    display: inline-block;

    padding: 2px 6px;
    margin-left: 3px;

    border: 1px solid #666666;

    font-size: 12px;
}

.status-published {
    background: #283828;
}

.status-draft {
    background: #383838;
}

.status-pinned {
    background: #3a3a3a;
}

.account-blog-excerpt {
    margin: 15px 0;
}

.account-blog-details {
    margin: 15px 0;
}

.account-blog-details dt {
    float: left;
    clear: left;

    width: 120px;
}

.account-blog-details dd {
    margin-left: 130px;
}

.account-blog-actions {
    clear: both;

    margin: 15px 0 0 0;
    padding-top: 10px;

    border-top: 1px solid #444444;
}

/*
 * Public profile blog list
 */

.user-profile-blog-list {
    margin-top: 15px;
}

.user-profile-blog-item {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid #555555;
    background: #282828;
}

.user-profile-blog-item h3 {
    margin: 0 0 5px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.user-profile-blog-item h3 a {
    text-decoration: none;
}

.user-profile-blog-item h3 a:hover {
    text-decoration: underline;
}

.user-profile-blog-excerpt {
    margin: 10px 0;
}

/*
 * Rich text
 */

.text-underline {
    text-decoration: underline;
}

.font-arial {
    font-family: Arial, sans-serif;
}

.font-verdana {
    font-family: Verdana, Arial, sans-serif;
}

.font-comic-sans {
    font-family:
        "Comic Sans MS",
        "Comic Sans",
        cursive;
}

.font-times-new-roman {
    font-family:
        "Times New Roman",
        Times,
        serif;
}

/*
 * Forum
 */

.forum-category-list {
    margin-top: 20px;
}

.forum-category-item {
    margin-bottom: 18px;
    padding: 15px;

    border: 1px solid #555555;
    background: #282828;
}

.forum-category-item h2 {
    margin: 0 0 8px 0;
}

.forum-category-item h2 a {
    text-decoration: none;
}

.forum-category-item h2 a:hover {
    text-decoration: underline;
}

.forum-category-description {
    margin: 10px 0;
}

.forum-category-link {
    margin-bottom: 0;
}

.forum-breadcrumbs {
    margin-bottom: 20px;

    color: #bbbbbb;
    font-size: 14px;
}

.forum-category-header {
    margin-bottom: 25px;
    padding-bottom: 15px;

    border-bottom: 1px solid #555555;
}

.forum-create-thread-notice {
    padding: 10px;

    border: 1px solid #555555;
    background: #282828;
}

.forum-thread-list {
    margin-top: 25px;
}

/*
 * Forum threads and posts
 */

.forum-create-thread {
    margin: 20px 0;
}

.forum-thread-header {
    margin-bottom: 25px;
    padding-bottom: 12px;

    border-bottom: 1px solid #555555;
}

.forum-thread-header h1 {
    margin-bottom: 5px;
}

.forum-thread-meta {
    margin: 0;

    color: #bbbbbb;
    font-size: 13px;
}

.forum-post-list {
    margin-top: 20px;
}

.forum-post {
    margin-bottom: 20px;

    border: 1px solid #555555;
    background: #282828;
}

.forum-post-header {
    padding: 8px 12px;

    border-bottom: 1px solid #555555;
    background: #303030;

    font-size: 13px;
}

.forum-post-header p {
    margin: 0;
}

.forum-post-content {
    padding: 15px;

    overflow-wrap: break-word;
}

.forum-post-placeholder {
    color: #bbbbbb;
    font-style: italic;
}

.forum-post-footer {
    padding: 8px 12px;

    border-top: 1px solid #444444;

    color: #aaaaaa;
    font-size: 12px;
}

.forum-thread-locked {
    margin-top: 20px;
    padding: 10px;

    border: 1px solid #666666;
    background: #383838;
}

/*
 * Forum replies and post actions
 */

.forum-post-actions {
    padding: 8px 12px;

    border-top: 1px solid #444444;

    font-size: 13px;
}

.forum-reply {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #555555;
}

.forum-reply textarea {
    width: 100%;
    box-sizing: border-box;
}

/*
 * Forum moderation
 */

.admin-forum-post-source {
    padding: 12px;

    max-width: 100%;
    overflow-x: auto;

    white-space: pre-wrap;
    overflow-wrap: break-word;

    border: 1px solid #555555;
    background: #181818;

    color: #eeeeee;
}

/*
 * Public profile forum list
 */

.user-profile-forum-list {
    margin-top: 15px;
}

.user-profile-forum-item {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid #555555;
    background: #282828;
}

.user-profile-forum-item h3 {
    margin: 0 0 5px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.user-profile-forum-item h3 a {
    text-decoration: none;
}

.user-profile-forum-item h3 a:hover {
    text-decoration: underline;
}

.forum-post-meta {
    margin: 4px 0 10px 0;

    color: #bbbbbb;
    font-size: 13px;
}

/*
 * Blog comments
 */

.blog-comments {
    margin-top: 35px;
    padding-top: 20px;

    border-top: 1px solid #555555;
}

.comment-list {
    margin-top: 20px;
}

.comment {
    margin-bottom: 16px;

    border: 1px solid #555555;
    background: #282828;
}

.comment-depth-1 {
    margin-left: 30px;
}

.comment-depth-2 {
    margin-left: 60px;
}

.comment-header {
    padding: 7px 10px;

    border-bottom: 1px solid #555555;
    background: #303030;

    color: #bbbbbb;
    font-size: 13px;
}

.comment-header p {
    margin: 0;
}

.comment-content {
    padding: 12px;

    overflow-wrap: break-word;
}

.comment-placeholder {
    color: #bbbbbb;
    font-style: italic;
}

.comment-edited {
    margin: 0;
    padding: 6px 10px;

    border-top: 1px solid #444444;

    color: #aaaaaa;
    font-size: 12px;
}

.comment-reply {
    padding: 8px 10px;

    border-top: 1px solid #444444;
}

.comment-reply summary {
    cursor: pointer;
}

.comment-reply textarea,
.comment-create textarea {
    width: 100%;
    box-sizing: border-box;
}

.comment-create {
    margin-top: 30px;
    padding-top: 15px;

    border-top: 1px solid #555555;
}

/*
 * Blog media selection
 */

.blog-media-library {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 15px;
}

.blog-media-library-item {
    min-width: 0;
    padding: 10px;

    border: 1px solid #555555;
    background: #282828;
}

.blog-media-library-item h3 {
    margin-top: 0;
}

.blog-media-library-item img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 220px;

    margin: 0 auto;

    object-fit: contain;
}


/*
 * Tables
 */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    padding: 8px 10px;

    border: 1px solid #555555;

    text-align: left;
    vertical-align: top;
}

th {
    background: #3a3a3a;
}


/*
 * Forms
 */

fieldset {
    margin: 0 0 20px 0;
    padding: 12px;

    border: 1px solid #555555;
}

legend {
    padding: 0 6px;

    font-family: Verdana, Arial, sans-serif;
    font-weight: bold;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    padding: 6px 12px;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0 0 12px 0;
}


/*
 * Flash messages
 */

.flash-message {
    margin: 0 0 20px 0;
    padding: 10px 12px;

    border: 1px solid #666666;
}

.flash-success {
    background: #283828;
}

.flash-error {
    background: #482828;
}


/*
 * Footer
 */

.site-footer {
    padding: 15px;

    background: #303030;

    border: 1px solid #555555;
    border-top: none;

    text-align: center;

    font-size: 13px;
}

/*
 * Comment moderation
 */

.admin-comment-source {
    padding: 12px;

    max-width: 100%;
    overflow-x: auto;

    white-space: pre-wrap;
    overflow-wrap: break-word;

    border: 1px solid #555555;
    background: #181818;

    color: #eeeeee;
}

/*
 * Public profile comment list
 */

.user-profile-comment-list {
    margin-top: 15px;
}

.user-profile-comment-item {
    margin-bottom: 18px;
    padding: 12px;

    border: 1px solid #555555;
    background: #282828;
}

.user-profile-comment-item h3 {
    margin: 0 0 5px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.user-profile-comment-item h3 a {
    text-decoration: none;
}

.user-profile-comment-item h3 a:hover {
    text-decoration: underline;
}

.user-profile-comment-meta {
    margin: 4px 0 10px 0;

    color: #bbbbbb;
    font-size: 13px;
}

.user-profile-comment-excerpt {
    margin: 10px 0;

    overflow-wrap: break-word;
}

/*
 * Basic responsive fallback
 */

@media (max-width: 800px) {

    .site-wrapper {
        max-width: calc(100% - 20px);
        margin: 10px auto;
    }

    .site-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #555555;
    }

    .main-navigation {
        flex-wrap: wrap;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .user-profile-header {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-frame {
        min-height: 0;
        max-height: none;
    }

    .gallery-image {
        max-height: none;
    }

    .account-blog-header {
        display: block;
    }

    .account-blog-status {
        margin-top: 8px;
    }

    .account-blog-details dt {
        float: none;
        width: auto;
    }

    .account-blog-details dd {
        margin-left: 0;
    }

    .blog-media-library {
        grid-template-columns: 1fr;
    }

    .blog-inline-media {
        max-width: 100%;
        box-sizing: border-box;
    }

    .blog-inline-media-image {
        max-height: none;
    }
.comment-depth-1,
.comment-depth-2 {
    margin-left: 10px;
}
}


/*
 * Public profile image
 */

.user-profile-image {
    width: 180px;
}

.user-profile-image-file {
    display: block;

    width: 180px;
    height: 180px;

    object-fit: cover;

    border: 1px solid #555555;
    background: #282828;
}


/*
 * Global website background
 */

.site-background {
    background-color: #202020;
    background-image: var(--site-background-image);
}

.site-background-center {
    background-size: 1920px 1080px;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.site-background-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.site-background-repeat {
    background-size: 1920px 1080px;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: scroll;
}


/*
 * Rich-text editor toolbar
 */

.rich-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;

    margin: 0 0 6px 0;
    padding: 6px;

    border: 1px solid #555555;
    background: #282828;
}

.rich-text-toolbar-button {
    min-width: 34px;
    padding: 4px 8px;

    border: 1px solid #666666;
    background: #3a3a3a;

    color: #eeeeee;

    cursor: pointer;
}

.rich-text-toolbar-button:hover,
.rich-text-toolbar-button:focus {
    background: #4a4a4a;
}

.rich-text-toolbar-font {
    padding: 4px 6px;

    border: 1px solid #666666;
    background: #3a3a3a;

    color: #eeeeee;
}

.rich-text-editor {
    width: 100%;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/*
 * Main Page
 */

.homepage-segment {
    margin-bottom: 30px;
    padding: 15px;

    border: 1px solid #555555;
    background: #282828;
}

.homepage-segment-header {
    margin-bottom: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid #555555;
}

.homepage-segment-header h2 {
    margin: 0 0 5px 0;
}

.homepage-segment-header p {
    margin: 0;
}

.homepage-custom-content {
    overflow-wrap: break-word;
}

.homepage-blog-item,
.homepage-forum-item {
    margin-bottom: 15px;
    padding-bottom: 15px;

    border-bottom: 1px solid #444444;
}

.homepage-blog-item:last-child,
.homepage-forum-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: none;
}

.homepage-blog-item h3,
.homepage-forum-item h3 {
    margin: 0 0 5px 0;

    font-family: Verdana, Arial, sans-serif;
    font-size: 18px;
}

.homepage-blog-item h3 a,
.homepage-forum-item h3 a {
    text-decoration: none;
}

.homepage-blog-item h3 a:hover,
.homepage-forum-item h3 a:hover {
    text-decoration: underline;
}

.homepage-item-meta {
    margin: 4px 0 10px 0;

    color: #bbbbbb;
    font-size: 13px;
}

.homepage-blog-excerpt {
    margin: 10px 0;
}

.homepage-inline-media {
    margin: 20px auto;
    padding: 10px;

    max-width: 760px;

    border: 1px solid #555555;
    background: #181818;

    text-align: center;
}

.homepage-inline-media-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 700px;

    margin: 0 auto;

    object-fit: contain;
}

.homepage-inline-media figcaption {
    margin-top: 10px;
    padding-top: 8px;

    border-top: 1px solid #444444;

    color: #cccccc;

    text-align: left;
    font-size: 14px;
}
