:root {
    --ppSidePad: 24px;
    --nav-width: 1100px;
    --main-width: 1100px;
    --theme: #f5f5f5;
    --entry: #f5f5f5;
}

.ppWidth {
    max-width: var(--main-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ppSidePad);
    padding-right: var(--ppSidePad);
}

/* Apply the same padding to PaperMod header/nav container. */
.header .nav {
    padding-left: var(--ppSidePad);
    padding-right: var(--ppSidePad);
    box-sizing: border-box;
}

.main {
    margin-top: -20px;
}

.heroBanner {
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 0px;
}

.heroBanner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
}

.twoCol {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
}

.twoCol > div:nth-child(2) {
    padding-top: 30px;
}

ul {
    padding-left: 2.5rem !important;
}

@media (max-width: 768px) {

    .heroBanner { height: 220px; }

    .twoCol {
        grid-template-columns: 1fr;
    }

    .twoCol > div:nth-child(2) {
        padding-top: 0;
    }

    .formRow {
        grid-template-columns: 1fr;
    }
}

/* Hide the page title */
.post-title.entry-hint-parent {
    display: none;
}

/* Remove the space reserved for the title/header */
.post-header {
    margin: 0;
    padding: 0;
}

/* Tighten content start so hero touches where title was */
.post-content {
    margin-top: 0;
}

.contactForm {
    width: 100%;
}

.formRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.formRow textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

.contactForm input,
.contactForm textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.contactForm button {
    padding: 12px 18px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Mobile only link style. */
.mobileOnlyLink,
.mobileOnlyLink:link,
.mobileOnlyLink:visited,
.mobileOnlyLink:hover,
.mobileOnlyLink:active {
    pointer-events: none;
    color: inherit;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    cursor: default;
}

/* Mobile only link style. */
@media (max-width: 768px) {
    .mobileOnlyLink,
    .mobileOnlyLink:link,
    .mobileOnlyLink:visited,
    .mobileOnlyLink:hover,
    .mobileOnlyLink:active {
        pointer-events: auto;
        cursor: pointer;
        text-decoration: underline !important;
    }
}

/* Make the submit row left-aligned */
.contactForm .formRow:last-child {
    display: block;
}

/* Button styling */
.contactForm button[type="submit"] {
    background-color: #ffffff;
    color: #000000;

    border: 1px solid #76685a;
    border-radius: 25px;

    padding: 10px 22px;
    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
}

/* Hover/focus states (optional but recommended) */
.contactForm button[type="submit"]:hover,
.contactForm button[type="submit"]:focus {
    background-color: #e0d1be;
}

/* Disabled submit button: cancel hover/focus effects */
.contactForm button[type="submit"]:disabled,
.contactForm button[type="submit"]:disabled:hover,
.contactForm button[type="submit"]:disabled:focus,
.contactForm button[type="submit"]:disabled:active {
    background-color: inherit;   /* or the normal disabled bg */
    cursor: not-allowed;
}

span.footNotes {
  font-size: 0.8rem;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.formNotice {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Default state */
.formNotice-default {
    color: #000;
    font-size: 0.8rem;
    font-weight: normal;
}

/* Error state */
.formNotice-error {
    color: #b00020;
    font-size: 1.0rem;
    font-weight: bold;
}

/* Dark mode overrides for the notice text (supports both PaperMod mechanisms) */
.dark .formNotice-default,
:root[data-theme="dark"] .formNotice-default,
html[data-theme="dark"] .formNotice-default,
body[data-theme="dark"] .formNotice-default {
    color: #e6e6e6;
}

/* Keep error visible in dark mode too (optional, but consistent) */
.dark .formNotice-error,
:root[data-theme="dark"] .formNotice-error,
html[data-theme="dark"] .formNotice-error,
body[data-theme="dark"] .formNotice-error {
    color: #ff6b6b;
}

/* Base form field styling (light/default) */
.contactForm input,
.contactForm textarea {
    color: #111;
    background-color: #fff;
}

/* Dark mode - support both PaperMod mechanisms: .dark and data-theme="dark" */
.dark .contactForm input,
.dark .contactForm textarea,
:root[data-theme="dark"] .contactForm input,
:root[data-theme="dark"] .contactForm textarea,
html[data-theme="dark"] .contactForm input,
html[data-theme="dark"] .contactForm textarea,
body[data-theme="dark"] .contactForm input,
body[data-theme="dark"] .contactForm textarea {
    color: #eee;
    background-color: #222;
    border-color: #444;
}

.pswp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pswp-gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.pswp-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.pswp__caption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;

    max-width: min(900px, calc(100% - 24px));
    padding: 10px 14px;

    font-size: 20px;
    line-height: 1.4;

    color: #fff;
    background: rgba(0, 0, 0, 0.55);

    border-radius: 10px;
    margin-bottom: 12px;
}

.yellowPanel {
    border-top: 1px solid #ffd400;
    border-left: 1px solid #ffd400;
    padding: 10px;

    /* Gradient: yellow at top -> white at bottom */
    background: linear-gradient(
        to bottom,
        #ffd400 0%,
        #fff7c2 50%,
        #f5f5f5 100%
    );

    /* Square left corners, rounded right corners. */
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    
    a:link {color: #0057b8;}
    a:visited {color: #0057b8;}
    a:hover {color: blue;}
    a:active {color: green;}
}

.yellowPSLinkPanel {
    display: block;
    text-decoration: none;
    
    border-bottom: 1px solid #1e1e1e;
    padding: 10px;

    /* Gradient: yellow at bottom -> white at top */
    background: linear-gradient(
        to top,
        #f5f5f5 0%,
        #fff7c2 50%,
        #ffd400 100%
    );

    /* Square left corners, rounded right corners. */
    border-top-left-radius: 8px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 20px;
    
    a:link {color: #0057b8;}
    a:visited {color: #0057b8;}
    a:hover {color: blue;}
    a:active {color: green;}
}

.fontNormal {
    font-weight: 400;
}

.fontMedium {
    font-weight: 600;
}

.fontBold {
    font-weight: 700;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.footerCenter {
    text-align: center !important;
    margin: 12px 0 0 0 !important;
    font-size: 20px !important;
    color: #985634 !important;
    font-style: italic !important;
}

.dotsSeparator::before {
    display: flex;
    justify-content: center;
    line-height: 0;
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 0.3em;
    content: '···';
    font-size: 8em;
    color: #999;
    letter-spacing: 25px;
    line-height: 0;
}

