/*
Theme Name: LNRMM
Theme URI: 
Author: Digify
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lnrmm
Tags: 
*/


:root {
  --mobile-side-spacing: 1rem;
  --header-height-desktop: 127px;
  --header-height-mobile: 72px;
  --default-select-arrow: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='black' stroke-width='1.51613' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --wp--preset--font-size--medium: 1.125rem;
  --post-text-color: #333333;
}
@media (max-width: 768px) {
  :root {
    --wp--preset--font-size--medium: 1rem;
  }
}

html.color-scheme-high-contrast {
  --contrast-color-primary: #FFF500;
  --contrast-color-secondary: #000000;
  --contrast-filter-primary: brightness(0) saturate(100%) invert(76%) sepia(87%) saturate(505%) hue-rotate(358deg) brightness(110%) contrast(105%);
  --contrast-filter-secondary: invert(0%);
  --wp--preset--color--papira-baltais: #FFF500;
  --wp--preset--color--miglas-pelekais: #FFF500;
  --wp--preset--color--gaisi-peleks: #FFF500;
  --wp--preset--color--dziesmu-svektu-dzeltenais: #FFF500;
  --wp--preset--color--burtu-melnais: #000000;
  --wp--preset--color--zemes-pelekais: #000000;
  --wp--preset--color--muzeja-sartais: #000000;
  --post-text-color: #000000;

  body {
    background-color: #FFF500;
  }

  * {
    opacity: 1;
  }
}

html.color-scheme-high-contrast-inverted {
  --contrast-color-primary: #000000;
  --contrast-color-secondary: #FFF500;
  --contrast-filter-primary: invert(0%);
  --contrast-filter-secondary: brightness(0) saturate(100%) invert(76%) sepia(87%) saturate(505%) hue-rotate(358deg) brightness(110%) contrast(105%);
  --wp--preset--color--papira-baltais: #000000;
  --wp--preset--color--miglas-pelekais: #000000;
  --wp--preset--color--gaisi-peleks: #000000;
  --wp--preset--color--dziesmu-svektu-dzeltenais: #000000;
  --wp--preset--color--burtu-melnais: #FFF500;
  --wp--preset--color--zemes-pelekais: #FFF500;
  --wp--preset--color--muzeja-sartais: #FFF500;
  --post-text-color: #FFF500;

  svg path {
    stroke: var(--contrast-color-secondary);
  }

  body {
    background-color: #000000;
  }

  * {
    opacity: 1;
  }
}

body {
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: 0.03375rem;
  background-color: #F7F7F7;
}
.has-medium-font-size {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

@media only screen and (max-width: 768px) {
  body {
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.03375rem;
  }
  .has-medium-font-size {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

html,
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  position: relative;
}

* {
  box-sizing: border-box;
}

input,
select,
button {
  background-color: transparent;
  font-family: inherit;
  font-size: inherit;
  color: var(--wp--preset--color--burtu-melnais);
}

input,
textarea,
select {
  border: 1px solid var(--wp--preset--color--zemes-pelekais);
  padding: 0.62rem 0.88rem;
  color: var(--wp--preset--color--burtu-melnais);
}

input::placeholder,
textarea::placeholder {
  opacity: 0.5;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--wp--preset--color--tintes-violetais);
}

input.has-icon,
select.has-icon {
  padding-left: 3rem;
}

input {
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: 0.0375rem;
}

textarea {
  font-size: var(--Font-size-text-md, 1rem);
  font-weight: 400;
  letter-spacing: 0.03rem;
}

select {
  position: relative;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--wp--preset--color--burtu-melnais);
  border-radius: 0;
  background: var(--default-select-arrow);
  background-position: calc(100% - 1rem) 50%;
  background-repeat: no-repeat, no-repeat;
  background-color: var(--wp--preset--color--papira-baltais);
}

span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
button,
a,
div {
  color: var(--wp--preset--color--burtu-melnais);
}

.wp-block-post-content {
  margin-block-start: 0 !important;
}

/* Min height for page content to not underflow page on empty content */
.wp-block-post-content {
  min-height: 70vh;
}

a,
a:hover {
  text-decoration: none;
}

.text-size-150 {
  font-size: 150%;
}

.text-size-200 {
  font-size: 200%;
}

.standard-width {
  max-width: var(--wp--style--global--wide-size);
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 1250px) and (min-width: 769px) {
  .standard-width {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media only screen and (max-width: 768px) {
  .standard-width {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Base button styles */
.btn-primary--sm,
.btn-primary--md,
.btn-primary--lg,
.btn-primary--xl,
.btn-secondary--sm,
.btn-secondary--md,
.btn-secondary--lg,
.btn-secondary--xl,
.btn-link--sm,
.btn-link--md,
.btn-link--lg,
.btn-link--xl {
  text-decoration: none;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
  width: fit-content;
  height: fit-content;
  border: 1px solid var(--wp--preset--color--burtu-melnais, #000);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-primary--lg,
.btn-primary--xl,
.btn-secondary--lg,
.btn-secondary--xl,
.btn-link--lg,
.btn-link--xl {
  line-height: 1.5rem;
}

.btn-link--sm,
.btn-link--md,
.btn-link--lg,
.btn-link--xl {
  border: none;
}

/* Primary button colors */
.btn-primary--sm,
.btn-primary--md,
.btn-primary--lg,
.btn-primary--xl {
  color: var(--wp--preset--color--papira-baltais, #fff);
  background-color: var(--wp--preset--color--burtu-melnais, #000);
}

/* Secondary button colors */
.btn-secondary--sm,
.btn-secondary--md,
.btn-secondary--lg,
.btn-secondary--xl,
.btn-link--sm,
.btn-link--md,
.btn-link--lg,
.btn-link--xl {
  background: none;
  border-color: #00000033;
  color: var(--wp--preset--color--burtu-melnais, #000);
}

/* Size variants */
.btn-primary--sm,
.btn-secondary--sm,
.btn-link--sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.5rem 0.75rem;
}

.btn-primary--md,
.btn-secondary--md,
.btn-link--md {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  padding: 0.63rem 0.88rem;
}

.btn-primary--lg,
.btn-secondary--lg,
.btn-link--lg {
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.63rem 1rem;
}

.btn-primary--xl,
.btn-secondary--xl,
.btn-link--xl {
  font-size: 1rem;
  line-height: 1.5rem;
  padding: 0.75rem 1.13rem;
}

/* Hover states */
.btn-primary--sm:hover,
.btn-primary--sm.active,
.btn-primary--md:hover,
.btn-primary--md.active,
.btn-primary--lg:hover,
.btn-primary--lg.active,
.btn-primary--xl:hover,
.btn-primary--xl.active {
  background: #333333;
}

.btn-secondary--sm:hover,
.btn-secondary--sm.active,
.btn-secondary--md:hover,
.btn-secondary--md.active,
.btn-secondary--lg:hover,
.btn-secondary--lg.active,
.btn-secondary--xl:hover,
.btn-secondary--xl.active {
  background: var(--wp--preset--color--burtu-melnais, #000);
  color: var(--wp--preset--color--papira-baltais, #fff);
}

.btn-link--sm:hover,
.btn-link--md:hover,
.btn-link--lg:hover,
.btn-link--xl:hover {
  text-decoration: underline;
}

/* Button SVG */
.btn-primary--sm svg,
.btn-primary--md svg,
.btn-primary--lg svg,
.btn-primary--xl svg,
.btn-secondary--sm svg,
.btn-secondary--md svg,
.btn-secondary--lg svg,
.btn-secondary--xl svg,
.btn-link--sm svg,
.btn-link--md svg,
.btn-link--lg svg,
.btn-link--xl svg {
  width: 1rem;
  height: 1rem;
}

.btn-primary--sm svg path,
.btn-primary--md svg path,
.btn-primary--lg svg path,
.btn-primary--xl svg path {
  stroke: var(--wp--preset--color--papira-baltais, #fff);
  opacity: 0.8;
}

/* SVG states */
.btn-secondary--sm svg path,
.btn-secondary--md svg path,
.btn-secondary--lg svg path,
.btn-secondary--xl svg path,
.btn-link--sm svg path,
.btn-link--md svg path,
.btn-link--lg svg path,
.btn-link--xl svg path {
  stroke: var(--wp--preset--color--burtu-melnais, #000);
  opacity: 0.8;
}

.btn-secondary--sm:hover svg path,
.btn-secondary--md:hover svg path,
.btn-secondary--lg:hover svg path,
.btn-secondary--xl:hover svg path,
.btn-secondary--sm.active svg path,
.btn-secondary--md.active svg path,
.btn-secondary--lg.active svg path,
.btn-secondary--xl.active svg path {
  stroke: var(--wp--preset--color--papira-baltais, #fff);
}

.btn-link--sm:hover,
.btn-link--md:hover,
.btn-link--lg:hover,
.btn-link--xl:hover {
  cursor: pointer;
}

.btn-link--sm:hover svg path,
.btn-link--md:hover svg path,
.btn-link--lg:hover svg path,
.btn-link--xl:hover svg path {
  opacity: 1;
}


.title--md {
  margin-top: 0;
  font-size: 4rem;
  font-weight: 400;
  line-height: 4rem;
}

@media only screen and (max-width: 768px) {
  .title--md {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0.05rem;
  }
}

.title--sm {
  margin-top: 0;
  font-size: 3rem;
  font-weight: 400;
  line-height: normal;
}

@media only screen and (max-width: 768px) {
  .title--sm {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
}

.title--xs {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.75rem;
  letter-spacing: 0.025rem;
}

.link,
.link a {
  text-decoration: none;
  color: var(--wp--preset--color--muzeja-sartais);
}

.filters-choice-list {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

@media only screen and (max-width: 768px) {
  .filters-choice-list {
    flex-wrap: nowrap;
    overflow-x: scroll;
  }
}

.btn-filter {
  background: transparent;
  border: none;
  color: var(--wp--preset--color--burtu-melnais);
  opacity: 0.6;
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: 1.5rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-bottom 0.25s;
  white-space: nowrap;
}

.btn-filter:hover {
  cursor: pointer;
}

.btn-filter.active {
  opacity: 1;
  border-bottom: 2px solid;
}


@media only screen and (min-width: 769px) {
  .mobile {
    display: none;
  }
}

.hidden {
  display: none;
}

.menu {
  padding: unset;
}

/* Heading font-size based margins */
.wp-block-heading.has-heading-h-2-font-size {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 2.75rem;
}

.wp-block-heading.has-heading-h-3-font-size {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 2.375rem;
}

.wp-block-heading.has-heading-h-4-font-size {
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 2rem;
}

.wp-block-heading.has-heading-h-5-font-size {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.875rem;
}

.wp-block-heading.has-heading-h-6-font-size {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.75rem;
}

/* Remove top margin for first-child headings */
.wp-block-heading:first-child {
  margin-top: 0;
}

.wp-block-heading.is-style-no-margin-top {
  margin-top: 0 !important;
}

.wp-block-heading.is-style-no-margin-bottom {
  margin-bottom: 0 !important;
}

.wp-block-heading.is-style-no-vertical-margin {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Styling for cookie consent notice */
.accept-cookies {
  background-color: var(--wp--preset--color--miglas-pelekais);
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
  font-size: 1rem;
}

.accept-cookies:before {
  content: "🍪";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}

@media (max-width: 768px) {
  .accept-cookies {
    padding: 0.9375rem;
    margin: 0.9375rem 0;
    font-size: 0.875rem;
  }
}


/* Cookie Notice styling for videos that are blocked */
.cookie-notice~.bp-load {
  filter: brightness(40%);
}

.cookie-notice~.bp-load .bp-o {
  display: none;
}

.cookie-notice {
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-direction: column;
  gap: 1rem;

  button {
    padding: 1rem;
    border-radius: 0;
  }

  p {
    color: white;
    text-align: center;
    line-height: 3rem;
  }
}

@media only screen and (max-width: 768px) {
  .cookie-notice {
    gap: 0;

    p {
      font-size: 1.5rem;
      line-height: 2rem;
      margin-top: 0;
      margin-bottom: 0.25rem;
    }
  }
}


.scroll-to-minus-header-offset {
	scroll-margin-top: 200px;
}

/* Hide virtual exhibitions for now (request from client) */
.exhibitions__filter-button[data-filter="virtuala-izstade"] {
  display: none;
}
.exhibitions__filter-button[data-filter="virtual-exhibition"] {
  display: none;
}
.current-posts__filter-button[data-filter="brivpratigie-lv"] {
	display: none;
}
.current-posts__filter-button[data-filter="volunteers"] {
	display: none;
}
