mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-03 23:59:49 +00:00 
			
		
		
		
	Added lightbox support
This commit is contained in:
		@@ -19,6 +19,7 @@ production stylesheet in assets/built/screen.css
 | 
			
		||||
9.  Error Template
 | 
			
		||||
10.  Site Footer
 | 
			
		||||
11. Dark Mode
 | 
			
		||||
12. Lightbox
 | 
			
		||||
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
@@ -1559,6 +1560,11 @@ except for when immediately preceeded by a heading */
 | 
			
		||||
    margin: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.kg-image[width][height],
 | 
			
		||||
.kg-gallery-image {
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.has-serif-title .kg-toggle-card .kg-toggle-heading-text {
 | 
			
		||||
    font-family: var(--font-serif);
 | 
			
		||||
}
 | 
			
		||||
@@ -2513,6 +2519,503 @@ html.dark-mode .footer-cta-title {
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* 12. Lightbox
 | 
			
		||||
/* ---------------------------------------------------------- */
 | 
			
		||||
 | 
			
		||||
.pswp {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    z-index: 3999999;
 | 
			
		||||
    display: none;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
    -ms-touch-action: none;
 | 
			
		||||
    touch-action: none;
 | 
			
		||||
    outline: none;
 | 
			
		||||
    backface-visibility: hidden;
 | 
			
		||||
    -webkit-text-size-adjust: 100%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp img {
 | 
			
		||||
    max-width: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--animate_opacity {
 | 
			
		||||
    opacity: 0.001;
 | 
			
		||||
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
 | 
			
		||||
    will-change: opacity;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--open {
 | 
			
		||||
    display: block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--zoom-allowed .pswp__img {
 | 
			
		||||
    cursor: zoom-in;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--zoomed-in .pswp__img {
 | 
			
		||||
    cursor: grab;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--dragging .pswp__img {
 | 
			
		||||
    cursor: grabbing;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__bg {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    background-color: rgba(0, 0, 0, 0.85);
 | 
			
		||||
    opacity: 0;
 | 
			
		||||
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
 | 
			
		||||
    transform: translateZ(0);
 | 
			
		||||
    backface-visibility: hidden;
 | 
			
		||||
    will-change: opacity;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__scroll-wrap {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__container,
 | 
			
		||||
.pswp__zoom-wrap {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    right: 0;
 | 
			
		||||
    bottom: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    touch-action: none;
 | 
			
		||||
    backface-visibility: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__container,
 | 
			
		||||
.pswp__img {
 | 
			
		||||
    user-select: none;
 | 
			
		||||
    -webkit-tap-highlight-color: transparent;
 | 
			
		||||
    -webkit-touch-callout: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__zoom-wrap {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1);
 | 
			
		||||
    transform-origin: left top;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--animated-in .pswp__bg,
 | 
			
		||||
.pswp--animated-in .pswp__zoom-wrap {
 | 
			
		||||
    transition: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__item {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    right: 0;
 | 
			
		||||
    bottom: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__img {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: auto;
 | 
			
		||||
    height: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__img--placeholder {
 | 
			
		||||
    backface-visibility: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__img--placeholder--blank {
 | 
			
		||||
    background: #000;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--ie .pswp__img {
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100% !important;
 | 
			
		||||
    height: auto !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__error-msg {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 50%;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    margin-top: -8px;
 | 
			
		||||
    font-size: 14px;
 | 
			
		||||
    line-height: 16px;
 | 
			
		||||
    color: var(--color-secondary-text);
 | 
			
		||||
    text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__error-msg a {
 | 
			
		||||
    color: var(--color-secondary-text);
 | 
			
		||||
    text-decoration: underline;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button {
 | 
			
		||||
    position: relative;
 | 
			
		||||
    display: block;
 | 
			
		||||
    float: right;
 | 
			
		||||
    width: 44px;
 | 
			
		||||
    height: 44px;
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    overflow: visible;
 | 
			
		||||
    appearance: none;
 | 
			
		||||
    cursor: pointer;
 | 
			
		||||
    background: none;
 | 
			
		||||
    border: 0;
 | 
			
		||||
    box-shadow: none;
 | 
			
		||||
    transition: opacity 0.2s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button:focus,
 | 
			
		||||
.pswp__button:hover {
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button:active {
 | 
			
		||||
    outline: none;
 | 
			
		||||
    opacity: 0.9;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button::-moz-focus-inner {
 | 
			
		||||
    padding: 0;
 | 
			
		||||
    border: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui--over-close .pswp__button--close {
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button,
 | 
			
		||||
.pswp__button--arrow--left::before,
 | 
			
		||||
.pswp__button--arrow--right::before {
 | 
			
		||||
    width: 44px;
 | 
			
		||||
    height: 44px;
 | 
			
		||||
    background: url("../images/default-skin.png") 0 0 no-repeat;
 | 
			
		||||
    background-size: 264px 88px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
 | 
			
		||||
    .pswp--svg .pswp__button,
 | 
			
		||||
    .pswp--svg .pswp__button--arrow--left::before,
 | 
			
		||||
    .pswp--svg .pswp__button--arrow--right::before {
 | 
			
		||||
        background-image: url("../images/default-skin.svg");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .pswp--svg .pswp__button--arrow--left,
 | 
			
		||||
    .pswp--svg .pswp__button--arrow--right {
 | 
			
		||||
        background: none;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--close {
 | 
			
		||||
    background-position: 0 -44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--share {
 | 
			
		||||
    background-position: -44px -44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--fs {
 | 
			
		||||
    display: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--supports-fs .pswp__button--fs {
 | 
			
		||||
    display: block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--fs .pswp__button--fs {
 | 
			
		||||
    background-position: -44px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--zoom {
 | 
			
		||||
    display: none;
 | 
			
		||||
    background-position: -88px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--zoom-allowed .pswp__button--zoom {
 | 
			
		||||
    display: block;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--zoomed-in .pswp__button--zoom {
 | 
			
		||||
    background-position: -132px 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--touch .pswp__button--arrow--left,
 | 
			
		||||
.pswp--touch .pswp__button--arrow--right {
 | 
			
		||||
    visibility: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--left,
 | 
			
		||||
.pswp__button--arrow--right {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 50%;
 | 
			
		||||
    width: 70px;
 | 
			
		||||
    height: 100px;
 | 
			
		||||
    margin-top: -50px;
 | 
			
		||||
    background: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--left {
 | 
			
		||||
    left: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--right {
 | 
			
		||||
    right: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--left::before,
 | 
			
		||||
.pswp__button--arrow--right::before {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 35px;
 | 
			
		||||
    width: 32px;
 | 
			
		||||
    height: 30px;
 | 
			
		||||
    content: "";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--left::before {
 | 
			
		||||
    left: 6px;
 | 
			
		||||
    background-position: -138px -44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__button--arrow--right::before {
 | 
			
		||||
    right: 6px;
 | 
			
		||||
    background-position: -94px -44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__counter {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    height: 44px;
 | 
			
		||||
    padding: 0 15px;
 | 
			
		||||
    font-size: 11px;
 | 
			
		||||
    font-weight: 700;
 | 
			
		||||
    line-height: 44px;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
    user-select: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    bottom: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    min-height: 44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption__center {
 | 
			
		||||
    max-width: 420px;
 | 
			
		||||
    padding: 25px 15px 30px;
 | 
			
		||||
    margin: 0 auto;
 | 
			
		||||
    font-size: 11px;
 | 
			
		||||
    line-height: 1.6;
 | 
			
		||||
    color: #fff;
 | 
			
		||||
    text-align: center;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption__center .post-caption-title {
 | 
			
		||||
    margin-bottom: 7px;
 | 
			
		||||
    font-size: 15px;
 | 
			
		||||
    font-weight: 500;
 | 
			
		||||
    text-transform: uppercase;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption__center .post-caption-meta-item + .post-caption-meta-item::before {
 | 
			
		||||
    padding: 0 4px;
 | 
			
		||||
    content: "\02022";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption--empty {
 | 
			
		||||
    display: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption--fake {
 | 
			
		||||
    visibility: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__preloader {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 50%;
 | 
			
		||||
    width: 44px;
 | 
			
		||||
    height: 44px;
 | 
			
		||||
    margin-left: -22px;
 | 
			
		||||
    opacity: 0;
 | 
			
		||||
    transition: opacity 0.25s ease-out;
 | 
			
		||||
    direction: ltr;
 | 
			
		||||
    will-change: opacity;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__preloader__icn {
 | 
			
		||||
    width: 20px;
 | 
			
		||||
    height: 20px;
 | 
			
		||||
    margin: 12px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__preloader--active {
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__preloader--active .pswp__preloader__icn {
 | 
			
		||||
    background: url("../images/preloader.gif") 0 0 no-repeat;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader--active {
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader--active .pswp__preloader__icn {
 | 
			
		||||
    animation: clockwise 500ms linear infinite;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader--active .pswp__preloader__donut {
 | 
			
		||||
    animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader__icn {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 15px;
 | 
			
		||||
    left: 15px;
 | 
			
		||||
    width: 14px;
 | 
			
		||||
    height: 14px;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    background: none;
 | 
			
		||||
    opacity: 0.75;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader__cut {
 | 
			
		||||
    position: relative;
 | 
			
		||||
    width: 7px;
 | 
			
		||||
    height: 14px;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--css_animation .pswp__preloader__donut {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    width: 14px;
 | 
			
		||||
    height: 14px;
 | 
			
		||||
    margin: 0;
 | 
			
		||||
    background: none;
 | 
			
		||||
    border: 2px solid #fff;
 | 
			
		||||
    border-bottom-color: transparent;
 | 
			
		||||
    border-left-color: transparent;
 | 
			
		||||
    border-radius: 50%;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media screen and (max-width: 1024px) {
 | 
			
		||||
    .pswp__preloader {
 | 
			
		||||
        position: relative;
 | 
			
		||||
        top: auto;
 | 
			
		||||
        left: auto;
 | 
			
		||||
        float: right;
 | 
			
		||||
        margin: 0;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@keyframes clockwise {
 | 
			
		||||
    0% {
 | 
			
		||||
        transform: rotate(0deg);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    100% {
 | 
			
		||||
        transform: rotate(360deg);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@keyframes donut-rotate {
 | 
			
		||||
    0% {
 | 
			
		||||
        transform: rotate(0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    50% {
 | 
			
		||||
        transform: rotate(-140deg);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    100% {
 | 
			
		||||
        transform: rotate(0);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui {
 | 
			
		||||
    z-index: 1550;
 | 
			
		||||
    visibility: visible;
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
    -webkit-font-smoothing: auto;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__top-bar {
 | 
			
		||||
    position: absolute;
 | 
			
		||||
    top: 0;
 | 
			
		||||
    left: 0;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 44px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__caption,
 | 
			
		||||
.pswp__top-bar,
 | 
			
		||||
.pswp--has_mouse .pswp__button--arrow--left,
 | 
			
		||||
.pswp--has_mouse .pswp__button--arrow--right {
 | 
			
		||||
    backface-visibility: hidden;
 | 
			
		||||
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
 | 
			
		||||
    will-change: opacity;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--has_mouse .pswp__button--arrow--left,
 | 
			
		||||
.pswp--has_mouse .pswp__button--arrow--right {
 | 
			
		||||
    visibility: visible;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui--idle .pswp__top-bar {
 | 
			
		||||
    opacity: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui--idle .pswp__button--arrow--left,
 | 
			
		||||
.pswp__ui--idle .pswp__button--arrow--right {
 | 
			
		||||
    opacity: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui--hidden .pswp__top-bar,
 | 
			
		||||
.pswp__ui--hidden .pswp__caption,
 | 
			
		||||
.pswp__ui--hidden .pswp__button--arrow--left,
 | 
			
		||||
.pswp__ui--hidden .pswp__button--arrow--right {
 | 
			
		||||
    opacity: 0.001;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__ui--one-slide .pswp__button--arrow--left,
 | 
			
		||||
.pswp__ui--one-slide .pswp__button--arrow--right,
 | 
			
		||||
.pswp__ui--one-slide .pswp__counter {
 | 
			
		||||
    display: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp__element--disabled {
 | 
			
		||||
    display: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.pswp--minimal--dark .pswp__top-bar {
 | 
			
		||||
    background: none;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
Hey! You reached the end.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user