/*
Theme Name:   Stallman Studio
Theme URI:    https://stallmanstudio.com/stallman-studio
Author:       Stallman Stdio
Author URI:   https://stallmanstudio.com/
Description:  Theme for Stallman Studio
Version:      1.0.0
Text Domain:  stallman-studio

© 2025 Stallman Studio
*/

/* -------------------------------------------------------------------------- */
/*                            Custom Web Fonts                                */
/* -------------------------------------------------------------------------- */

@font-face {
  font-family: "Bellefair";
  src:
    url("fonts/Bellefair-Regular.woff2") format("woff2"),
    url("fonts/Bellefair-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "Lora";
  src:
    url("fonts/Lora-Regular.woff2") format("woff2"),
    url("fonts/Lora-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

/* -------------------------------------------------------------------------- */
/*                        CSS Custom Properties (Root)                        */
/* -------------------------------------------------------------------------- */

:root {
  /* Gutter System */
  --site-gutter: 18px;

  /* Content Width Constraints */
  --content-max-width: 1200px;
  --wide-max-width: 1600px;
  --medium-max-width: 800px;

  --ssck-darkest-grey: #2e2e2e;
  --ssck-dark-grey: #555555;
  --ssck-grey: #888888;
  --ssck-light-grey: #e8e8e8;
}

/* Tablet breakpoint: reduce gutter */
@media (max-width: 1024px) {
  :root {
    --site-gutter: 14px;
  }
}

/* Mobile breakpoint: reduce gutter further */
@media (max-width: 640px) {
  :root {
    --site-gutter: 10px;
  }
}

/* -------------------------------------------------------------------------- */
/*                                    Reset                                   */
/* -------------------------------------------------------------------------- */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1.2;
  padding: 0px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}
ul {
  list-style: none;
}

blockquote {
  quotes: none;
}
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}
del {
  text-decoration: line-through;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a img {
  border: none;
}

a,
a:focus,
a:visited,
a:active {
  border: 0;
}

img {
  display: block;
}

input[type="submit"]::-moz-focus-inner {
  border: 0;
}
input[type="submit"]::-webkit-focus-inner {
  border: 0;
}

.homeSection img,
.post p img,
.page p img,
.project p img,
.postThumb,
div.wp-caption img {
  max-width: 100% !important;
  height: auto;
}

.wp-caption {
  max-width: 100% !important;
}

/* -------------------------------------------------------------------------- */
/*                                    Global                                  */
/* -------------------------------------------------------------------------- */

body {
  font-size: 100%;
  width: auto;
  height: auto;
  padding: 0 0 0 0;
  margin: 0;
  color: #555555;
}

p {
  line-height: 1.7em;
  margin: 0 0 20px 0;
}

p:last-child {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 0 0 0 0;
  padding: 0;
}

img {
  margin: 0;
}

img.left {
  margin: 0 15px 15px 0;
  float: left;
}

a {
  text-decoration: none;
  outline: none;
}

a {
  color: var(--ssck-grey);
}

a:hover {
  color: var(--ssck-dark-grey);
}

a img {
  border: none;
}

div a:where(:not(.wp-element-button)) {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 15px 0;
  font-weight: normal;
}

blockquote,
address {
  margin: 0 0 30px 0;
  padding: 0 30px 0 30px;
  font-style: italic;
  font-size: 1.2em;
  border-left: 5px solid #ccb676;
}

pre {
  margin: 0 0 20px;
  padding: 10px;
  background: #fff;
  overflow: auto;
  border: 1px solid #e4e4e4;
}

.left {
  float: left;
}

.right {
  float: right;
}

/* Clearfix ----------- */

/* Some clearfix code from HTML5 Boilerplate */
.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  visibility: hidden;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

a.action {
  font-style: italic;
}

/* -------------------------------------------------------------------------- */
/*                         Global Typography Override                         */
/* -------------------------------------------------------------------------- */

/* Base body font: Lora for all regular copy */
body {
  font-family: "Lora", "Georgia", "Times New Roman", serif;
  letter-spacing: 0.5px;
}

/* All headings use Bellefair and are uppercase */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bellefair", "Georgia", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}
h1 {
  text-align: center;
  font-size: 34px;
  letter-spacing: 4px;
  margin-top: 34px;
  margin-bottom: 34px;
}
h1.h1-big {
  font-size: 44px;
}
h2 {
  font-size: 32px;
  letter-spacing: 3px;
}
h3 {
  font-size: 30px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 18px;
}
h6 {
  font-size: 14px;
}

@media (max-width: 767px) {
  h1 {
    margin-top: 24px;
    margin-bottom: 20px;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: none;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 26px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 16px;
  }
  h6 {
    font-size: 14px;
  }
}

input {
  font-family: Lora, "Georgia", "Times New Roman", serif;
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------------------------- */
/*                                    Header                                  */
/* -------------------------------------------------------------------------- */

#header {
  padding-top: 10px;
  padding-bottom: 20px;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  border-bottom: 1px solid var(--ssck-light-grey);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ! Remove if logo gets tight-cropped in the future */
#logo {
  margin-left: -10px;
}

#mainNav {
  margin-top: 28px;
}

#mainNav ul {
  display: flex;
  margin-bottom: 0;
}

#mainNav ul li {
  position: relative;
  white-space: nowrap;
  padding: 0;
}

#mainNav ul li a {
  line-height: 12px;
  color: var(--ssck-grey);
  font-size: 1.1em;
  padding-right: 1.25em;
  padding-left: 1.25em;
}

#mainNav ul li.current-menu-item a {
  text-decoration: none;
  color: var(--ssck-darkest-grey);
}

#mainNav ul li.sfHover a,
#mainNav ul li a:hover,
#mainNav ul li:hover {
  text-decoration: none;
  color: var(--ssck-darkest-grey);
}

/* Search icon menu item */
#mainNav ul li#menu-item-13732 a {
  display: flex;
  align-items: center;
  font-size: 0;
  padding-left: 22px;
  padding-right: 0;
}

/* Both icons loaded upfront via stacked backgrounds; hover toggles visibility with background-size to avoid flash */
#mainNav ul#menu-main li#menu-item-13732 a::before {
  content: "";
  width: 20px;
  height: 20px;
  background:
    url("../../plugins/stallman-content-kit/assets/public/images/search-icon.svg") no-repeat center / contain,
    url("../../plugins/stallman-content-kit/assets/public/images/search-icon-hover.svg") no-repeat center / 0 0;
}
#mainNav ul#menu-main li#menu-item-13732.current-menu-item a::before {
  background: url("../../plugins/stallman-content-kit/assets/public/images/search-icon-hover.svg") no-repeat center / contain;
}
#mainNav ul#menu-main li#menu-item-13732 a:hover::before {
  background:
    url("../../plugins/stallman-content-kit/assets/public/images/search-icon.svg") no-repeat center / 0 0,
    url("../../plugins/stallman-content-kit/assets/public/images/search-icon-hover.svg") no-repeat center / contain;
}

@media (max-width: 1024px) {
  #mainNav ul li a {
    padding-right: 0.65em;
    padding-left: 0.65em;
    font-size: 1.05em;
  }

  #mainNav ul#menu-main li#menu-item-13732 a::before {
    width: 18px;
    height: 18px;
  }

  #mainNav ul#menu-main li#menu-item-13732 a {
    padding-top: 1px;
    padding-left: 10px;
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  /* ! Remove if logo gets tight-cropped in the future */
  #logo {
    padding-left: 4px;
    margin-left: 0;
  }

  #mainNav {
    margin-top: 4px;
    margin-bottom: 12px;
  }

  #mainNav ul#menu-main li#menu-item-13732 a {
    padding-right: 10px;
  }
}

@media (max-width: 640px) {
  #header {
    padding-bottom: 12px;
  }

  #mainNav ul li a {
    padding-right: 0.6em;
    padding-left: 0.6em;
    font-size: 0.95em;
  }

  #mainNav ul#menu-main li#menu-item-13732 a::before {
    margin-top: -2px;
  }

  #mainNav ul#menu-main li#menu-item-13732 a {
    padding-top: 3px;
  }
}

/* -------------------------------------------------------------------------- */
/*                            Body Container Content                          */
/* -------------------------------------------------------------------------- */

#container {
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}

.wrap {
  position: relative; /* Added for stacking context */
}

/* Specifically targets main container (under header) that is not full-width  */
.container-constrained {
  max-width: var(--content-max-width);
  margin: 0 auto 20px;
  padding-top: 34px;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

@media (max-width: 767px) {
  .container-constrained {
    padding-top: 20px;
  }
}

/* Added blocks layout container for Gutenberg block content --- */
.entry-content {
  /* Apply gutter padding */
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);

  /* Content width constraints */
  --wp--style--global--content-size: var(--content-max-width);
  --wp--style--global--wide-size: var(--wide-max-width);

  /* Enable container queries */
  container-type: inline-size;
}

/* Non-aligned blocks automatically constrain */
.entry-content > * {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Full width blocks break out to viewport edges */
.entry-content > .alignfull {
  max-width: none;
  margin-left: calc(-1 * var(--site-gutter));
  margin-right: calc(-1 * var(--site-gutter));
  width: calc(100% + (2 * var(--site-gutter)));
}

/* Only add child padding when container is narrower than content max-width */
@container (max-width: 1200px) {
  /* Non-column children: both paddings */
  .alignfull > *:not(.alignfull):not(.wp-block-column) {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
  }

  /* Column children: no padding by default */
  .alignfull > .wp-block-column {
    padding-left: 0;
    padding-right: 0;
  }

  /* First column: left padding only */
  .alignfull > .wp-block-column:first-child {
    padding-left: var(--site-gutter);
  }

  /* Last column: right padding only */
  .alignfull > .wp-block-column:last-child {
    padding-right: var(--site-gutter);
  }
}

/* Wide aligned blocks */
.entry-content > .alignwide {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Medium width block style — specificity matches .entry-content > * */
.entry-content > .is-style-medium,
.is-style-medium {
  max-width: var(--medium-max-width, 800px);
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------------- */
/*                                Global UI Misc                              */
/* -------------------------------------------------------------------------- */

[data-scroll-fade-up] {
  opacity: 0;
}

.ssck-btn a,
button.ssck-btn {
  display: inline-block;
  padding: 14px 30px;
  background-color: var(--ssck-grey);
  border-top-color: unset;
  border-bottom-color: unset;
  border-left-color: unset;
  border-right-color: unset;
  border-top-style: unset;
  border-bottom-style: unset;
  border-left-style: unset;
  border-right-style: unset;
  color: white;
  text-decoration: none;
  font-family: "Lora", serif;
  font-size: 1.3em;
  letter-spacing: 1px;
  transition: background-color 0.2s ease;
}
.ssck-btn a:hover,
button.ssck-btn:hover {
  background-color: var(--ssck-dark-grey);
}
.single-artwork-page .ssck-btn {
  margin-top: 24px;
  text-align: center;
}

.ssck-checkbox {
  font-size: 0.9rem;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-family: "Lora", serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ssck-dark-grey);
}
.ssck-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--ssck-dark-grey);
}
.ssck-checkbox:hover span {
  color: #000;
}

div.ssck-top-light-grey-line {
  border-top: 1px solid var(--ssck-light-grey);
}

/* Utility classes for applying letter spacing */
.ssck-letter-spacing-1px {
  letter-spacing: 1px;
}
.letter-spacing-big {
  letter-spacing: 2px;
}

/* -------------------------------------------------------------------------- */
/*                         SSCK Blocks Custom Classes                         */
/* -------------------------------------------------------------------------- */

/* Limit content width inside full-width blocks */
.ssck-half-content-width {
  max-width: calc((var(--content-max-width) / 2) - (var(--site-gutter) * 2));
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .ssck-top-bottom-pad-responsive {
    padding-top: var(--site-gutter) !important;
    /* padding-bottom: var(--site-gutter) !important; */
  }
}

/*Video Block ------------------*/

/* Horizontal alignment support */
.wp-block-ssck-video-hero.alignleft {
  float: left;
  margin-right: 2em;
  margin-bottom: 1em;
  max-width: 50%;
}

.wp-block-ssck-video-hero.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.wp-block-ssck-video-hero.alignright {
  float: right;
  margin-left: 2em;
  margin-bottom: 1em;
  max-width: 50%;
}

/* Wide width alignment */
.wp-block-ssck-video-hero.alignwide {
  max-width: var(--wide-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Clear floats after aligned blocks */
.wp-block-ssck-video-hero.alignleft::after,
.wp-block-ssck-video-hero.alignright::after {
  content: "";
  display: table;
  clear: both;
}

/* -------------------------------------------------------------------------- */
/*                WP Blocks with ssck classes assigned to them                */
/* -------------------------------------------------------------------------- */

.ssck-series-cols {
  display: flex;
  flex-wrap: wrap;
}

/* Desktop: both columns at 50% */
.ssck-series-cols > .wp-block-column {
  flex: 0 0 50% !important;
}

.ssck-series-cols > .wp-block-column {
  flex: 0 0 50% !important;
}

@container (max-width: 1200px) {
  .ssck-series-cols > .wp-block-column {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
  }
}

.ssck-series-cols:not(:has(~ .ssck-series-cols)) .wp-block-group {
  padding-bottom: 40px !important;
}

/* Tablet example: 60/40 split */
@media (max-width: 1024px) {
  .ssck-series-cols > .wp-block-column:first-child {
    flex: 40% !important;
  }
  .ssck-series-cols > .wp-block-column:first-child > div {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    padding-left: 0px !important;
    padding-right: 20px !important;
  }
  .ssck-series-cols > .wp-block-column:last-child {
    flex: 60% !important;
  }
  .ssck-series-cols > .wp-block-column:last-child > div {
    padding-top: 12px !important;
    padding-bottom: 20px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  /* Target last .ssck-series-cols */
  .ssck-series-cols:last-child > .wp-block-column:last-child > div {
    padding-bottom: 10px !important;
  }
}
/* Mobiles (<= 640px) */
@media (max-width: 640px) {
  :where(.ssck-series-cols.wp-block-columns.is-layout-flex) {
    gap: 20px !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                              WP Block Overrides                            */
/* -------------------------------------------------------------------------- */

figure.wp-block-image {
  margin: 0;
}

.ssck-override-block-padding > .wp-block-columns {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

hr.wp-block-separator {
  border-bottom: 1px solid var(--ssck-light-grey);
}

/* -------------------------------------------------------------------------- */
/*                           Single CPT Body Content                          */
/* -------------------------------------------------------------------------- */

/*Artwork Single ------------------*/

.single-artwork-page .project-info {
  text-align: center;
}

.single-artwork-page h1 {
  font-size: 34px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .single-artwork-page h1 {
    font-size: 30px;
  }
}

/* Artwork Dimensions */
.single-artwork-page .artwork-dimensions {
  margin-top: 12px;
}

.single-artwork-page .artwork-dimensions .dimensions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.single-artwork-page .artwork-dimensions .dimensions-row span {
  white-space: nowrap;
}

.single-artwork-page .artwork-dimensions .format-row {
  margin-top: 12px;
}

/* Artwork Medium and Series */
.single-artwork-page .artwork-medium-and-series {
  margin-top: 12px;
}

.single-artwork-page .artwork-medium-and-series .series-row {
  margin-top: 12px;
}

/* Artwork Sold Status and Additional Info */
.single-artwork-page .artwork-sold-status-and-additional-info {
  margin-top: 12px;
}

.single-artwork-page .artwork-sold-status-and-additional-info .additional-info-row {
  margin-bottom: 12px;
}

.single-artwork-page .artwork-sold-status-and-additional-info .sold-status-row {
  font-weight: bold;
  font-size: 19px;
  font-style: italic;
  letter-spacing: 1.5px;
}

/*Exhibition Single ------------------*/

/* Header section (title + meta line) - always centered */
.single-exhibition-page .exhibition-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-exhibition-page h1 {
  font-size: 34px;
  margin-top: 0px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .single-exhibition-page h1 {
    font-size: 30px;
  }
}

.single-exhibition-page .ex-meta {
  font-size: 1.1rem;
  color: var(--ssck-dark-grey);
  margin-bottom: 0;
}

/* Content section - poster + body */
.single-exhibition-page .exhibition-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-bottom: 12px;
  align-items: stretch; /* Both columns stretch to row height */
}

/* Poster column - establishes 4:3 minimum via pseudo-element */
.single-exhibition-page .ex-poster {
  position: relative;
  min-height: 0;
}

.single-exhibition-page .ex-poster::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 75%; /* 4:3 = 3/4 = 75% */
}

/* Poster image - fills parent, uses cover cropping */
.single-exhibition-page .ex-poster-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Body column - natural height, determines row when taller than 4:3 */
.single-exhibition-page .ex-body {
  text-align: left;
  align-self: center; /* Vertically center text within row */
}

.single-exhibition-page .ex-artists {
  margin: 0 0 16px 0;
}

.single-exhibition-page .ex-artists dt {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: var(--ssck-grey);
}

.single-exhibition-page .ex-artists dd {
  font-size: 1rem;
  margin: 0;
}

.single-exhibition-page .ex-details {
  line-height: 1.6;
}

/* Tablet/Mobile layout: stacked, poster on top */
@media (max-width: 1024px) {
  .single-exhibition-page .exhibition-content {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Fixed 4:3 on mobile (no height matching) */
  .single-exhibition-page .ex-poster {
    position: relative;
  }

  .single-exhibition-page .ex-poster::before {
    padding-bottom: 75%;
  }

  .single-exhibition-page .ex-body {
    text-align: left;
  }
}

/* "Exhibited Works" heading */
.single-exhibition-page .exhibited-works-heading {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
}

/* Gallery spacing */
.single-exhibition-page .ssck-gallery {
  margin-top: 0;
}

/*CPTs Back Link ------------------*/

.ssck-back-link {
  z-index: 9999;
  position: relative;
  background-color: #fff;
  margin-top: 50px;
  /* Subtract 64px for footer */
  margin-bottom: -64px;
}
.ssck-back-link-constrained {
  text-align: right;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ssck-back-link-constrained a {
  font-family: "Bellefair", "Georgia", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                             GLightbox Overrides                            */
/* -------------------------------------------------------------------------- */
/* Uses default "clean" skin - only override what's needed */

/* Pure white backdrop */
.glightbox-clean .goverlay {
  background: #fff !important;
}

/* Hide navigation arrows (single image lightbox) */
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  display: none !important;
}

/* Hide counter and descriptions (single image) */
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-desc,
.glightbox-clean .gcounter {
  display: none !important;
}

.glightbox-clean .gclose {
  opacity: 1 !important;
  background-color: var(--ssck-grey) !important;
  border-radius: 0px !important;
}
.glightbox-clean .gclose:hover {
  background-color: var(--ssck-dark-grey) !important;
}

@media (min-width: 769px) {
  .glightbox-clean .gslide-media {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
  }
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */

#footer {
  border-top: 1px solid var(--ssck-light-grey);
  padding-top: 30px;
  padding-bottom: 30px;
  width: 100%;
  margin: 64px auto 0;
  background-color: #fff;
  z-index: 9999;
  position: relative;
}

.footer-inner {
  padding-top: 10px;
  padding-bottom: 20px;
  padding-left: calc(var(--site-gutter) + 8px);
  padding-right: calc(var(--site-gutter) + 8px);
}

.footer-constrained-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* Footer Columns Container */
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

/* Base column styles */
.footer-col {
  text-align: left;
}

/* Nav column: auto width (fit content) */
.footer-col--nav {
  flex: 0 0 auto;
}

/* Email column: expands to fill remaining space, content block centered */
.footer-col--email {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  margin-left: -50px;
}

.footer-col--email h5 {
  margin-bottom: 16px;
  margin-right: -29px; /* cancels trailing letter-spacing */
}

/* Follow column: auto-width, pinned to right edge */
.footer-col--follow {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: left;
}

.footer-nav {
  padding: 0;
  margin: 0;
  text-align: left;
}

/* Social Icons */
.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icon {
  width: 50px;
  height: 50px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-social-icon:hover {
  opacity: 0.7;
}

.footer-nav ul li {
  padding-bottom: 8px;
}

.footer-nav ul li a {
  line-height: 12px;
  color: var(--ssck-grey);
  font-size: 1.05em;
}

.footer-nav ul li.current-menu-item a {
  text-decoration: none;
  color: var(--ssck-darkest-grey);
}

.footer-nav ul li.sfHover a,
.footer-nav ul li a:hover,
.footer-nav ul li:hover {
  text-decoration: none;
  color: var(--ssck-darkest-grey);
}

#footer .copyright {
  padding-top: 6px;
  text-align: center;
}

/* Footer responsive: Mobile-big (≤767px) */
@media (max-width: 767px) {
  .footer-columns {
    flex-wrap: wrap;
  }

  /* Row 1: Nav left + Follow right (both auto-width) */
  .footer-col--nav {
    flex: 0 0 auto;
    order: 1;
  }

  .footer-col--follow {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  /* Row 2: Email full-width, content centered */
  .footer-col--email {
    flex: 0 0 100%;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -10px;
  }
}

/* Footer responsive: Mobile (≤640px) */
@media (max-width: 640px) {
  /* .footer-columns {
    flex-direction: column;
  }

  .footer-col--nav,
  .footer-col--email,
  .footer-col--follow {
    flex: 0 0 100%;
    order: unset;
  } */
}

/* ! All the following css in this file is strictly for legacy and/or unused canonical WordPress theming */

/* -------------------------------------------------------------------------- */
/*                                   Content                                  */
/* -------------------------------------------------------------------------- */

/* Currently unused tagline */
.ssck-tagline {
  position: relative;
}
.ssck-tagline::before {
  content: "";
  position: absolute;
  inset: 0;
  /* ! svg's preserveAspectRatio has to be set to "none" */
  /* background-image: url("images/tagline-bkgnd.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  opacity: 0.75;  */
  z-index: 0;
  pointer-events: none;
}
.ssck-tagline > * {
  position: relative;
  z-index: 1;
}
.ssck-tagline p {
  letter-spacing: 1.4px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}

#content {
  background-color: #fff;
  padding: 0 0 0 0;
  margin: 0 0px 0 0;
  position: relative;
}

/* Make sure some theme-specific heading areas also use Bellefair */
#homeBanner h2,
.homeSection h3,
#pageHead h1,
#content .page.small h2,
.pum-title.popmake-title {
  font-family: "Bellefair", "Georgia", "Times New Roman", serif;
  text-transform: uppercase;
}

/* Optional: ensure banner subtext and form fields use Lora (body font) */
#homeBanner p,
input[type="text"],
textarea {
  font-family: "Lora", "Georgia", "Times New Roman", serif;
}

.pum-title.popmake-title {
  font-family: "Bellefair", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: 24px;
}

/* Utility class for applying site gutters in PHP templates */
.site-gutter {
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

/* Children within .site-gutter can break out to full width */
.site-gutter > .alignfull {
  max-width: none;
  margin-left: calc(-1 * var(--site-gutter));
  margin-right: calc(-1 * var(--site-gutter));
  width: calc(100% + (2 * var(--site-gutter)));
}

#content {
  margin: 0 0 20px 2.5%;
  padding: 0 0 0 0 !important;
  width: 62.5%;
  float: left;
}

#content .videoContainer {
  margin-top: -20px;
}

#content.full {
  margin: 0 0 20px 2.5%;
  padding: 0 0 0 0 !important;
  width: 95%;
}

#content.full.grid {
  margin: 0 0 20px 0%;
}

.home #content.full,
.page-template-page-home-php #content.full {
  width: 100%;
}

.home #main {
  padding-top: 30px;
}

.home.page-template-page-full-width-php #content.full {
  width: 95%;
}

#content.fullProjects {
  width: 100%;
}

#content.twoThirds .page {
  width: 99%;
}

#content .post {
  margin: 0 0 30px 0px;
  position: relative;
  background: transparent url(images/dotted_line.gif) bottom repeat-x;
  padding-bottom: 10px;
  min-height: 250px;
  width: 98%;
}

.search #content .post {
  min-height: 50px;
}

.page #content .post {
  margin: 0 0 0px 0px;
  border: none;
}

.post .meta,
.attachment .meta {
  margin: -5px 0 25px 0;
  padding: 0 0 0px 0;
  font-size: 0.75em;
  line-height: 1.5em;
}

#content .post.lastPost {
  background: none;
}

#content h1 a,
#content h2 a,
#content h3 a,
.widgetBox h3 a,
#content h4 a,
#content h5 a {
  color: #555555;
}

#content h1 a:hover,
#content h2 a:hover,
#content h3 a:hover,
.widgetBox h3 a:hover,
#content h4 a:hover,
#content h5 a:hover {
  color: #a7a7a3;
}

#content .postThumb {
  margin: 0 0 20px 0 !important;
}

#pageHead {
  padding: 20px 0 20px 0;
  margin-top: 12px;
  margin-bottom: 18px;
  border-top: 1px solid #dfdfde;
  border-bottom: 1px solid #dfdfde;
}

#pageHead h1 {
  font-size: 1.4em;
  line-height: 0.7em;
  padding: 0;
  margin-bottom: 0;
  display: block;
  color: #555555;
}

#pageHead p {
  margin: 0 !important;
  padding: 10px 0 0 0 !important;
  color: #b2b2b2;
  line-height: 1em;
}

/*Home ------------------*/

#homeBanner {
  /* Layout & Dimensions (Keep these) */
  display: block;
  width: 100%;
  margin: 0 auto;
  position: relative; /* ESSENTIAL for absolute positioning of children */
  z-index: 1; /* Base stacking context */
  overflow: hidden; /* Clips content/background layer if needed */

  /* Responsive Height (Keep these) */
  height: 450px; /* Base desktop height */
  /* min-height: 300px; */
  /* max-height: 450px; */
}

/* --- Home Page Banner Background Layer (.home-banner-background-layer) --- */
.home-banner-background-layer {
  position: absolute; /* Position relative to #homeBanner */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sit below the content */

  /* Default Background Properties (Apply base styles here) */
  background-color: #dddddd; /* Fallback color */
  background-repeat: no-repeat;
  background-position: center center; /* Default position */
  background-attachment: scroll; /* Default attachment */
  background-size: cover; /* Default to cover for consistency - eliminates flicker */

  /* The dynamic background-image will be applied here */
}

/* Styles for the content wrapper inside the banner */
.home-banner-content {
  position: relative; /* Needed for z-index and transform */
  z-index: 2; /* Above #homeBanner background */
  box-sizing: border-box;
  /* Initial state for JS */
  /* opacity: 1; */
  /* transform: translate3d(0, 0, 0); */
  /* Fallback */
  /* transition: opacity 0.1s ease-out, transform 0.1s ease-out; */
  /* Animation hint */
  /* will-change: transform, opacity;  */
}

#bannerText {
  text-align: center;
  z-index: 1; /* Keep z-index, though parent .home-banner-content now controls stacking */
}

#homeBanner h2 {
  text-align: center;
  color: #fff;
  /* font-size: 64px; Replaced by clamp */
  font-size: clamp(24px, 4vw + 1rem, 64px); /* Fluid typography */
  text-transform: uppercase;
  display: block;
  text-shadow: 0 0 10px rgba(0, 0, 0, 1);
  /* text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 3px rgba(0, 0, 0, 0.5); */
  position: relative;
  margin: 0 auto 0px;
  padding: 0 0px;
}

#homeBanner p {
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 24px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  display: block;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  /* text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 2px rgba(0, 0, 0, 0.3); */
  position: relative;
  padding-left: 14px;
  padding-right: 14px;
  margin: 1px auto 1px;
}

.homeSection {
  margin-bottom: 20px !important;
  width: 100%;
}

.homeSection h3 {
  font-size: 1em;
  margin: 0 auto 30px;
  clear: both;
  background: transparent url(images/line.gif) 0 center repeat-x;
  color: #555555;
  text-align: center;
  width: 95%;
  text-transform: uppercase;
}

.homeSection h3 span {
  background: #fff;
  padding: 10px;
}

#content .page.small {
  width: 300px;
  min-height: 280px;
  display: block;
  margin: 0 0 25px 25px;
  padding-bottom: 0px;
  float: left;
  background: #fff;
  text-align: center;
}

#content .moreLink {
  display: block;
}

#content .page.small .thumb {
  margin-bottom: 15px;
}

#content .page.small h2 {
  font-size: 1em;
  line-height: 1.3em;
}

#content .page.small p {
  margin: 0 20px 0px 20px;
}

.clearboth {
  clear: both;
  display: block;
  font-size: 0;
  height: 0;
  line-height: 0;
  width: 100%;
}

/*Projects------------------*/

#projects {
  margin: 0 0 0 0;
  width: 100%;
  padding: 0;
  float: left;
  display: block;
  position: relative;
}

#content #projects li {
  padding: 0;
  background: none;
}

.projectNav {
  margin: -16px 0 0 0;
  padding-top: 0;
  float: right;
}

.projectNav a {
  display: inline-block !important;
  font-size: 0.75em;
  color: #7d7d7b;
}

.projectNav a:hover {
  color: #484848;
}

.projectNav div {
  float: left;
  margin-right: 20px;
}

#content .skillList {
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

.skillList li {
  background: none;
  margin: 0 5px 5px 0 !important;
  display: inline-block;
}

.skillList li span a {
  font-size: 1em;
  background: #f0f0f0;
  display: inline-block;
  color: #7d7d7b !important;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  padding: 7px 8px 7px !important;
  border: none;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  line-height: 1em;
  text-transform: uppercase;
}

.skillList li span a:hover {
  background: #6a6a6a;
  color: #fff !important;
}

/*Project Filter Navigation------------------*/
#content .filterWrap {
  text-align: center;
}

#content #filterNav {
  padding: 0 !important;
  margin: 0 auto 20px auto !important;
  width: 95%;
}

#content #filterNav li {
  padding: 0px 0 0 0;
  background: none;
  margin: 0 8px 8px 0;
  display: inline-block;
}

#filterNav li a {
  font-size: 1em;
  background: #f0f0f0;
  display: inline-block;
  color: #7d7d7b !important;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  padding: 7px 8px 7px !important;
  border: none;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  line-height: 1em;
  text-transform: uppercase;
}

#filterNav li a:hover {
  background: #6a6a6a;
  color: #fff !important;
}

#filterNav .selected,
#filterNav a.selected:hover {
  background: #6a6a6a;
  color: #fff !important;
}

/*Images------------------*/

#content .alignleft,
#content img.alignleft {
  display: inline;
  float: left;
  margin-right: 24px !important;
  margin-top: 4px;
}

#content .alignright,
#content img.alignright {
  display: inline;
  float: right;
  margin-left: 24px;
  margin-top: 4px;
}

#content .aligncenter,
#content img.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#content img.alignleft,
#content img.alignright,
#content img.aligncenter {
  margin-bottom: 12px;
}

/*Lists------------------*/

#content ul {
  margin: 0 0 25px 20px;
  list-style-type: disc;
}

#content ul li {
  margin: 0 0 10px 0;
  line-height: 1.4em;
  font-size: 0.75em;
}

#content ol li {
  margin: 0 0 10px 0;
  line-height: 1.4em;
}

#content ol {
  margin: 0 0 20px 20px;
}

#content ul ul,
#content ol ul,
#content ul ol,
#content ol ol {
  padding-top: 10px;
}

#content ul ul li,
#content ol ul li,
#content ul ol li,
#content ol ol li {
  font-size: 1em !important;
}

/* -------------------------------------------------------------------------- */
/*                                 Pagination                                 */
/* -------------------------------------------------------------------------- */

.pagination {
  width: 98%;
  padding: 0 0 20px;
  clear: both;
  margin: 0 0 15px 0;
}

.pagination-prev a,
.pagination-next a,
.wp-pagenavi a,
.wp-pagenavi .current,
.wp-pagenavi .pages,
.older-comments,
.newer-comments {
  display: inline-block;
  width: auto !important;
  height: 24px;
  line-height: 24px;
  margin: 0 5px 0 0;
  padding: 0 8px;
  text-align: center;
  text-decoration: none;
}

.pagination-prev a,
.pagination-next a {
  float: none;
  margin: 0px;
}

.pagination-prev,
.pagination-next {
  float: left;
  width: auto;
  margin: 0px;
}

.pagination-prev {
  float: right;
}

.wp-pagenavi .pages {
  float: right;
  margin: 0px;
}

/* -------------------------------------------------------------------------- */
/*                            Legacy Media Queries                            */
/* -------------------------------------------------------------------------- */

/* Apply cover only on large screens */
@media only screen and (min-width: 1800px) {
  #homeBanner {
    background-size: cover;
  }
}

/* Tablets Portrait (<= 1024px) */
@media (max-width: 1024px) {
  #homeBanner {
    height: 350px;
  }

  #comments {
    width: 100%;
  }

  #sidebar {
    float: none;
    width: 95%;
    margin-left: 2.5%;
    padding: 10px 0 30px 0 !important;
  }

  #content.twoThirds {
    width: 95% !important;
    float: none;
  }

  .sidebarBox {
    float: left;
    margin: 0 3% 30px 0 !important;
    width: 30%;
  }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
  #mainNav ul {
    margin: 0;
    float: none !important;
  } /* Override 480 landscape */

  #pageHead {
    margin: 0 0px 25px;
  }
  #pageHead h1 {
    font-size: 1.2em;
  }

  .flex-direction-nav,
  .flex-control-nav,
  .flex-caption {
    display: none !important;
  }

  #main {
    width: 95%;
    padding-top: 5px;
  }

  #homeBanner {
    height: 180px; /* Using !important as per original rule - check if necessary */
    background-size: cover; /* Re-apply cover */
    background-position: center bottom; /* Adjust position for mobile cover, use !important if overriding conflicts */
  }

  #homeBanner p {
    font-size: 16px;
  }

  #content .post {
    margin-bottom: 20px;
    padding-bottom: 5px !important;
  }

  #flickrBox .flickrImage {
    margin: 0 8px 8px 0;
  }
  #featuredPages .thumbs .small {
    margin-bottom: 25px !important;
  }
  #filterNav {
    text-align: center;
    width: 100%;
    position: relative;
  }
  .projectNav {
    margin: 0 0 0 0;
    padding-top: 10px;
    float: none;
  }
  .post .moreLink {
    display: none;
  }

  /* Column Shortcodes */
  .one_half,
  .one_third,
  .two_third {
    width: 100%;
    position: relative;
    margin-right: 0%;
    float: none;
  }
  .last {
    margin-right: 0 !important;
    clear: right;
  }
  .clearboth {
    clear: both;
    display: block;
    font-size: 0;
    height: 0;
    line-height: 0;
    width: 100%;
  }
}
