/*
Theme Name: Jessica Padkin Portfolio
Theme URI: https://jessicapadkin.com/
Author: Jessica Padkin
Description: A lightweight, responsive, gallery-led portfolio theme for Jessica Padkin.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: jessica-padkin
License: GPL-2.0-or-later
*/

:root {
  --jp-bg: #fff;
  --jp-text: #171717;
  --jp-muted: #737373;
  --jp-border: #e6e6e6;
  --jp-sidebar: 280px;
  --jp-gap: 24px;
  --jp-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jp-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jp-bg);
  color: var(--jp-text);
  font-family: var(--jp-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  border: 2px solid #111;
}

.jp-mobile-header {
  display: none;
}

.jp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--jp-sidebar);
  flex-direction: column;
  overflow-y: auto;
  padding: 48px 32px 32px;
  background: var(--jp-bg);
  border-right: 1px solid var(--jp-border);
}

.jp-brand {
  display: block;
  margin-bottom: 24px;
}

.jp-brand img,
.jp-brand .custom-logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-inline: auto;
}

.jp-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 48px;
}

.jp-social a {
  display: inline-flex;
  color: var(--jp-muted);
  text-decoration: none;
}

.jp-social a:hover,
.jp-social a:focus-visible {
  color: var(--jp-text);
}

.jp-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.jp-social svg.jp-social-icon--outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jp-nav {
  flex: 1;
}

.jp-nav ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jp-nav a {
  color: var(--jp-muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.jp-nav a:hover,
.jp-nav a:focus-visible,
.jp-nav .current-menu-item > a,
.jp-nav .current_page_item > a,
.jp-nav .current-cat > a {
  color: var(--jp-text);
}

.jp-sidebar-copy {
  margin: 48px 0 0;
  color: var(--jp-muted);
  font-size: 12px;
  line-height: 1.6;
}

.jp-main {
  min-height: 100vh;
  margin-left: var(--jp-sidebar);
}

.jp-gallery {
  column-count: 4;
  column-gap: var(--jp-gap);
  padding: 32px;
}

.jp-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--jp-gap);
  break-inside: avoid;
}

.jp-card-button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
  border: 0;
  text-align: left;
}

.jp-card-button img {
  width: 100%;
  background: #f5f5f5;
  transition: opacity 180ms ease;
}

.jp-card-button:hover img {
  opacity: 0.86;
}

.jp-card-button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 4px;
}

.jp-empty,
.jp-content-wrap {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 72px;
}

.jp-page-title {
  margin: 0 0 40px;
  font-family: var(--jp-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.entry-content {
  font-size: 18px;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  font-family: var(--jp-serif);
  line-height: 1.25;
}

.entry-content img {
  height: auto;
}

.entry-content iframe {
  max-width: 100%;
  border: 0;
}

.entry-content input:not([type="submit"]),
.entry-content textarea,
.entry-content select {
  width: 100%;
  padding: 11px 12px;
  color: var(--jp-text);
  background: #fff;
  border: 1px solid #bbb;
}

.entry-content input[type="submit"],
.entry-content button {
  padding: 12px 20px;
  color: #fff;
  cursor: pointer;
  background: #171717;
  border: 0;
}

.jp-single-image {
  margin-bottom: 36px;
}

.jp-meta {
  margin-top: -24px;
  margin-bottom: 36px;
  color: var(--jp-muted);
  font-size: 13px;
}

.jp-lightbox[hidden] {
  display: none;
}

.jp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #fff;
  background: rgba(0, 0, 0, 0.96);
}

.jp-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.jp-lightbox-close,
.jp-lightbox-nav {
  display: inline-grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.jp-lightbox-close {
  width: 44px;
  height: 44px;
  font-size: 35px;
  line-height: 1;
}

.jp-lightbox-stage {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 12px 78px;
}

.jp-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.jp-lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  font-size: 45px;
}

.jp-lightbox-prev {
  left: 0;
}

.jp-lightbox-next {
  right: 0;
}

.jp-lightbox-caption {
  padding: 12px 24px 24px;
  text-align: center;
}

.jp-lightbox-title {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 25px;
  font-weight: 400;
}

.jp-lightbox-description {
  max-width: 640px;
  margin: 6px auto 0;
  color: #bdbdbd;
  font-size: 14px;
}

.jp-lightbox-link {
  display: inline-block;
  margin-top: 10px;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.jp-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .jp-gallery {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .jp-gallery {
    column-count: 2;
  }
}

@media (max-width: 782px) {
  .admin-bar .jp-mobile-header {
    top: 46px;
  }

  .jp-sidebar {
    display: none;
    inset: 64px 0 0;
    width: 100%;
    padding: 32px 24px;
    border-right: 0;
  }

  .admin-bar .jp-sidebar {
    top: 110px;
  }

  body.jp-menu-open .jp-sidebar {
    display: flex;
  }

  .jp-sidebar .jp-brand {
    display: none;
  }

  .jp-sidebar .jp-social {
    justify-content: flex-start;
    order: 2;
    margin: 32px 0 0;
  }

  .jp-sidebar-copy {
    display: none;
  }

  .jp-mobile-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--jp-border);
  }

  .jp-mobile-brand img,
  .jp-mobile-brand .custom-logo {
    width: auto;
    height: 34px;
  }

  .jp-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-items: center;
    cursor: pointer;
    background: transparent;
    border: 0;
  }

  .jp-menu-lines,
  .jp-menu-lines::before,
  .jp-menu-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    content: "";
    transition: transform 180ms ease;
  }

  .jp-menu-lines {
    position: relative;
  }

  .jp-menu-lines::before {
    position: absolute;
    top: -7px;
  }

  .jp-menu-lines::after {
    position: absolute;
    top: 7px;
  }

  body.jp-menu-open .jp-menu-lines {
    background: transparent;
  }

  body.jp-menu-open .jp-menu-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.jp-menu-open .jp-menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .jp-main {
    margin-left: 0;
    padding-top: 64px;
  }

  .jp-gallery {
    padding: 16px;
    column-gap: 16px;
  }

  .jp-card {
    margin-bottom: 16px;
  }

  .jp-content-wrap {
    padding-block: 48px;
  }
}

@media (max-width: 560px) {
  .jp-gallery {
    column-count: 1;
  }

  .jp-lightbox-stage {
    padding-inline: 46px;
  }

  .jp-lightbox-nav {
    width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}