@charset "UTF-8";
/*
Theme Name: michaeldivine2026
Theme URI: https://michaeldivine.com
Author: Michael Divine
Description: Custom theme for the artwork of Michael Divine
Version: 2.0.0
*/

/* ============================================
   Design Tokens
   ============================================ */
:root {
    --bg-color: #f9f7f7;
    --alt-bg-color: #fff;
    --text-color: #222;
    --link-color: #468c98;
    --border-color: #b8b8b8;
    --alt-link-color: #468c98;
    --link-color-hover: #222;

    --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.4s ease-out;

    --grid-gap: var(--space-md);
}

/* ============================================
   Base
   ============================================ */
html,
body {
    background: var(--bg-color);
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-color);
    font-size: 20px;
}
body {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}
a {
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--link-color-hover);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 200;
}
h2.pagetitle {
    text-align: center;
    font-size: 28px;
    color: var(--text-color);
    letter-spacing: 2px;
}

/* ============================================
   Layout Utilities
   ============================================ */
.flex-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.flex-row {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}
main {
    padding-bottom: 80px;
}
.entry {
    width: 100%;
    max-width: 700px;
    padding: 0px 40px;
    margin: auto;
    font-size: 18px;
    line-height: 32px;
    box-sizing: border-box;
}
img.feat {
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* ============================================
   Splash Page
   ============================================ */
.page-template-splash main {
    min-height: 100vh;
}
.page-template-splash {
    min-height: 100vh;
    padding-bottom: 0;
    background: url(https://www.michaeldivine.com/wp-content/uploads/2025/09/landing-1-scaled.jpg)
        no-repeat top;
    background-position: bottom;
    background-size: cover;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

/* ============================================
   Header
   ============================================ */
.m {
    display: none;
}
header {
    width: 100%;
    padding: 60px 20px 0;
    align-items: center;
    justify-content: center;
    border-bottom: var(--border-color) solid 0.5px;
    background: var(--alt-bg-color);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sitetitle {
    padding: 0;
    margin: 0;
}
.sitetitle a {
    font-size: 24px;
    line-height: 58px;
    letter-spacing: 3px;
    margin: 0;
    padding: 0px 20px;
    border: 0.5px solid var(--border-color);
    text-transform: uppercase;
    font-weight: 200;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}
.sitetitle a:hover {
    background: var(--link-color);
    color: var(--alt-bg-color);
    border: 1px solid var(--link-color);
}

/* Navigation */
.menu ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu ul li {
    padding: 0;
    display: block;
    position: relative;
}
.menu ul li a {
    color: var(--text-color);
    padding: 20px 20px 60px;
    display: block;
    letter-spacing: 2px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 200;
    border-bottom: 1px solid var(--alt-bg-color);
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast);
}
.menu ul li a:hover {
    color: var(--link-color);
    border-bottom: 1px solid var(--link-color);
    position: relative;
    box-sizing: border-box;
}
.menu ul li ul {
    opacity: 0;
    height: 0px;
    overflow: hidden;
    display: block;
    position: absolute;
    width: 200px;
    background: var(--alt-bg-color);
    border: 0.5px solid var(--border-color);
    transition: opacity var(--transition-fast);
}
.menu ul li:hover ul {
    opacity: 1;
    height: auto;
}
.menu ul li ul li a {
    border: 0;
    padding: 20px;
}
.menu ul li ul li a:hover {
    background: var(--link-color);
    border: 0;
    color: var(--alt-bg-color);
}

/* ============================================
   Forms
   ============================================ */
form {
    padding-top: 0px;
    padding-bottom: 30px;
    max-width: 500px;
    margin: auto;
}
input,
textarea,
.fourofour input#search-form-1 {
    padding: 12px;
    margin: 2px 0px 6px;
    width: 100%;
    border: none;
    background: var(--alt-bg-color);
    box-sizing: border-box;
    border: 0.5px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 16px;
}
input[type="submit"] {
    max-width: 120px;
    display: block;
    text-align: center;
    padding: 20px 0px;
    border: 0px;
    color: var(--alt-bg-color);
    background: var(--link-color);
    margin: auto;
    cursor: pointer;
    margin-top: 20px;
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 2px;
    transition: background var(--transition-fast);
}
input[type="submit"]:hover {
    background: #86bfc9;
}
input[type="text"]:focus {
    outline: none;
    border: 1px solid var(--link-color);
    background: #f0f5f6;
}
.wpcf7-response-output {
    text-align: center;
}
.wpcf7-not-valid-tip {
    font-size: 0.9em;
    line-height: 1em;
}
span[data-name="newsletter"] {
    display: none;
}
p.captcha {
    display: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
    width: 100%;
    align-items: start;
    justify-content: space-between;
    border-top: var(--border-color) solid 0.5px;
    background: var(--alt-bg-color);
    padding: 40px;
}
.footerlinks {
    gap: 20px;
}
.footerlinks a {
    display: block;
    height: 24px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 200;
    letter-spacing: 2px;
    line-height: 24px;
    padding-left: 30px;
    transition: color var(--transition-fast);
}
.footerlinks a:hover {
    color: var(--link-color);
}
#in {
    background: var(--link-color);
    padding: 20px;
    font-size: 16px;
    display: flex;
    gap: 12px;
    flex-direction: row;
    transition: opacity var(--transition-fast);
}
#in:hover {
    opacity: 0.9;
}
h1.foottitle {
    object-fit: contain;
    width: 410px;
    height: 91px;
    margin: 0;
}
.copy p {
    font-family: var(--font-heading);
    font-weight: 200;
    letter-spacing: 2px;
    text-align: center;
}

/* ============================================
   Albums
   ============================================ */
#album {
    max-width: 1200px;
}
.album {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}
.album li a {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    position: relative;
    width: 100%;
    height: 300px;
    color: var(--text-color);
    font-family: var(--font-heading);
    text-decoration: none;
    border: var(--border-color) solid 0.5px;
    overflow: hidden;
}
.albthumb {
    display: block;
    position: absolute;
    width: 100%;
    height: 300px;
}
.album li a h2 {
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
    margin: 0;
    font-size: 32px;
    letter-spacing: 2px;
    transition:
        height var(--transition-fast),
        padding var(--transition-fast);
}
.album li a:hover h2 {
    height: 0;
    margin: 0;
    padding: 0px;
    overflow: hidden;
}
.album li a h2 span {
    font-size: 16px;
    line-height: 32px;
}
.album li:hover h2 {
    margin-bottom: -80px;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
    max-width: 1500px;
}
.gal-array {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    justify-content: center;
}
.gal-array a {
    flex: 0 1 calc(33.333% - var(--grid-gap));
    aspect-ratio: 1 / 1;
    display: block;
    position: relative;
    overflow: hidden;
}
.gal-array a:hover .gal-thumb {
    transform: scale(1.02);
    opacity: 0.92;
}
.gal-array img.gal-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
        transform var(--transition-medium),
        opacity var(--transition-fast);
}
.gal-meta {
    display: none;
}

/* Gallery entrance animations */
.gal-array a {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}
.gal-array a.visible {
    opacity: 1;
    transform: translateY(0);
}

/* LQIP blur-up placeholder */
.lqip-wrapper {
    position: relative;
    overflow: hidden;
}
.lqip-wrapper .lqip-placeholder {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity var(--transition-medium);
    z-index: 1;
}
.lqip-wrapper .lqip-placeholder.loaded {
    opacity: 0;
    pointer-events: none;
}
.lqip-wrapper img {
    position: relative;
    z-index: 2;
}

/* ============================================
   Lightbox (JS-rendered, no iframes)
   ============================================ */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 9999;
  overflow: auto;
}
#lightbox-content {
  width: 100%;
  height: 100%;
}
#lightbox-content .image {
  background: transparent;
}
#lightbox-content .imgsidebar {
  background: var(--alt-bg-color);
}
.lightbox-arrow {
  position: fixed;
  top: 50%;
  user-select: none;
  cursor: pointer;
  z-index: 10000;
  padding: 12px 4px;
  background: rgba(0, 0, 0, 0.8);
  transition: background var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-prev {
  left: 0;
}
#lightbox-next {
  right: 0;
}
#lightbox-close {
  position: fixed;
  top: 0px;
  right: 0px;
  font-size: 30px;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--alt-bg-color);
  transition: background var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--link-color);
  color: var(--alt-bg-color);
}
#lightbox-overlay,
#lightbox-prev,
#lightbox-next,
#lightbox-close {
  display: none;
  z-index: 1000000;
}

/* ============================================
   Image / Attachment Page
   ============================================ */
.image {
    width: 75%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    height: 100vh;
}
.image img {
    margin: 20px;
    height: 100%;
    width: auto;
    object-fit: contain;
}
.imgsidebar {
    width: 25%;
    background: var(--alt-bg-color);
    border-left: 0.5px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
}
#imgsidebarcontent {
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h2.imagetitle {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 32px;
}
.info {
    line-height: 24px;
    font-size: 16px;
    font-weight: 200;
}
.imgfoot h1.foottitle {
    text-indent: -100000px;
    width: 90%;
    height: 80px;
    margin: auto;
}
.imgfoot .copy p {
    font-size: 12px;
}

/* ============================================
   404 Page
   ============================================ */
.fourofour {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    max-width: 600px;
    margin: auto;
}
.fourofour h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: var(--space-md);
}
.fourofour p {
    margin-bottom: var(--space-lg);
}
.fourofour a {
    color: var(--link-color);
    text-decoration: underline;
}

/* ============================================
   Responsive: Tablet (max-width: 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .galimage {
        flex-direction: column !important;
    }
    .album li a h2 {
        max-width: 100%;
        padding: 12px;
        font-size: 24px;
    }
    .gal-array a {
        flex: 0 1 calc(50% - var(--grid-gap));
    }
    .image {
        width: 100%;
        height: 100%;
        max-height: 90vh;
        padding: 2px;
    }
    .image img {
        width: 100%;
        margin: 0;
    }
    .imgsidebar {
        width: 100%;
        padding: 12px;
    }
    .imgfoot h1.foottitle {
        width: 50%;
        margin-top: 40px;
    }
    .imgfoot .copy {
        margin-bottom: 80px;
    }
    .lightbox-arrow,
    #lightbox-close {
        top: auto;
        bottom: 0;
        width: 32%;
        box-sizing: border-box;
    }
    #lightbox-close {
        height: 56px;
        padding: 12px;
        left: 32%;
        width: 36%;
        text-align: center;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
    }
    #lightbox-close:hover,
    .lightbox-arrow:hover {
        background: rgba(0, 0, 0, 0.8);
        color: var(--alt-bg-color);
    }
    #lightbox-next {
        text-align: right;
    }
}

/* ============================================
   Responsive: Mobile (max-width: 512px)
   ============================================ */
@media screen and (max-width: 512px) {
    :root {
        --grid-gap: var(--space-sm);
    }
    .desktop {
        display: none;
    }
    .page-template-splash {
        background: none;
        background-size: cover;
        display: flex;
        flex-direction: column;
    }
    .page-template-splash main {
        background: url(https://www.michaeldivine.com/wp-content/uploads/2025/09/monument-bg2.jpg)
            no-repeat left;
        background-size: cover;
        display: flex;
        flex-direction: column;
    }
    .m {
        display: block;
    }
    footer {
        flex-direction: column !important;
        align-items: center;
    }
    .menu {
        display: none;
    }
    header {
        padding: 20px;
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .sitetitle a {
        font-size: 20px;
        line-height: 48px;
        padding: 0px 20px;
    }
    .slideout,
    .menuicon {
        display: block;
    }
    .slideout {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        transition: right 0.4s ease;
        padding: 60px 20px 24px;
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: space-between;
        z-index: 100000;
        background: var(--alt-bg-color);
        overflow-y: auto;
        box-sizing: border-box;
    }
    #menu-toggle:checked + label + .slideout {
        right: 0;
    }
    .menuicon {
        position: relative;
        display: block;
        z-index: 100000;
        cursor: pointer;
        width: 44px;
        height: 44px;
    }
    .close {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1100;
        cursor: pointer;
        width: 44px;
        height: 44px;
    }
    .close svg {
        color: #000;
    }
    .menuicon svg {
        color: #000;
        width: 40px;
        height: 40px;
    }
    .slideout ul,
    .slideout li {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .slideout li {
        padding-bottom: 20px;
    }
    .slideout li ul {
        border-left: 1px solid var(--border-color);
        margin-left: 20px;
    }
    .slideout li ul li {
        padding: 0 0 0 20px;
    }
    .slideout .mobilemenu ul {
        display: flex;
        flex-direction: column;
        text-align: left;
        line-height: 40px;
    }
    .slideout .mobilemenu a {
        display: block;
        padding: 12px 16px;
        font-size: 32px;
        font-weight: 200;
        font-family: var(--font-heading);
        text-decoration: none;
        color: var(--text-color);
        min-height: 44px;
    }
    .slideout .mobilemenu ul ul a {
        font-size: 24px;
        padding: 10px;
    }
    .footer {
        flex-direction: column !important;
        padding-bottom: 64px;
        align-items: center;
        gap: 20px;
    }
    h1.foottitle {
        width: 100%;
        margin: auto;
        height: 81px;
        margin-top: 20px;
    }
    main {
        padding-bottom: 40px;
    }
    .entry {
        padding: 0px 20px;
    }
    h2.pagetitle {
        font-size: 24px;
    }
    .gal-array a {
        flex: 0 1 100%;
        display: block;
    }
    .gal-array img.gal-thumb {
        height: auto;
    }
    .image {
        max-height: 100%;
    }
}
