/* ===================================================================
   CUSTOM STYLES - KIRBY PORTFOLIO (Gallery-free version)
   ================================================================ */

/* ===== CSS VARIABLES & ROOT ===== */
:root {
  --content-padding: 100px;
  --content-padding-tablet: 50px;
  --content-padding-mobile: 25px;
  --text-color: #222;
  --border-color: rgba(34, 34, 34, 0.1);
  --muted-text: rgba(34, 34, 34, 0.7);
  --audio-bg: #f8f8f8;

  /* Fluid Typography - scales smoothly between mobile and desktop */
  --font-size-fluid-large: clamp(18px, 1.25vw + 14px, 24px);
  --font-size-fluid-medium: clamp(16px, 1.1vw + 13px, 20px);
  --font-size-fluid-small: clamp(14px, 1vw + 12px, 18px);
  --font-size-fluid-tiny: clamp(10px, 0.8vw + 9px, 12px);
}

/* ===== GLOBAL STYLES ===== */

/* Smooth scroll behavior for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Remove focus outline on all elements */
*:focus,
*:focus-visible {
  outline: none !important;
}

/* Remove focus outline specifically on links and interactive elements */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
}

/* Remove tabindex focus outline */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none !important;
}

/* Remove focus outline on navigation links */
.nav-link:focus,
.nav-link:focus-visible,
.burger-menu__link:focus,
.burger-menu__link:focus-visible,
.dropdown-item:focus,
.dropdown-item:focus-visible {
  outline: none !important;
}

/* Reset and base typography */
* {
  font-weight: 500;
}

strong, b {
  font-weight: 700;
}

/* Link styles - SPECIFIC selectors to avoid conflicts */
a:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  color: var(--theme-text-color);
  text-decoration: underline;
  transition: opacity 0.2s ease-in-out;
}

/* Text links ONLY - very specific to avoid gallery conflicts */
.prose p a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
.prose li a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
.content p a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
.content li a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
article p a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
article li a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  opacity: 0.7;
}

/* Remove underlines from navigation and layout links */
nav a,
header a,
.grid a,
a.no-underline,
.leaflet-control-zoom a {
  text-decoration: none;
}

/* Prose overrides */
.prose a:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  color: var(--theme-text-color) !important;
  text-decoration: underline;
  transition: opacity 0.2s ease-in-out;
}

.prose p a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out),
.prose li a:hover:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) {
  opacity: 0.7 !important;
  color: var(--theme-text-color) !important;
}

/* Fix line breaks in prose content */
.prose br {
  display: block;
  margin: 0.5em 0;
  content: "";
}

.prose p {
  margin-bottom: 1em;
}

/* Ensure line breaks work in project descriptions */
.project-description br {
  display: block;
  margin: 0.5em 0;
  content: "";
}

.project-description p {
  margin-bottom: 1em;
}

/* More specific targeting for project description paragraphs */
.project-description.prose p {
  margin-bottom: 1.5em;
  display: block;
}

.project-description.prose br {
  display: block;
  margin: 0.75em 0;
  content: "";
  line-height: 0;
}

/* Project description typography (without prose class) */
.project-description {
  line-height: 1.7;
}

.project-description p {
  margin-bottom: 1.25em;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-description p.empty-line {
  margin: 0;
  height: 1.5em;
}

.project-description strong,
.project-description b {
  font-weight: 700;
}

.project-description a {
  font-weight: inherit;
  text-decoration: underline;
}

.project-description strong a,
.project-description b a {
  font-weight: 700 !important;
}

.project-description em a,
.project-description i a {
  font-style: italic !important;
}

.project-description strong em a,
.project-description em strong a {
  font-weight: 700 !important;
  font-style: italic !important;
}

.project-description h1 {
  font-weight: 700;
  margin-top: 0 !important;
  margin-bottom: 0.3em !important;
}

.project-description h2 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.3em !important;
}

.project-description h3 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.8em !important;
}

.project-description h4,
.project-description h5,
.project-description h6 {
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
}

.project-description ul,
.project-description ol {
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.project-description ul {
  list-style-type: disc;
}

.project-description ol {
  list-style-type: decimal;
}

.project-description blockquote {
  border-left: 4px solid var(--theme-text-color, #222);
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
}

/* ===== LAYOUT SYSTEM ===== */

.main-container {
  width: 100%;
  max-width: 100%;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
  margin-left: auto;
  margin-right: auto;
}

.content-module-container {
  width: 100%;
  min-width: 300px;
  max-width: 1250px;
}

/* ===== PROJECT GRID STYLES ===== */

.project-title {
  padding: 0;
  font-size: 1.125rem;
}

.project-year {
  font-weight: normal;
  color: var(--theme-text-color);
}

/* Project category styling (padding, background, border, etc.) is controlled by panel settings in theme-css.php */
.project-category {
  /* Styling handled by Theme Settings > Typography & Text > Tag & Filter Styling */
}

.project-grid-item h3 {
  color: var(--theme-text-color) !important;
  font-weight: normal !important;
}

/* Note: Audio, Video, Slider, and other content block styles are handled by the standalone content-blocks plugin */

/* ===== LIGHTBOX STYLES ===== */

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  :root {
    --content-padding: var(--content-padding-tablet);
  }

  .main-container,
  header .main-container,
  footer .main-container {
    padding-left: var(--content-padding-tablet);
    padding-right: var(--content-padding-tablet);
  }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
  :root {
    --content-padding: var(--content-padding-mobile);
  }

  .main-container,
  header .main-container,
  footer .main-container {
    padding-left: var(--content-padding-mobile);
    padding-right: var(--content-padding-mobile);
  }

  /* Footer mobile stacking */
  footer .main-container > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }

  footer .main-container > div > div {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Audio responsive styles now handled by content-blocks plugin */

 