html {
  font-size: 16px;
}

body {
  min-height: 100%;
  overflow-wrap: break-word;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
}

img,
object,
embed,
video {
  outline: none;
  padding: 0;
  margin: 0;
  border: 0;
  text-align: center;
  max-width: 100%;
  height: auto;
}

a img {
  border: none;
  outline: none;
}

svg:not(:root) {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 500;
}

h4,
h5,
h6 {
  font-weight: normal;
}

p {
  line-height: 1.9;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
li a {
  line-height: inherit;
  font-weight: inherit;
  text-decoration: none;
  color: inherit;
  outline: none;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  outline: none;
}

/* Visually hidden - !important is standard for this utility pattern */
/* stylelint-disable declaration-no-important */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  clip-path: none;
  overflow: visible;
  width: auto;
  height: auto;
}
/* stylelint-enable declaration-no-important */

/* Skip link */
.skip-link {
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 1em;
  background: #444;
  color: #fff;
}

/* Page layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main-container {
  flex: 1;
}

/* Header */
.header-inner {
  display: flex;
  align-items: flex-start;
}

.site-logo img {
  max-height: 120px;
}

.site-name-slogan {
  margin-left: 1.75rem;
}

.site-name {
  margin: 0;
}

.site-name a {
  font-weight: 500;
  font-size: 2.925rem;
}

.site-slogan {
  margin: 0;
  font-weight: 400;
  font-size: 1.536rem;
}

/* Navigation */
.main-navigation-wrapper {
  z-index: 10;
}

.ul-parent {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.li-link {
  padding: 1rem 1.25rem;
  display: block;
  transition: background-color 300ms, color 300ms;
}

.li-link:hover {
  background-color: #f5f8d7;
  color: #3d2b24;
}

.li-link.active,
.li-item.active .li-link {
  background-color: #f5f8d7;
  color: #3d2b24;
}

.mobile-nav {
  cursor: pointer;
}

@media (width <= 992px) {
  .header-inner {
    align-items: center;
  }

  .site-name a {
    font-size: 2rem;
  }

  .site-slogan {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .ul-parent {
    display: none;
  }

  .ul-parent.responsive {
    display: flex;
    flex-direction: column;
  }
}

/* Main content */
.main-container-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.main-box {
  margin-bottom: 16px;
}

/* Copyright */
.copyright-inner {
  padding: 8px 0;
}

/* Slideshow styles */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #000;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}

/* Forsale product table */
.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table td {
  padding: 8px;
  vertical-align: top;
}

.product-table img {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* Forsale slideshow — float kept intentionally for text wrapping */
.forsale-slideshow-wrap {
  float: right;
  margin: 15px 15px 15px 30px;
  width: 400px;
  max-width: 100%;
}

/* Contact sidebar images */
.contact-sidebar img {
  padding: 10px;
  width: 100%;
  max-width: 400px;
}

/* Equal-height sidebar + content layout */
@media (width >= 601px) {
  .content-layout {
    display: flex;
    flex-wrap: wrap;
  }

  .content-layout > .main-region {
    display: flex;
    flex-direction: column;
  }

  .content-layout > .main-region > .w3-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .content-layout > .main-region > .w3-card > .slideshow {
    flex: 1;
    aspect-ratio: auto;
  }
}

.node-content,
.w3-sidebar-first,
.w3-sidebar-second {
  background-color: #fff;
}

.node-content {
  padding: 2rem;
}

/* Inline images */
.node-content img {
  max-width: 400px;
  width: 100%;
  height: auto;
}
