/*
Theme Name: Cavra Photography
Theme URI: https://cavrastudio.com/
Author: Cavra Studio
Description: A minimal dark photography theme for Cavra Studio.
Version: 1.3.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cavra-photography
*/
:root {
  color-scheme: dark;
  --paper: #111310;
  --panel: #171a16;
  --ink: #e7e2d8;
  --muted: #a29f95;
  --line: #ffffff18;
  --accent: #b9aa88;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --shell: clamp(24px, 5vw, 88px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 45px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
[hidden] { display: none !important; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--paper); }
.section-shell { padding-inline: var(--shell); max-width: 1800px; margin-inline: auto; }
.eyebrow { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 10px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { padding: 32px var(--shell); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); }
.brand > a > span { display: block; font-size: 25px; line-height: 1; font-weight: 500; letter-spacing: 3px; }
.brand small { display: block; font-size: 7px; letter-spacing: 5px; margin-top: 10px; }
.custom-logo { max-height: 50px; width: auto; filter: brightness(0) invert(.9); }
.primary-nav ul { margin: 0; padding: 0; display: flex; list-style: none; gap: 34px; }
.primary-nav a, .header-cta { font-size: 11px; letter-spacing: .5px; }
.primary-nav a { position: relative; display: inline-block; padding-block: 10px; color: #e7e2d8d9; transition: color .2s; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a::after { content: ""; position: absolute; inset: auto 0 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { justify-self: end; display: flex; gap: 20px; align-items: center; }
.header-cta span { font-size: 18px; color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px 0; }
.menu-icon { display: block; width: 22px; height: 14px; position: relative; font-size: 0; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.menu-icon::before { top: 3px; }
.menu-icon::after { top: 11px; }
.menu-toggle[aria-expanded=true] .menu-icon::before { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-icon::after { top: 7px; transform: rotate(-45deg); }
.cavra-home .site-header { position: absolute; inset: 0 0 auto; z-index: 5; border: 0; }
.photo-hero { height: 100svh; min-height: 650px; max-height: 1100px; background: #171c16; color: var(--ink); position: relative; overflow: hidden; }
.hero-slides, .hero-slide, .hero-slide img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide:not([hidden]) { animation: frame-in .7s ease-out both; }
@keyframes frame-in { from { opacity: .25; } to { opacity: 1; } }
.hero-slide img { object-fit: cover; object-position: center 42%; filter: brightness(.72) saturate(.8); }
.hero-shade { pointer-events: none; background: linear-gradient(180deg,#080b09a6,transparent 35%,#080b091a 55%,#080b09bd); }
.hero-slide figcaption { position: absolute; right: var(--shell); bottom: 102px; z-index: 2; color: #ded9ccb3; text-align: right; line-height: 1.5; }
.hero-slide figcaption > span { display: none; }
.hero-slide figcaption small { font-size: 8px; }
.mobile-hero-credit { display: none; }
.hero-content { position: absolute; left: var(--shell); right: var(--shell); bottom: 140px; z-index: 2; }
.hero-content h1 { font: 400 clamp(30px,3.5vw,56px)/1.2 var(--serif); letter-spacing: -.8px; margin-bottom: 25px; }
.hero-work-link { display: inline-flex; gap: 30px; align-items: center; font-size: 10px; letter-spacing: 1px; }
.hero-work-link span { color: var(--accent); font-size: 21px; }
.hero-scroll { position: absolute; bottom: 37px; left: var(--shell); z-index: 2; font-size: 25px; color: var(--accent); }
.slide-progress { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.slide-progress i { width: 25px; height: 1px; background: #e7e2d84d; transition: background .3s, width .3s; }
.slide-progress i.is-active { width: 48px; background: var(--accent); }
.slide-controls { position: absolute; right: var(--shell); bottom: 36px; z-index: 3; display: flex; align-items: center; gap: 20px; }
.slide-controls button { color: var(--ink); background: none; border: 0; width: 44px; height: 44px; font-size: 23px; opacity: .75; }
.slide-controls button:hover { opacity: 1; color: var(--accent); }
.slide-controls > span { font-size: 9px; letter-spacing: 2px; font-variant-numeric: tabular-nums; color: #ded9ccb3; }
.photo-services { padding-block: 105px; max-width: 1800px; margin-inline: auto; }
.photo-section-head { padding: 0 var(--shell) 35px; display: flex; align-items: center; gap: 30px; }
.photo-section-head::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.photo-section-head h2, .section-heading h2 { font: 400 27px/1.3 var(--serif); letter-spacing: -.3px; }
.service-photo-grid { padding-inline: var(--shell); display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.service-photo { display: block; grid-column: span 2; position: relative; background: var(--panel); overflow: hidden; min-height: 410px; }
.service-photo-1, .service-photo-2 { grid-column: span 3; min-height: 570px; }
.service-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .8s; }
.service-photo-1 img { object-position: center 65%; }
.service-photo-3 img { object-position: center 25%; }
.service-photo:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#080b090d,transparent 40%,#080b09bd); pointer-events: none; }
.service-photo:hover img { transform: scale(1.025); }
.service-photo-copy { padding-top: 18px; border-top: 1px solid #ffffff30; position: absolute; z-index: 1; left: 25px; right: 25px; bottom: 43px; }
.service-photo-copy h3 { font: 400 clamp(22px,1.9vw,30px)/1.25 var(--serif); letter-spacing: -.3px; }
.service-detail { display: block; font-size: 9px; margin-top: 10px; color: #ded9ccd9; }
.service-photo-arrow { position: absolute; top: 18px; right: 20px; z-index: 1; font-size: 22px; opacity: 0; transition: opacity .2s; }
.service-photo:hover .service-photo-arrow, .service-photo:focus-visible .service-photo-arrow { opacity: 1; }
.demo-image-credit { position: absolute; bottom: 14px; left: 25px; z-index: 1; font-size: 7px; color: #ded9ccc9; }
.frames-section { padding-block: 20px 105px; max-width: 1800px; margin-inline: auto; }
.photo-wall { display: flex; flex-wrap: wrap; gap: 16px; padding-inline: var(--shell); }
.wall-frame { flex: 1 1 calc((100% - 32px) / 3); min-width: 0; height: clamp(220px, 26vw, 420px); }
.wall-frame > a { height: 100%; display: block; position: relative; overflow: hidden; background: var(--panel); }
.wall-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wall-frame > a:hover img { transform: scale(1.015); }
.frame-expand { position: absolute; right: 15px; bottom: 12px; font-size: 24px; color: white; text-shadow: 0 1px 10px #000; opacity: 0; transition: opacity .2s; }
.wall-frame > a:hover .frame-expand, .wall-frame > a:focus-visible .frame-expand { opacity: 1; }
.work { padding-block: 15px 90px; }
.section-heading { margin-bottom: 30px; display: flex; gap: 30px; align-items: center; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filters { display: flex; gap: 25px; flex-wrap: wrap; margin-bottom: 25px; }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; font-size: 10px; color: var(--muted); }
.filters button[aria-pressed=true] { border-color: var(--accent); color: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 20px; }
.project-image { position: relative; overflow: hidden; background: var(--panel); aspect-ratio: 1.5; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card a:hover img { transform: scale(1.015); }
.project-open { transition: transform .25s; position: absolute; right: 20px; bottom: 15px; font-size: 24px; color: white; text-shadow: 0 1px 10px #000; }
.project-card a:hover .project-open { transform: translate(3px,-3px); }
.project-meta { margin-top: 15px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.project-meta h3 { font: 400 20px/1.4 var(--serif); }
.project-meta > span { font-size: 9px; color: var(--muted); }
.work .project-meta > span { display: none; }
.work-bottom { margin-top: 30px; text-align: right; }
.empty-state { color: var(--muted); max-width: 550px; padding-block: 30px; }
.empty-state a { text-decoration: underline; }
.image-placeholder { height: 100%; display: grid; place-items: center; padding: 25px; }
.studio { position: relative; padding-block: 60px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.studio::before { content: ""; position: absolute; top: 0; left: var(--shell); right: var(--shell); height: 1px; background: var(--line); }
.studio h2 { font: 400 33px/1.3 var(--serif); }
.studio p { max-width: 410px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.contact { background: var(--panel); border-top: 1px solid var(--line); padding-block: 85px 45px; max-width: none; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact h2 { font: 400 clamp(34px,4vw,60px)/1.2 var(--serif); letter-spacing: -1px; }
.text-link { display: inline-flex; align-items: center; gap: 30px; border-bottom: 1px solid #b9aa8859; padding-bottom: 8px; font-size: 11px; }
.text-link, .hero-work-link, .header-cta, .contact-details a, .footer-bottom a { transition: color .25s; }
.text-link:hover, .hero-work-link:hover, .header-cta:hover, .contact-details a:hover, .footer-bottom a:hover { color: var(--accent); }
.text-link span, .hero-work-link span, .header-cta span { transition: transform .25s; }
.text-link:hover span, .hero-work-link:hover span, .header-cta:hover span { transform: translate(3px,-3px); }
.text-link span { color: var(--accent); font-size: 22px; }
.contact-details { padding-top: 30px; border-top: 1px solid var(--line); margin-top: 55px; display: flex; align-items: center; gap: 40px; color: var(--muted); font-size: 12px; }
.contact-details > span { margin-left: auto; font-size: 10px; }
.site-footer { padding: 30px var(--shell); display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 40px; }
.footer-wordmark { font-size: 22px; letter-spacing: 2px; font-weight: 400; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 9px; color: var(--muted); }
.footer-bottom > div { display: flex; gap: 25px; }
.footer-bottom > a { color: var(--accent); font-size: 20px; }
.inner-page { padding-block: 60px 90px; min-height: 65vh; }
.inner-page h1 { font: 400 clamp(37px,5vw,72px)/1.15 var(--serif); letter-spacing: -1.5px; margin-block: 25px 45px; overflow-wrap: anywhere; }
.inner-page h2 { font: 400 32px/1.3 var(--serif); }
.archive-intro { margin-bottom: 30px; color: var(--muted); }
.single-cover { width: 100%; max-width: 1400px; margin: 0 auto 45px; height: auto; }
.entry-content { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content > * { margin-bottom: 25px; }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; }
.entry-content h2, .entry-content h3 { margin-top: 35px; font-family: var(--serif); font-weight: 400; }
.entry-content h3 { font-size: 27px; }
.entry-content img { height: auto; }
.entry-content .wp-block-gallery { gap: 16px; }
.entry-content .blocks-gallery-grid { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: 16px; }
.entry-content .alignwide { max-width: 1200px; }
.project-context { display: grid; grid-template-columns: .6fr 2fr; gap: 45px; margin-block: 45px; }
.project-page .project-grid { display: block; columns: 2; column-gap: 16px; }
.project-page .project-grid > figure { break-inside: avoid; margin-bottom: 16px; }
.project-page .project-grid img { width: 100%; height: auto; }
.project-pagination { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; border-block: 1px solid var(--line); padding-block: 25px; margin-top: 55px; font-size: 12px; color: var(--muted); }
.project-enquiry { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 55px; }
.button { display: inline-flex; align-items: center; gap: 35px; padding: 14px 22px; font-size: 11px; }
.button-dark, .button-light { background: var(--ink); color: var(--paper); }
.button:hover { background: var(--accent); color: var(--paper); }
.navigation.pagination { margin-top: 35px; }
.page-numbers { padding: 8px 14px; display: inline-block; }
.page-numbers.current { background: var(--panel); color: var(--accent); }
.photo-lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; padding: 75px 85px; color: var(--ink); background: #0b0d0bf7; }
.photo-lightbox::backdrop { background: #0b0d0b; }
.photo-lightbox[open] { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: 15px; }
.lightbox-frame { height: calc(100dvh - 155px); display: flex; align-items: center; justify-content: center; min-width: 0; position: relative; }
.lightbox-frame { touch-action: pan-y pinch-zoom; }
.lightbox-frame.is-loading::after { content: ""; position: absolute; width: 24px; height: 24px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: loading-turn .8s linear infinite; }
@keyframes loading-turn { to { transform: rotate(360deg); } }
.lightbox-frame img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: 0; font-size: 9px; letter-spacing: 1px; display: flex; gap: 15px; align-items: center; padding: 10px; }
.lightbox-close span { font-size: 30px; }
.lightbox-prev, .lightbox-next { background: none; border: 0; width: 48px; height: 48px; font-size: 25px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--accent); }
.lightbox-meta { position: absolute; left: 85px; right: 85px; bottom: 25px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.lightbox-error { position: absolute; inset: auto 0; text-align: center; font-size: 14px; }
.lightbox-open { overflow: hidden; }
.photo-lightbox:focus-visible { outline: 0; }
@media(max-width:960px) {
  .site-header { display: flex; padding-block: 25px; flex-wrap: wrap; gap: 22px; }
  .header-cta { margin-left: auto; }
  .menu-toggle:not([hidden]) { min-width: 44px; min-height: 44px; justify-content: flex-end; display: flex; gap: 15px; align-items: center; order: 3; font-size: 10px; }
  .primary-nav { order: 4; width: 100%; }
  .primary-nav.js-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { padding: 20px 0 10px; flex-wrap: wrap; gap: 25px; }
  .primary-nav.is-open { padding: 8px 22px; background: #111310fa; border: 1px solid var(--line); box-shadow: 0 18px 35px #0003; }
  .primary-nav.is-open ul { flex-direction: column; gap: 0; padding: 0; }
  .primary-nav.is-open a { display: block; padding-block: 14px; font-size: 13px; }
  .primary-nav.is-open li + li { border-top: 1px solid var(--line); }
  .service-photo { min-height: 370px; }
  .service-photo-1, .service-photo-2 { min-height: 460px; }
  .service-photo-copy { left: 20px; right: 20px; }
  .service-photo-copy h3 { font-size: 24px; }
  .demo-image-credit { left: 20px; }
  .wall-frame { flex-basis: calc((100% - 16px) / 2); height: clamp(220px, 34vw, 330px); }
  .studio { gap: 40px; }
  .footer-bottom { font-size: 9px; }
  .photo-lightbox { padding-inline: 15px; }
  .lightbox-meta { left: 25px; right: 25px; }
}
@media(max-width:640px) {
  .site-header { gap: 20px; padding-block: 23px; }
  .brand > a > span { font-size: 23px; }
  .header-cta { gap: 12px; font-size: 10px; }
  .menu-toggle span:first-child { display: none; }
  .photo-hero { min-height: 630px; }
  .hero-slide img { object-position: 58% 38%; }
  .hero-content { bottom: 155px; }
  .hero-content h1 { font-size: 35px; max-width: 310px; margin-bottom: 22px; letter-spacing: -.6px; }
  .hero-slide figcaption { bottom: 100px; right: var(--shell); left: auto; text-align: right; }
  .desktop-hero-credit { display: none; }
  .mobile-hero-credit { display: block; }
  .slide-controls { gap: 10px; bottom: 34px; }
  .slide-controls > span { font-size: 8px; }
  .hero-scroll { bottom: 41px; }
  .slide-progress { bottom: 20px; }
  .photo-services { padding-block: 50px; }
  .photo-section-head { padding-bottom: 23px; }
  .photo-section-head h2, .section-heading h2 { font-size: 25px; }
  .service-photo-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-photo, .service-photo-1, .service-photo-2 { grid-column: auto; min-height: 400px; }
  .service-photo-3 { min-height: 460px; }
  .service-photo-5 { min-height: 330px; }
  .service-photo-copy h3 { font-size: 25px; }
  .service-detail { font-size: 9px; }
  .service-photo-arrow { opacity: .75; }
  .frames-section { padding-block: 5px 50px; }
  .photo-wall { gap: 10px; padding-inline: 15px; }
  .wall-frame { flex-basis: calc((100% - 10px) / 2); height: clamp(165px, 48vw, 300px); }
  .frame-expand { opacity: .8; font-size: 20px; right: 10px; bottom: 8px; }
  .work { padding-block: 5px 50px; }
  .project-grid { grid-template-columns: 1fr; gap: 30px; }
  .project-meta h3 { font-size: 21px; }
  .studio { grid-template-columns: 1fr; gap: 20px; padding-block: 35px 55px; }
  .studio h2 { font-size: 28px; }
  .contact { padding-block: 45px 35px; }
  .contact-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact h2 { font-size: 39px; }
  .contact-details { flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 30px; font-size: 12px; }
  .contact-details > span { margin-left: 0; margin-top: 8px; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { align-items: flex-start; gap: 17px; }
  .footer-bottom > div { gap: 18px; flex-wrap: wrap; }
  .inner-page { padding-block: 40px 65px; }
  .inner-page h1 { font-size: 40px; letter-spacing: -1px; }
  .project-context { grid-template-columns: 1fr; gap: 15px; }
  .project-page .project-grid { columns: 1; }
  .project-enquiry { flex-direction: column; align-items: flex-start; gap: 25px; }
  .photo-lightbox { padding: 60px 8px 75px; }
  .photo-lightbox[open] { grid-template-columns: 1fr; }
  .lightbox-frame { height: calc(100dvh - 150px); }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 63px; z-index: 1; width: 42px; height: 42px; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-close { top: 10px; right: 12px; }
  .lightbox-meta { left: 20px; right: 20px; bottom: 20px; font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
