/* ZEGG Festivals template */

/* ---------- Base ---------- */
@font-face {
	font-family: "Open Sans Condensed";
	src: url("../fonts/opensans-condlight-webfont.woff2") format("woff2"),
		 url("../fonts/opensans-condlight-webfont.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Open Sans Condensed";
	src: url("../fonts/opensans-condlightitalic-webfont.woff2") format("woff2"),
		 url("../fonts/opensans-condlightitalic-webfont.woff") format("woff");
	font-weight: normal;
	font-style: italic;
	font-display: swap;
}

:root {
  --accent-active: #cf6010;
  --accent: #ca7d46;
  --text: #666;
  --heading: #252525;
  --link: #161616;
  --bg-light: #f3f5f8;
  --bg-orange: #f2b590;
  --footer-bg: hsl(23 74% 63%);
  --footer-bottom-bg: hsl(23 74% 52%);
  --font: "Open Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --container: 900px;
  --gutter: 20px;
  --header-height: 70px;
  --bp-nav: 992px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Keeps the footer at the bottom on short pages */
.site-main { flex: 1 0 auto; }

body.menu-open { overflow: hidden; }

img, video, iframe { max-width: 100%; }
img { height: auto; }
img[style*="float: left"] {
  margin-right: 20px;
  margin-bottom: 10px;
}
img[style*="float: right"] {
  margin-left: 20px;
  margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .6em;
}
h1 { font-size: 2.5em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.5em; }
strong, b { font-weight: 700; color: #000; }

a { color: var(--link); transition:    .25s; }
a:hover, a:focus-visible { color: var(--accent-active); }
h1 a, h2 a, h3 a {
  text-decoration: none;
}

p { margin: 0 0 1em; }

.mod-default li, 
.mod-section li, 
.site-footer li {
  list-style: none;
  margin-left: 0;
  text-indent: -2em;
  padding-left: 2em;
}
.mod-default li[style*="text-align: center"], 
.mod-section li[style*="text-align: center"] {
  padding-left: 0;
}
.mod-default li:before, 
.mod-section li:before, 
.site-footer li:before {
  content: "\f054";
  font-family: fontawesome;
  font-weight: bold;
  font-size: 0.6em;
  position: relative;
  top: -3px;
  margin-right: 7px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 1000;
  padding: 8px 14px;
  background: #fff;
  color: #000;
}
.skip-link:focus { top: 8px; }

.list-unstyled { list-style: none; padding: 0; margin: 0; }

.btn, 
.readmore a, 
a.btn-accent {
  display: inline-block;
  background-color: var(--accent);
  border-radius: 10px;
  cursor: pointer;
  color: #fff4e0;
  padding: 12px 20px;
  text-decoration: none;
  transition: all .25s;
}
.btn:hover, 
.readmore a:hover, 
a.btn-accent:hover {
  background-color: var(--accent-active);
  color: #fff;
  text-decoration: none !important;
}

table tr td {
  border-bottom: 1px solid #ccc;
  padding: 17px 8px 7px 8px;
  line-height: 1.42857143;
  vertical-align: top;
}

.mod-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 8px rgb(0 0 0 / 12%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.site-logo img { display: block; max-height: 50px; width: auto; }

.menu-toggle {
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 9px;
  width: 26px; height: 2px;
  background: var(--heading);
  transition: transform .25s, top .25s, opacity .25s;
}
.menu-toggle-bars { top: 21px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after { top: 8px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) {
    .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
        background-color: darkgray;
    }
} 

/* Mobile: full-screen overlay */
.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  display: none;
  overflow-y: auto;
  padding: 30px var(--gutter);
  background: #fff;
  text-align: center;
}
.menu-open .site-nav { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .mod-menu > li > a,
.site-nav .mod-menu > li > span {
  display: block;
  padding: .5em 0;
  font-size: 1.75rem;
  text-decoration: none;
}

.site-nav a:hover, .site-nav .active > a { color: var(--accent-active); }
.site-nav .mod-menu__sub a { display: block; padding: .3em 0; font-size: 1.25rem; }
.site-lang { margin-top: 1.5em; }

@media (max-width: 991.98px) {
  .hide-on-mobile { display: none !important; }
}

@media (min-width: 992px) {
  .menu-toggle { display: none; }

  .site-logo {
    margin-left: 40px;
    padding: 10px;
  }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    overflow: visible;
    background: transparent;
    text-align: left;
  }

  .site-nav .mod-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .site-nav .mod-menu > li { position: relative; }
  .site-nav .mod-menu > li > a,
  .site-nav .mod-menu > li > span {
    padding: 10px;
    margin: 20px 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all ease 400ms;
  }
  .site-nav .active > a {
    background: url(../images/bg-h3.png) 50% 100% no-repeat;
  }
  .site-nav .mod-menu__sub {
    position: absolute;
    top: 100%; left: 0;
    z-index: 5;
    display: none;
    min-width: 220px;
    padding: 8px 0;
    background: #252525;
  }
  .site-nav .deeper:hover > .mod-menu__sub,
  .site-nav .deeper:focus-within > .mod-menu__sub {
    display: block;
  }
  .site-nav .mod-menu__sub a {
    padding: .4em 1.2em; font-size: 1.05rem; color: #fff;
  }
  .site-nav .mod-menu > li > a:hover, 
  .site-nav .mod-menu__sub a:hover {
    color: var(--accent-active);
  }
  .hide-on-desktop { display: none !important; }
}

/* ---------- Main content ---------- */
.site-main {
  padding-block: 60px;
  background-repeat: no-repeat;
  background-size: 100%;
}

.main-grid {
  display: grid;
  gap: 40px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 992px) {
  .main-grid.has-left { grid-template-columns: 1fr 3fr; }
  .main-grid.has-right { grid-template-columns: 3fr 1fr; }
  .main-grid.has-left.has-right { grid-template-columns: 1fr 2fr 1fr; }
}
.main-content { min-width: 0; }

.sidebar .moduletable, .sidebar > div { margin-bottom: 30px; }

.mod-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1.5em; padding: 0; list-style: none; font-size: 1rem; }
.mod-breadcrumbs li + li::before { content: "/"; margin-right: .4em; }

.page-header h1, .page-header h2 { margin-bottom: .5em; }

.blog-items { display: grid; gap: 30px; }
@media (min-width: 768px) {
  .blog-items.columns-2 { grid-template-columns: repeat(2, 1fr); }
  .blog-items.columns-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-items.columns-3 img { float: none !important; }
}
@media (min-width: 992px) {
  .blog-items.columns-3 { grid-template-columns: repeat(3, 1fr); }
  .blog-items.columns-3 h2 { font-size: 1.6em; }
}

/* ---------- Accordions (Regular Labs, Tabs & Accordions -overrides) ---------- */
[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=accordions] [data-rlta-element=heading]:after {
    content: "+";
    font-weight: 700;
    float: right;
    margin-left: 1rem;
}
[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=accordions] [data-rlta-state=open] [data-rlta-element=heading]:after {
    content: "−";
}
[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=accordions] > [data-rlta-element=button] > [data-rlta-element=heading], 
[data-rlta-element=container][data-rlta-state=ready][data-rlta-type=tabs] > [data-rlta-element=button-list] > [data-rlta-element=button] > [data-rlta-element=heading] {
  font-size: 1.5rem;
}

/* ---------- Custom modules (mod_custom) ---------- */
.mod_custom {
  background-size: cover;
  background-position: center;
}
section .mod-default, 
.mod-parallax, 
.mod-section {
  padding-top: 60px;
  padding-bottom: 60px;
}
.mod-gallery,
.mod-parallax, 
.mod-section {
  padding-block: 40px;
  background-color: #fff;
}
.mod-content-top .mod-section-title {
  margin: 20px 0 0 0;
  padding: 20px 0 40px 0;
  background: url(../images/bg-h3.png) 50% 100% no-repeat;
  letter-spacing: 2px;
}

/* ---------- Hero slider (mod_custom layout "Hero") ---------- */
.mod-hero { position: relative; overflow: hidden; background: #000; color: #fff; }

.mod-hero-slides { position: relative; height: clamp(320px, 56vw, 760px); }

.mod-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.mod-hero-slide.is-active { opacity: 1; visibility: visible; }

.mod-hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.mod-hero-caption {
  position: relative;
  max-width: 900px;
  padding: 0 calc(var(--gutter) + 40px);
  text-align: center;
  /*text-shadow: 0 0 6px #000, 0 0 24px rgb(0 0 0 / 60%);*/
  text-shadow: 0 0 6px #333, 0 0 21px #fff,0 0 42px #fff;
}
.mod-hero-caption h1, .mod-hero-caption h2, .mod-hero-caption h3 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 1px;
}
.mod-hero-caption p { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: .3em; }
.mod-hero-caption a { color: #fff; text-decoration: underline; }

.mod-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px; height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 35%);
  cursor: pointer;
}
.mod-hero-nav:hover { background: rgb(0 0 0 / 60%); }
.mod-hero-nav::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
}
.mod-hero-prev { left: 12px; }
.mod-hero-next { right: 12px; }
.mod-hero-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.mod-hero-next::after { transform: translate(-70%, -50%) rotate(45deg); }

.mod-hero-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.mod-hero-dots button {
  width: 12px; height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.mod-hero-dots button.is-active { background: #fff; }

@media (max-width: 600px) {
  .mod-hero-nav { display: none; }
}

/* ---------- Sections (mod_custom layout "Section") ---------- */
.mod-section.bg-light  { background-color: var(--bg-light); }
.mod-section.bg-orange { background-color: var(--bg-orange); color: #000; }
.mod-section.bg-accent,
.mod-section.bg-dark   { color: #fff; }
.mod-section.bg-accent { background-color: var(--accent); }
.mod-section.bg-dark   { background-color: #252525; }
.mod-section.bg-accent h1, .mod-section.bg-accent h2, .mod-section.bg-accent h3,
.mod-section.bg-dark h1, .mod-section.bg-dark h2, .mod-section.bg-dark h3 { color: #fff; }
.mod-section.bg-accent a, .mod-section.bg-dark a { color: #fff; text-decoration: underline; }

.mod-section.narrow .mod-container { max-width: 800px; }
.mod-section.narrow .mod-container-lg { max-width: 1200px; }
.mod-section.narrow .mod-container-xl { max-width: 1400px; }
.mod-section.text-center .mod-section-body { text-align: center; }
.mod-section-title { text-align: center; margin-bottom: 1em; }

/* Two columns of running text: Module Class "two-columns" or <div class="two-columns"> in an article */
.two-columns { column-gap: 40px; }
.two-columns :is(img, figure, h1, h2, h3, h4, blockquote) { break-inside: avoid; }
@media (min-width: 768px) {
  .two-columns { column-count: 2; }
}
.mod-section.two-columns .mod-section-body { column-gap: 40px; }
@media (min-width: 768px) {
  .mod-section.two-columns .mod-section-body { column-count: 2; }
}
.mod-section.two-columns .mod-section-body :is(img, figure, h1, h2, h3, h4, blockquote) { break-inside: avoid; }

/* ---------- Parallax (mod_custom layout "Parallax") ---------- */
.mod-parallax {
  position: relative;
  padding-block: 140px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #444;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px #000, 0 0 12px #000;
}
/* dark overlay for parallax background */
/*.mod-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 40%);
}*/
.mod-parallax > .mod-container { position: relative; }
.mod-parallax.no-overlay::before { display: none; }
.mod-parallax.overlay-light::before { background: rgb(255 255 255 / 55%); }
.mod-parallax.text-dark { color: #111; text-shadow: none; }
.mod-parallax h1, .mod-parallax h2, .mod-parallax h3 { color: inherit; }
.mod-parallax a { color: inherit; text-decoration: underline; }
.mod-parallax .mod-section-body > :last-child { margin-bottom: 0; }

/* ---------- Gallery (mod_custom layout "Gallery") ---------- */
.mod-gallery {
  text-align: center;
  padding-top: 70px;
  padding-bottom: 20px;
}
.mod-gallery.bg-light { background-color: var(--bg-light); }

.mod-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.mod-gallery-grid a { display: block; overflow: hidden; }
.mod-gallery-grid img {
  display: block;
  width: 220px;
  height: 146px;
  padding: 10px;
  border-radius: 4px;
  margin: 0.4em 0.5em;
  object-fit: cover;
  transition: transform .3s;
  box-shadow: 0 0 3px #999;
  background-color: rgba(255, 255, 255, 0.5);
}
.mod-gallery-grid a:hover img, 
.mod-gallery-grid a:focus-visible img {
  transform: scale(1.06);
}

.mod-lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 92%);
  color: #fff;
}
.mod-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.mod-lightbox figure { margin: 0; text-align: center; }
.mod-lightbox img { max-width: 92vw; max-height: 82vh; }
.mod-lightbox figcaption { min-height: 1.5em; padding-top: .5em; }
.mod-lightbox button {
  position: absolute;
  width: 48px; height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.mod-lightbox button:hover { color: var(--accent); }
.mod-lightbox-close { top: 12px; right: 12px; }
.mod-lightbox-close::before { content: "\00d7"; font-size: 2.6rem; }
.mod-lightbox-prev { left: 8px; top: 50%; margin-top: -24px; }
.mod-lightbox-prev::before { content: "\2039"; font-size: 3rem; }
.mod-lightbox-next { right: 8px; top: 50%; margin-top: -24px; }
.mod-lightbox-next::before { content: "\203a"; font-size: 3rem; }
.mod-lightbox button[hidden] { display: none; }

/* ---------- Footer (same look as the zegg template: orange, white text) ---------- */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  font-size: 1.4rem;
}
.site-footer .mod-custom { margin-bottom: 2em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :is(h1, h2, h3, h4, .heading) {
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.footer-columns {
  display: grid;
  gap: 0 30px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 32px var(--gutter) 20px;
}
.footer-columns .mod-custom {
  max-width: 220px;
}
@media (min-width: 600px) and (max-width: 991px) {
  /* Medium screens: 2 columns */
  .footer-columns {
    grid-template-rows: auto auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "footer-left footer-left" "footer-middle footer-right";
  }
  .footer-left { grid-area: footer-left; }
  .footer-middle { grid-area: footer-middle; }
  .footer-right { grid-area: footer-right; }
}
@media (min-width: 992px) {
  /* Large screens: 3 columns */
  .footer-columns { grid-template-columns: repeat(3, 1fr); padding: 40px 0; }
}

.footer-columns ul { margin: 0; padding: 0; }
.footer-columns address p { margin: 0; }
.footer-columns address a { text-decoration: none; }

.footer-bottom-bar { background-color: var(--footer-bottom-bg); }
.footer-bottom { padding: 8px var(--gutter); text-align: center; }
.footer-bottom ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.5em; margin: 0; padding: 0; list-style: none; }
.footer-bottom p { margin: 0; }

/* ---------- Error page ---------- */
.error-page { display: grid; min-height: 100vh; place-items: center; text-align: center; }
.error-box { padding: 40px var(--gutter); }
.error-box h1 { font-size: 6rem; margin: 0; }
