/*!
Theme Name: christiansauer-com
Version: 1.0.0
*/

/* Layout - Allow scrolling */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.33;
  background-color: #FAFAFA;
  color: #222;
  word-wrap: break-word;
  word-break: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

img {
  border: 0;
  vertical-align: top;
}

figure {
  position: relative;
  margin: 0;
}

figure img {
  display: block;
}

figcaption {
  font-size: 12px;
  color: #222;
}

/* Page Structure */
.gallery-template .site-inner,
.home .site-inner,
.gallery-template #page,
.home #page,
.gallery-template #primary,
.home #primary,
.gallery-template #main,
.home #main {
  height: auto;
  min-height: auto;
}

#page {
  overflow: visible;
  padding-left: 10px;
  padding-right: 10px;
}

@media (min-width: 769px) {
  #page {
    padding-left: 85px;
    padding-right: 85px;
  }
}

#masthead {
  height: 75px;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 1rem;
}

#masthead .site-title {
  margin: 0;
  font-size: 1.75em;
}

@media (min-width: 769px) {
  #masthead .site-title {
    font-size: 2em;
  }
}

/* Content area - auto height for scrolling */
.gallery-template #content,
.home #content {
  height: auto;
  min-height: auto;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  text-decoration: none;
  font-weight: normal;
}

h1 {
  font-size: 1.35em;
}

h2,
h3,
h4,
h5,
h6 {
  font-size: 1em;
}

h2 {
  text-decoration: underline;
}

h3,
h4,
h5,
h6 {
  margin: 0;
}

/* Links */
a {
  text-decoration: none;
  color: #222;
  transition: all 0.55s ease;
}

a:hover {
  color: #1796f7;
}

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

ul li {
  margin: 0;
}

/* Entry content */
.entry-content h2 {
  margin-top: 40px;
}

.entry-content h2:first-child {
  margin-top: 0;
}

.entry-content a {
  border-bottom: 1px #222 dotted;
}

.entry-content a:hover {
  border-bottom-color: #1796f7;
}

.entry-content img {
  margin-bottom: 10px;
}

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

.entry-content ul li {
  margin: 0 0 0 8px;
}

.entry-content ul li:before {
  content: '';
  border-radius: 100%;
  background: #222;
  display: inline-block;
  width: 4px;
  height: 4px;
  position: absolute;
  margin-left: -8px;
  margin-top: 10px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
}

/* Gallery Grid Layout */
.gallery,
.gallery.gallery-grid {
  height: auto;
  display: block;
  margin-left: -10px;
  margin-right: -10px;
  padding-bottom: 20px;
  background-color: #FAFAFA;
}

@media (min-width: 769px) {

  .gallery,
  .gallery.gallery-grid {
    margin-left: -85px;
    margin-right: -85px;
  }
}

.gallery-grid-container {
  column-count: 1;
  column-gap: 40px;
  padding: 0 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .gallery-grid-container {
    column-count: 2;
    padding: 0 85px;
    column-gap: 40px;
  }
}

@media (min-width: 1190px) {
  .gallery-grid-container {
    column-count: 3;
    column-gap: 40px;
  }
}

.gallery-grid-item {
  width: 100%;
  border-radius: 4px;
  padding: 0;
  background: #e0e0e0;
  margin-bottom: 40px;
  break-inside: avoid;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.gallery-grid-item:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-grid-item-hero {
  column-span: all;
  width: 100%;
  margin-bottom: 40px;
  padding: 0;
  background: transparent ;
  box-sizing: border-box;
  border-radius: 4px;
}

.gallery-grid-item.gallery-grid-item-hero:hover {
  box-shadow: none;
}

.gallery-grid-item-hero img {
  transition: box-shadow 0.3s ease;
  border-radius: 4px;
}

.gallery-grid-item-hero:hover img {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery-grid-item.homepage-content,
.gallery-grid-item.homepage-content:hover {
  box-shadow: none;
  background: transparent;
  cursor: default;
}

.gallery-grid-item-hero .gallery-item-figure {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
}

.gallery-grid-item-hero .gallery-item-figure picture {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-grid-item-hero .gallery-item-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-item-figure {
  margin: 0;
  padding: 0;
  width: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-item-figure picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-item-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Single Work Post */
.work-detail-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 40px;
}

.work-detail-image-wrapper {
  flex: 1;
  min-width: 0;
}

.single-work-image {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
}

.single-work-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
  object-fit: contain;
}

.work-detail-info-wrapper {
  flex: 0 0 auto;
  width: 35%;
  display: flex;
  flex-direction: column;
}

.work-detail-info {
  background: transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entry-header {
  margin-bottom: 20px;
}

.entry-title {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  font-style: italic;
  font-weight: bolder;
}

.entry-content {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #222;
}

.entry-footer {
  margin-top: auto;
  padding-top: 20px;
  color: #666;
}

.post-date {
  margin: 0;
  font-size: 0.95em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .work-detail-container {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .work-detail-image-wrapper {
    width: 100%;
  }

  .work-detail-info-wrapper {
    width: 100%;
  }

  .entry-title {
    font-size: 1.8em;
  }
}

.single-work-back {
  margin-top: 40px;
  padding-top: 20px;
}

.back-link {
  display: inline-block;
  color: #222;
  text-decoration: none;
  padding: 10px 15px;
  border: 1px solid #222;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background-color: #222;
  color: #fff;
}

/* Navigation */
#site-navigation {
  position: fixed;
  right: 10px;
  top: 0;
  z-index: 9999;
}

@media (min-width: 769px) {
  #site-navigation {
    right: 85px;
  }
}

#site-header-menu {
  z-index: 10;
}

#menuToggle {
  display: block;
  position: relative;
  top: 28px;
  left: 0;
  z-index: 1;
  user-select: none;
}

#menuToggle input {
  display: none;
}

.burger-button {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 2px;
  margin-bottom: 6px;
  position: relative;
  background: #222;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked~.burger-button span:first-child {
  transform: rotate(45deg) translate(8px, 8px);
  background: #1796f7;
}

#menuToggle input:checked~.burger-button span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked~.burger-button span:nth-last-child(2) {
  transform: rotate(-45deg) translate(7px, -6px);
  background: #1796f7;
}

#menuToggle input:checked~#menu {
  transform: translate(0, 0);
}

#menu {
  overflow: auto;
  position: fixed;
  width: 300px;
  height: 100vh;
  margin: 0;
  padding: 6rem 40px 85px 40px;
  background: #FAFAFA;
  list-style-type: none;
  transform-origin: 0% 0%;
  transform: translate(calc(100% + 15px), 0);
  top: 0;
  right: 0;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#menu .lang-switcher {
  margin-top: 70px;
  float: none;
  clear: both;
}

#menu .lang-switcher li {
  display: inline-block;
  border-right: 1px solid rgba(85, 85, 85, 0.5);
  padding: 0 5px;
  float: left;
}

#menu .lang-switcher li a {
  color: rgba(85, 85, 85, 0.5);
}

#menu .lang-switcher li a:hover {
  color: #1796f7;
}

#menu .lang-switcher li.current-lang a {
  color: #222;
}

#menu .lang-switcher li:first-child {
  padding-left: 0;
}

#menu .lang-switcher li:last-child {
  border: none;
  padding-right: 0;
}

#menu .lang-switcher a {
  font-size: 21px;
}

#menu li {
  padding: 7px 0;
  font-size: 20px;
  text-transform: uppercase;
}

#menu li:last-child {
  padding-bottom: 0;
}

#menu li .sub-menu {
  padding-left: 15px;
}

#menu li .sub-menu li {
  font-size: 18px;
  padding: 7px 0 0 0;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  fill: #222;
  background: none;
  cursor: pointer;
  z-index: 15;
  transition: fill .4s ease, transform .4s ease;
}

@media (min-width: 769px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
  }
}

.scroll-to-top.is-disabled {
  pointer-events: none;
  cursor: default;
  transform: translate3d(100px, 0, 0);
}

.scroll-to-top:hover {
  fill: #1796f7;
}

/* Utility classes */
.show-on-mobile {
  display: block;
}

@media (min-width: 769px) {
  .show-on-mobile {
    display: none;
  }
}

.is-hidden-on-mobile {
  display: none;
}

@media (min-width: 769px) {
  .is-hidden-on-mobile {
    display: block;
  }
}

@media (min-width: 1190px) {
  .is-hidden-on-mobile {
    display: block;
  }
}

.is-hidden-on-desktop {
  display: block;
}

@media (min-width: 769px) {
  .is-hidden-on-desktop {
    display: block;
  }
}

@media (min-width: 1190px) {
  .is-hidden-on-desktop {
    display: none;
  }
}

@media (min-width: 769px) {
  .is-hidden-on-tablet {
    display: none;
  }
}

@media (min-width: 1190px) {
  .is-hidden-on-tablet {
    display: block;
  }
}

.is-hidden {
  display: none;
}

.is-round {
  border-radius: 50%;
  display: inline-block;
}

.screen-reader-text {
  overflow: hidden;
  display: block;
  width: 0;
  height: 0;
  text-indent: -9999px;
}

.centered {
  text-align: center;
}

/* Centered text/elements */
q {
  display: block;
}

@media (min-width: 769px) {
  q {
    text-align: center;
  }
}

time {
  font-size: 15px;
  line-height: 140%;
}

body.single time {
  font-size: 18px;
}

hr {
  border: none;
  height: 1px;
  background: #222;
}

.entry-content hr {
  margin-top: 40px;
}

p {
  margin-top: 0;
}

i,
em {
  font-style: italic;
}

abbr,
abbr[title] {
  border-bottom: none !important;
  cursor: inherit !important;
  text-decoration: none !important;
}

* {
  box-sizing: border-box;
}

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

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #222;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
}

.button:hover {
  background-color: #222;
  color: #fff;
  text-decoration: none;
}

.button-sold {
  border-color: #ccc;
  color: #999;
  cursor: default;
}

.button-sold:hover {
  background-color: transparent;
  color: #999;
}

/* Related Works Slider */
.related-works-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.related-works-title {
  font-size: 1.2em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.related-works-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.related-works-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.related-work-item {
  flex: 0 0 auto;
  max-width: 80vw;
}

.related-work-link {
  display: block;
  text-decoration: none;
  color: #222;
}

.related-work-link:hover {
  color: #1796f7;
}

.related-work-link img {
  width: auto;
  height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #e0e0e0;
  transition: box-shadow 0.3s ease;
}

.related-work-link:hover img {
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.related-work-title {
  display: block;
  font-size: 0.9em;
  line-height: 1.2;
}

/* Homepage specific styles */
.home .wp-block-image img {
  width: 100%;
  height: auto;
}
/* Homepage Sliders Container */
.homepage-sliders-container {
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

@media (min-width: 769px) {
  .homepage-sliders-container {
    padding: 0 85px;
  }
}

/* Lightbox / Zoom */
.zoom-trigger {
  cursor: pointer;
  position: relative;
}

.zoom-trigger:hover .zoom-icon {
  opacity: 1;
}

.zoom-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>') no-repeat center center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

