/*
Theme Name: Enfold Child
Theme URI: http://example.com/enfold-child/
Description: A child theme for Enfold
Author: Your Name
Author URI: http://example.com/
Template: enfold
Version: 1.0
*/

/* Dedicated featured-image caption, separate from copyright/image credits. */
#top .featured-image-caption {
  margin: 10px 0 4px;
  color: #444;
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#top .featured-image-caption + .post-meta,
#top .featured-image-caption + .image-credits {
  margin-top: 6px;
}

.floating-icons-toggle {
  display: none;
}

@media only screen and (max-width: 767px) {
  #top .floating-icons {
    top: 28%;
    align-items: flex-end;
  }

  #top .floating-icons-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px 0 0 4px;
    background: #f36f21;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  }

  #top .floating-icons-toggle:hover,
  #top .floating-icons-toggle:focus-visible {
    background: #d85f1a;
    color: #fff;
  }

  #top .floating-icons-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  #top .floating-icons-toggle-icon {
    transition: transform .2s ease;
  }

  #top .floating-icons.is-open .floating-icons-toggle-icon {
    transform: rotate(180deg);
  }

  #top .floating-icons:not(.is-open) > .search-wrapper,
  #top .floating-icons:not(.is-open) > .social-wrapper {
    display: none;
  }

  #top .floating-icons .search-form,
  #top .floating-icons .social-icons {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  #top .floating-icons .search-wrapper.is-active .search-form,
  #top .floating-icons .social-wrapper.is-active .social-icons {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
}

.zinq-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
}

.zinq-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f5f7;
}

.zinq-gallery .zinq-gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease;
}

.zinq-gallery-item:hover .zinq-gallery-image,
.zinq-gallery-item:focus-visible .zinq-gallery-image {
  transform: scale(1.025);
}

.zinq-gallery-credit {
  margin-top: 12px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

@media only screen and (max-width: 767px) {
  .zinq-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Content images: clean presentation with a readable caption below. */
#top .post-content .wp-caption {
  width: 100% !important;
  max-width: 100%;
  margin: 24px 0 28px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  font-style: normal;
}

#top .post-content .wp-caption img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

#top .post-content .wp-caption .wp-caption-text,
#top .post-content .wp-caption .wp-caption-dd {
  margin: 0;
  padding: 10px 0 0;
  color: #444;
  font-family: inherit;
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
}

.events-content img {
  width: 712px;
}

.post-card-image {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
}

.post-card-image a {
  position: relative !important;
  display: inline !important;
}

.copyright {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  pointer-events: none;
}

.copyright span {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  transform-origin: top right;
  transform: rotate(90deg) translateX(100%) translateY(0%);
}

/*
.custom-post-cards .post-card .avia-copyright {
  display: inline !important; 
 position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  transform-origin: top right;
  transform: rotate(90deg) translateX(0%) translateY(0%);
}
*/

#top #header .avia_mega_div>.sub-menu {
    padding-top: 0px !important;
    padding-bottom: 12px;
}

.avia_mega_div {
  min-width: 200px;
}

#header_meta {
    color: #fff;
    background-image: url(/wp-content/uploads/header.png) !important;
    background-position: center;
    -webkit-background-size: 100%;
    -webkit-background-size: cover;
    -moz-background-size: 100%;
    -moz-background-size: cover;
    background-size: 100%;
    background-size: cover;
    padding-bottom: 10px;
}

#header_meta li {
    text-transform: uppercase;
    border: 1px solid #fff;
    padding: 5px;
    color: #fff;
}
#header_meta li a {
    display: block;
    padding-bottom: 0em;
    padding-top: 0em;
    color: #fff;
}
#header_meta li a:hover {
  color: #ccc !important;
}

/* Cookie consent and blocked external services */
#top .avia-cookie-consent {
  z-index: 10050;
  border-top: 4px solid #f57c00;
  background: #103f78;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
}

#top .avia-cookie-consent .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#top .avia-cookie-consent .avia_cookie_text {
  flex: 1 1 440px;
  margin: 0 12px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

#top .avia-cookie-consent .avia-cookie-consent-button {
  min-width: 150px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  text-align: center;
}

#top .avia-cookie-consent .avia-cookie-select-all {
  border-color: #f57c00;
  background: #f57c00;
}

#top .avia-cookie-consent .avia-cookie-consent-button:hover,
#top .avia-cookie-consent .avia-cookie-consent-button:focus-visible {
  border-color: #f57c00;
  background: #fff;
  color: #103f78;
}

#top #av-cookie-consent-badge {
  z-index: 10040;
  background: #103f78;
  color: #fff;
}

#top .zinq-map-consent-blocked {
  position: relative;
  min-height: 50vh;
  background: #eef2f5;
}

#top .zinq-map-consent-blocked #gmap {
  visibility: hidden;
}

#top .zinq-map-consent-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef2f5;
  text-align: center;
}

#top .zinq-map-consent-placeholder__inner {
  max-width: 620px;
}

#top .zinq-map-consent-placeholder strong {
  display: block;
  margin-bottom: 10px;
  color: #124f9b;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}

#top .zinq-map-consent-placeholder p,
#top .zinq-video-consent-placeholder p {
  margin: 0 0 18px;
  color: #343b43;
  font-size: 16px;
  line-height: 1.55;
}

#top .zinq-open-cookie-settings {
  display: inline-block;
  padding: 12px 18px;
  border: 0;
  border-radius: 2px;
  background: #f57c00;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#top .zinq-open-cookie-settings:hover,
#top .zinq-open-cookie-settings:focus-visible {
  background: #124f9b;
  color: #fff;
}

#top .zinq-video-consent-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 32px;
  border: 1px solid #dce3e9;
  background: #eef2f5;
  text-align: center;
}

@media only screen and (max-width: 767px) {
  #top .avia-cookie-consent .container {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  #top .avia-cookie-consent .avia_cookie_text {
    margin: 0 0 6px;
  }

  #top .avia-cookie-consent .avia-cookie-consent-button {
    width: 100%;
  }
}

/* Modern ZINQ history timeline */
#top .cd-horizontal-timeline.zinq-history-timeline {
  width: 100%;
  max-width: none;
  margin: 48px auto 72px;
}

#top .zinq-history-timeline .zinq-history-timeline__heading {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0;
}

#top .zinq-history-timeline .events-content {
  margin: 28px 0 18px;
  overflow: hidden;
}

#top .zinq-history-timeline .events-content > ol {
  margin: 0;
  padding: 0;
}

#top .zinq-history-timeline .events-content > ol > li {
  margin: 0;
  padding: 0;
}

#top .zinq-history-timeline .events-content > ol > li > * {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

#top .zinq-history-timeline .zinq-timeline-card {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 3px;
  background: #f3f6f9;
  box-shadow: 0 14px 34px rgba(18, 79, 155, 0.09);
}

#top .zinq-history-timeline .timeline-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #e7edf2;
}

#top .zinq-history-timeline .timeline-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

#top .zinq-history-timeline .timeline-copyright {
  top: 10px;
  right: 8px;
  padding: 5px 7px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  transform: rotate(90deg) translateX(100%);
  transform-origin: top right;
}

#top .zinq-history-timeline .zinq-timeline-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 5vw, 72px);
}

#top .zinq-history-timeline .zinq-timeline-copy > * {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

#top .zinq-history-timeline .zinq-timeline-copy h2 {
  margin: 0;
  padding: 0;
  color: #124f9b;
  font-family: inherit;
  font-size: clamp(52px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 1;
}

#top .zinq-history-timeline .zinq-timeline-copy h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin: 34px 0 30px;
  background: #f57c00;
}

#top .zinq-history-timeline .zinq-timeline-copy p {
  margin: 0;
  padding: 0;
  color: #343b43;
  font-size: 19px;
  line-height: 1.55;
}

#top .zinq-history-timeline .zinq-timeline-copy em {
  color: #343b43;
  font-size: 18px;
  line-height: 1.5;
}

#top .zinq-history-timeline .timeline {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1170px;
  height: 142px;
  margin: 0 auto;
  padding: 0 74px;
}

#top .zinq-history-timeline .events-wrapper {
  height: 104px;
  margin: 0;
  background: #fff;
}

#top .zinq-history-timeline .events-wrapper::before,
#top .zinq-history-timeline .events-wrapper::after {
  width: 34px;
}

#top .zinq-history-timeline .events-wrapper::before {
  background: linear-gradient(to right, #fff 25%, rgba(255, 255, 255, 0));
}

#top .zinq-history-timeline .events-wrapper::after {
  background: linear-gradient(to left, #fff 25%, rgba(255, 255, 255, 0));
}

#top .zinq-history-timeline .events {
  top: 50px;
  height: 2px;
  background: #cfd5da;
  transform: none !important;
  transition: left 0.35s ease;
}

#top .zinq-history-timeline .events.zinq-no-transition {
  transition: none;
}

#top .zinq-history-timeline .filling-line {
  background: #124f9b;
}

#top .zinq-history-timeline .events a {
  padding-bottom: 22px;
  color: #343b43;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transform: translateX(-50%);
}

#top .zinq-history-timeline .events a::after {
  bottom: -8px;
  width: 18px;
  height: 18px;
  border: 3px solid #cfd5da;
  background: #fff;
}

#top .zinq-history-timeline .events a.older-event::after {
  border-color: #124f9b;
  background: #fff;
}

#top .zinq-history-timeline .events a.selected {
  color: #f57c00;
}

#top .zinq-history-timeline .events a.selected::after,
#top .zinq-history-timeline .events a:hover::after {
  border-color: #f57c00;
  background: #f57c00;
}

#top .zinq-history-timeline .cd-timeline-navigation a {
  top: 51px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 3px;
  background: #f57c00;
  box-shadow: 0 7px 18px rgba(245, 124, 0, 0.2);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

#top .zinq-history-timeline .cd-timeline-navigation a::after {
  width: 15px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  background: none;
  transform: translate(-62%, -50%) rotate(-45deg);
}

#top .zinq-history-timeline .cd-timeline-navigation a.prev {
  left: 0;
  transform: translateY(-50%);
}

#top .zinq-history-timeline .cd-timeline-navigation a.prev::after {
  transform: translate(-38%, -50%) rotate(135deg);
}

#top .zinq-history-timeline .cd-timeline-navigation a.next {
  right: 0;
}

#top .zinq-history-timeline .cd-timeline-navigation a:hover {
  background: #dd6f00;
}

#top .zinq-history-timeline .cd-timeline-navigation a.inactive {
  cursor: default;
  opacity: 0.28;
}

#top .zinq-history-timeline .zinq-timeline-progress {
  position: absolute;
  right: 74px;
  bottom: 0;
  left: 74px;
  color: #4c555e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

@media only screen and (max-width: 767px) {
  #top .cd-horizontal-timeline.zinq-history-timeline {
    margin: 32px auto 54px;
  }

  #top .zinq-history-timeline .zinq-history-timeline__heading {
    width: calc(100% - 32px);
  }

  #top .zinq-history-timeline .events-content {
    margin-top: 20px;
  }

  #top .zinq-history-timeline .events-content > ol > li {
    padding: 0 16px;
  }

  #top .zinq-history-timeline .zinq-timeline-card {
    display: block;
    min-height: 0;
  }

  #top .zinq-history-timeline .timeline-image,
  #top .zinq-history-timeline .timeline-image img {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  #top .zinq-history-timeline .timeline-image img {
    position: static;
    inset: auto;
    object-fit: cover;
  }

  #top .zinq-history-timeline .zinq-timeline-copy {
    min-height: 280px;
    padding: 32px 26px 38px;
  }

  #top .zinq-history-timeline .zinq-timeline-copy h2 {
    font-size: 48px;
  }

  #top .zinq-history-timeline .zinq-timeline-copy h2::after {
    width: 68px;
    height: 4px;
    margin: 24px 0 22px;
  }

  #top .zinq-history-timeline .zinq-timeline-copy p {
    font-size: 17px;
    line-height: 1.5;
  }

  #top .zinq-history-timeline .timeline {
    width: calc(100% - 32px);
    height: 132px;
    padding: 0 56px;
  }

  #top .zinq-history-timeline .events-wrapper {
    height: 98px;
  }

  #top .zinq-history-timeline .events {
    top: 47px;
  }

  #top .zinq-history-timeline .events a {
    font-size: 14px;
  }

  #top .zinq-history-timeline .cd-timeline-navigation a {
    top: 48px;
    width: 44px;
    height: 44px;
  }

  #top .zinq-history-timeline .zinq-timeline-progress {
    right: 56px;
    left: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top .zinq-history-timeline .events,
  #top .zinq-history-timeline .events-content li {
    animation: none !important;
    transition: none !important;
  }
}
/* Search results use the same card language as the News archive. */
#top .zinq-search-results {
	padding-top: 48px;
	padding-bottom: 64px;
}

#top .zinq-search-results .content-area {
	width: 100%;
}

#top .zinq-search-header {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(300px, 520px);
	align-items: end;
	gap: 32px;
	margin-bottom: 36px;
}

#top .zinq-search-header h1,
#top .zinq-search-summary {
	margin: 0;
	color: #12448f;
}

#top .zinq-search-form .ajax_search_response {
	display: none !important;
}

#top .zinq-search-form form {
	margin: 0;
}

#top .zinq-search-form #searchform > div {
	display: flex;
	position: relative;
	width: 100%;
	max-width: none !important;
	min-width: 0;
	margin: 0;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(18, 68, 143, .12);
}

#top .zinq-search-form #searchform input[type="search"] {
	order: 1;
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid #b8c9dd !important;
	border-right: 0 !important;
	border-radius: 6px 0 0 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #333 !important;
	font-size: 17px !important;
	line-height: 52px !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}

#top .zinq-search-form #searchform input[type="search"]:focus {
	border-color: #12448f !important;
	box-shadow: inset 2px 0 0 #12448f, inset 0 2px 0 #12448f, inset 0 -2px 0 #12448f !important;
	outline: 0;
}

#top .zinq-search-form #searchsubmit {
	order: 2;
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	flex: 0 0 58px;
	width: 58px !important;
	height: 52px !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #f07d00 !important;
	border-radius: 0 6px 6px 0 !important;
	background: #f07d00 !important;
	box-shadow: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 19px !important;
	line-height: 50px !important;
	text-align: center;
	opacity: 1 !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

#top .zinq-search-form #searchsubmit:hover,
#top .zinq-search-form #searchsubmit:focus-visible {
	border-color: #d85f1a !important;
	background: #d85f1a !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

#top .zinq-search-form #searchsubmit:focus-visible {
	outline: 3px solid rgba(240, 125, 0, .3);
	outline-offset: 3px;
}

#top .zinq-search-summary {
	font-size: 24px;
	line-height: 1.3;
	margin-bottom: 22px;
}

#top .zinq-search-cards {
	margin-top: 0;
}

#top .zinq-search-cards .post-card {
	display: flex;
	flex-direction: column;
}

#top .zinq-search-cards .post-card-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

#top .zinq-search-cards .post-card-excerpt {
	flex: 1 1 auto;
}

#top .zinq-search-cards .post-card-actions {
	justify-content: flex-end;
}

#top .zinq-search-pagination {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid #dbe6f3;
}

#top .zinq-search-pagination > ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#top .zinq-search-pagination li {
	margin: 0;
	padding: 0;
}

#top .zinq-search-pagination a,
#top .zinq-search-pagination span {
	display: grid;
	place-items: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid #12448f;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 9px rgba(18, 68, 143, .1);
	color: #12448f;
	font-weight: 700;
	line-height: 40px;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

#top .zinq-search-pagination .current {
	border-color: #f07d00;
	background: #f07d00;
	color: #fff;
	box-shadow: 0 4px 12px rgba(240, 125, 0, .25);
}

#top .zinq-search-pagination a:hover,
#top .zinq-search-pagination a:focus-visible {
	border-color: #f07d00;
	background: #f07d00;
	color: #fff;
	transform: translateY(-2px);
}

#top .zinq-search-pagination a:focus-visible {
	outline: 3px solid rgba(240, 125, 0, .25);
	outline-offset: 2px;
}

#top .zinq-search-pagination .dots {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	color: #6d7784;
}

#top .zinq-search-empty {
	padding: 32px;
	background: #dbe6f3;
}

@media only screen and (max-width: 767px) {
	#top .zinq-search-results {
		padding-top: 32px;
		padding-bottom: 44px;
	}

	#top .zinq-search-header {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 28px;
	}

	#top .zinq-search-summary {
		font-size: 20px;
	}

	#top .zinq-search-form #searchform input[type="search"],
	#top .zinq-search-form #searchsubmit {
		height: 48px !important;
		min-height: 48px !important;
		line-height: 46px !important;
	}

	#top .zinq-search-pagination {
		margin-top: 34px;
		padding-top: 22px;
	}

	#top .zinq-search-pagination > ul.page-numbers {
		gap: 7px;
	}

	#top .zinq-search-pagination a,
	#top .zinq-search-pagination span {
		width: 38px;
		min-width: 38px;
		height: 38px;
		font-size: 14px;
		line-height: 34px;
	}
}
