/*
Theme Name: Lawrence Power — Independent
Description: A standalone artwork portfolio with native WordPress galleries and an accessible lightbox. No parent theme or gallery plugin required.
Author: Florian Berg
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lawrence-power
*/

@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:400;font-display:swap;src:url("assets/libre-baskerville-regular.ttf") format("truetype")}
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:700;font-display:swap;src:url("assets/libre-baskerville-bold.ttf") format("truetype")}
@font-face{font-family:"Libre Baskerville";font-style:italic;font-weight:400;font-display:swap;src:url("assets/libre-baskerville-italic.ttf") format("truetype")}

:root{--lp-accent:#d9d9cd;--lp-ink:#1a1a1a;--lp-gap:20px;--lp-frame:5px}
*{box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--lp-accent);color:var(--lp-ink);font-family:"Libre Baskerville",Georgia,serif;font-size:16px;line-height:1.75}
body::before,body::after{content:"";position:fixed;left:0;right:0;height:var(--lp-frame);background:var(--lp-accent);z-index:100;pointer-events:none}
body::before{top:0}body::after{bottom:0}
.lp-shell{margin:0 var(--lp-frame);background:#fff;min-height:100vh;min-height:100svh}
button,input,textarea,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-underline-offset:.15em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.lp-sr-only,.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.lp-skip-link{position:fixed;left:20px;top:-100px;background:#fff;padding:12px;z-index:110}
.lp-skip-link:focus{top:12px}

.lp-header{position:fixed;top:5px;left:5px;width:calc(100% - 10px);height:60px;z-index:30}
.lp-menu{list-style:none;padding:0;margin:0}
.lp-menu a{text-decoration:none;display:block;text-decoration-skip-ink:auto;text-decoration-thickness:.065em;text-underline-offset:.1em}
.lp-menu a:hover,.lp-menu .current-menu-item>a{text-decoration-line:underline}
.lp-menu-toggle{display:none}
.lp-main{max-width:1320px;margin:0 auto;padding:120px 4.5%;outline:0}
.lp-content{width:85%;margin:0 auto;font-size:14px;overflow-wrap:break-word}
.lp-content p{margin:0 0 1.75em}
.lp-content h1,.lp-content h2,.lp-content h3{line-height:1.3;margin:1em 0}
.lp-content .lp-page-heading{font:inherit;font-weight:700;line-height:inherit;margin:0 0 1.75em}
.lp-content img{max-width:100%;height:auto;vertical-align:middle}
.lp-content img.alignnone{margin:0 0 1.75em}
.lp-content table{width:100%;max-width:700px;border-collapse:collapse}
.lp-content td{vertical-align:top;border:0;padding:0 1em 1.25em 0}
.lp-content figure{margin:0}
.lp-content video{display:block;max-width:100%;height:auto}
.lp-content iframe{max-width:100%}
.lp-content .aligncenter{display:block;margin-inline:auto}
.lp-content .alignleft{float:left;margin:0 1.75em 1.75em 0}
.lp-content .alignright{float:right;margin:0 0 1.75em 1.75em}
.lp-content::after{content:"";display:table;clear:both}

/* Native gallery blocks retain their editable images and captions. */
.lp-content .wp-block-gallery{--lp-gap:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:var(--lp-gap);padding:0 calc(var(--lp-gap)/2);margin:0 0 var(--lp-gap);position:relative}
.lp-content .wp-block-gallery.lp-gap-40{--lp-gap:40px}
.lp-content .wp-block-gallery.lp-gap-22{--lp-gap:22px}
.lp-content .wp-block-gallery.lp-gap-10{--lp-gap:10px}
.lp-content .wp-block-gallery.lp-masonry{display:block}
.lp-content .wp-block-gallery>.wp-block-image{margin:0!important;flex:none!important;align-self:start}
.lp-content .wp-block-gallery:not(.lp-masonry)>.wp-block-image{width:auto!important}
.lp-content .wp-block-gallery>.wp-block-image>a{display:block;box-shadow:none;border:0}
.lp-content .wp-block-gallery>.wp-block-image img{display:block;width:100%!important;height:auto!important;max-height:none;object-fit:contain!important;border-radius:0}
.lp-content .wp-block-gallery>.wp-block-image>figcaption{display:none!important}
.lp-content .wp-block-gallery>.wp-block-image::before,.lp-content .wp-block-gallery>.wp-block-image::after{content:none!important;display:none!important}
.lp-content .wp-block-gallery a:focus-visible{outline-offset:5px}

/* A white, edge-to-edge viewer preserves the original coloured frame. */
.lp-lightbox{position:fixed;inset:5px;width:calc(100% - 10px);height:calc(100vh - 10px);height:calc(100dvh - 10px);max-width:none;max-height:none;padding:0;margin:0;border:0;background:#fff;color:var(--lp-ink);overflow:hidden}
.lp-lightbox::backdrop{background:transparent}
.lp-lightbox:not([open]){display:none}
.lp-lightbox-track{--swiper-wrapper-transition-timing-function:cubic-bezier(.25,.46,.45,.94);width:100%;height:100%;overflow:hidden;overscroll-behavior-x:contain;scrollbar-width:none;direction:ltr;touch-action:pan-y pinch-zoom}
.lp-lightbox-track::-webkit-scrollbar{display:none}
.lp-lightbox-figure{position:relative;flex:0 0 100%;min-width:0;width:100%;height:100%;margin:0;display:flex;align-items:center;justify-content:center;padding:70px;user-select:none}
.lp-lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none}
.lp-lightbox-image[hidden],.lp-lightbox-error[hidden]{display:none}
.lp-lightbox-caption{position:absolute;bottom:25px;left:65px;right:65px;text-align:center;font-size:16px;line-height:1.75;font-weight:700;color:#686868;max-height:4.5em;overflow:auto}
.lp-lightbox button{z-index:2;border:0;border-radius:0;background:transparent;color:#aaa;padding:0;display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;transition:color 120ms ease}
.lp-lightbox button:hover{color:#444}
.lp-lightbox button:active svg{transform:scale(.97)}
.lp-lightbox button svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.lp-lightbox-close{position:absolute;top:13px;right:19px;width:48px;height:48px}
.lp-lightbox-close svg{width:36px;height:36px}
.lp-lightbox-previous,.lp-lightbox-next{position:absolute;top:25%;height:50%;width:64px}
.lp-lightbox-previous{left:0}.lp-lightbox-next{right:0}
.lp-lightbox-previous svg,.lp-lightbox-next svg{width:48px;height:120px}
.lp-lightbox button[hidden]{display:none}
.lp-lightbox-status{pointer-events:none}
.lp-lightbox-loading{position:absolute;width:20px;height:20px;border:1px solid #ddd;border-top-color:#777;border-radius:50%;display:none;animation:lp-spin .8s linear infinite}
.lp-lightbox-figure[aria-busy="true"] .lp-lightbox-loading{display:block}
.lp-lightbox-error{max-width:30em;text-align:center;font-size:14px}
.lp-lightbox-error a{text-decoration:underline}
.lp-no-scroll{overflow:hidden}
@keyframes lp-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.lp-lightbox button{transition:none}.lp-lightbox-loading{animation:none}}

@media(max-width:909px){
    .lp-js .lp-menu-toggle{display:block;position:absolute;right:23px;top:26px;z-index:32;font-size:13px;font-weight:700;line-height:1.3;letter-spacing:.05em;text-transform:uppercase;border:1px solid currentColor;border-radius:2px;background:#fff;padding:.65em .8em}
    .lp-navigation{padding:35px 15px;background:#fff;text-align:center}
    .lp-js .lp-navigation{display:none}
    .lp-menu a{padding:10px;margin:10px;font-size:20.8px;line-height:1.3125}
    .lp-menu-open .lp-navigation{display:flex;position:fixed;inset:5px;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain}
    .lp-menu-open .lp-menu{max-width:300px;width:100%}
    .lp-lightbox-figure{display:grid;grid-template-rows:minmax(0,1fr) auto;justify-content:stretch;gap:16px;padding:64px 20px calc(80px + env(safe-area-inset-bottom,0px))}
    .lp-lightbox-image{grid-row:1;grid-column:1;justify-self:center;min-width:0;min-height:0}
    .lp-lightbox-error{grid-row:1;grid-column:1}
    .lp-lightbox-caption{position:static;grid-row:2;font-size:13px;line-height:1.5;max-height:min(25dvh,7.5em);margin:0;overflow:auto}
    .lp-lightbox-caption:empty{display:none}
    .lp-lightbox-previous,.lp-lightbox-next{width:48px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px));height:48px}
    .lp-lightbox-previous{left:20px}.lp-lightbox-next{right:20px}
    .lp-lightbox-previous svg,.lp-lightbox-next svg{width:22px;height:36px}
    .lp-lightbox-close{right:10px;top:8px}
}
@media(min-width:710px) and (max-width:909px){.lp-content{width:100%;font-size:14px}}
@media(min-width:710px){.lp-content .wp-block-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:910px){
    .lp-header{background:rgba(255,255,255,.8);display:flex;justify-content:center}
    .lp-navigation{font-size:20.8px}
    .lp-menu{display:flex;justify-content:center}
    .lp-menu a{line-height:1.3125;margin:1em}
    .lp-content{width:70%;font-size:16px}
}
@media(min-width:1200px){.lp-navigation{font-size:22.4px}}
body.admin-bar .lp-header{top:37px}
@media(max-width:782px){body.admin-bar .lp-header{top:51px}.admin-bar.lp-menu-open .lp-navigation{top:51px}}
