/* cf-vars.css */
:root {
  --color-orange: #EB8C35;
  --color-green: #539e78;
  --color-lime: #e7ff7a;
  --color-lime-wash: #f3f8d1;
  --color-blue: #46a5e5;
  --color-blue-green: #86b499;
  --color-blue-grey: #415063;
  --color-navy: #0b344f;
}

/* cf-global.css */
:root {
  --mobile-menu-height: 105px;
}

body {
  background: #112339;
  color: white;
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: var(--color-lime-wash);
}
p {
  color: white;
  font-size: 1rem;
}
button, .button {
  font-weight: bold;
  background-color: var(--color-orange);
  padding: 0.5em 1em;
  font-size: 1.3rem;
  border: 0;
  font-family:"Barlow", sans-serif;
  cursor: pointer;
}
.button-done {
  background-color: transparent;
  border: 1px solid black;
}
header.wp-block-template-part {
  background: linear-gradient(#46a5e5, transparent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
header .cfmdc-logo {
  width: 275px;
}
header .cfmdc-logo a {
  display: block;
  width: 100%;
}
header .cfmdc-logo img {
  display: block;
  width: 100%;
}
footer.wp-block-template-part {
  display: none !important;
}

.cfmdc-header-actions :is(button, a) {
  background: transparent;
  color: var(--color-orange);
  font-weight: bold;
  text-transform: uppercase;
  border: 0px;
  border-bottom: 1px solid var(--color-orange);
  padding: 0.5rem;
  text-decoration: none;
  margin-right: 3rem;
}
.page-template-default .wp-block-post-title {
  color: var(--color-lime-wash);
  font-family: "Barlow", sans-serif;
  text-transform: uppercase;
}
main .wp-element-button {
  background-color: var(--color-lime);
  border-radius: 0;
  color: black;
  text-transform: uppercase;
  font-family: "Barlow", sans-serif;
  font-weight: bold;
}
.wp-block-table thead {
  border: 0;
}
.wp-block-table th {
  text-align: left;
  text-transform: uppercase;
  color: var(--color-lime-wash);
  font-weight: bold;
  font-size: 1.22rem;
}
.wp-block-table td, .wp-block-table th {
  border: 0;
  border-bottom: 1px solid var(--color-blue-green);
  font-family: "Barlow", sans-serif;
  text-transform: uppercase;
  font-weight: bold;
}
.wp-block-table td:first-child {
  color: var(--color-blue-green);
}
.wp-block-accordion-heading__toggle-title {
  flex: unset;
}
@media (orientation: portrait) {
  main#wp--skip-link--target {
    margin-top: var(--mobile-menu-height) !important;
    height: calc(100vh - var(--mobile-menu-height));
  }
  .accordion-container.full-screen {
    height: calc(100vh - var(--mobile-menu-height));
  }
}
.cf-social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: 0;
  width: 100vw;
  margin: 0;
  padding:0;
}
.cf-social-links a {
  text-decoration: none;
  margin: 0 0.35em;
  padding: 0.55em 0;
  display: block;
  transition: transform 0.3s ease;
}
.cf-social-links a:hover {
  transform: scale(1.45, 1.45);
}
.cf-social-links [class*="fa-"] {
  background: var(--color-green);
  color: black;
  border-radius: 100px;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cf-social-links [class*="fa-"]::before {
  font-size: 1.6rem;
}
.cf-social-links .cf-social-text {
  display: none;
}
/* TEMP */
.page-id-153297 h1.wp-block-heading {
  font-family: "Barlow", sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  color: var(--color-lime);
}
.page-id-153297 h2.wp-block-heading {
  font-family: "Barlow", sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--color-blue-green);
}

.wp-block-accordion-heading__toggle-title,
.wp-block-accordion-heading__toggle-icon {
  font-family: "Barlow", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--color-blue-green);
}
.page-id-153297 p {
  color: white;
  font-size: 1.2rem;
}

/* cf-nav.css */
/* Menu */
.wp-block-navigation__responsive-container-open svg {
  color: var(--color-orange);
}
.wp-block-navigation__responsive-container-close {
  top: 1rem;
  right: 1rem;
}
.wp-block-navigation-item {
  width:100%;
}

.wp-block-navigation .wp-block-navigation-item__content {
  font-weight: bold;
  text-align: center;
  display: block;
  width: 100%;
  font-size: 2rem;
  padding-bottom: 15px !important;
  outline-offset: 0 !important;
  outline-width: 0 !important;
}
.wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  color: white;
}

.wp-block-navigation .wp-block-navigation-item.current-menu-item>.wp-block-navigation__submenu-container {
  display: block !important;
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container {
  padding: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: none !important; /* disable for now */
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container .wp-block-navigation-item {
  border-bottom: 0;
}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block !important;
  box-sizing: border-box;
  font-weight: normal !important;
  font-size: 1.5rem;
}
#modal-1 {
  background-color: rgba(0,0,0, 0.2) !important;
}

#modal-1 .wp-block-navigation__container{
  width: 100%;
}
#modal-1 .wp-block-navigation__responsive-close {
  position: relative;
}
#modal-1 .wp-block-navigation__responsive-dialog {
  width: 100vw;
  background-color: var(--color-orange);
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  padding: 20px;
  margin-top: 0;
}
#modal-1-content {
  padding-top: 2rem !important;
}

/* cf-dynamic-panel.css */
.cf-dynamic-panel {
  display: none;
}
.cf-dynamic-panel.active {
  display: block;
}

/* cf-drop-down.css */
/* CF drop down */


/* ── Variables ── */
.cf-drop-down {
  --text: #1f2937;
  --accent: #2563eb;
  --hover-bg: #eff6ff;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  --radius: 8px;

  position: relative;
  display: inline-block;
}
.cf-drop-down {
  --text: black;
  --accent: #2563eb;
  --hover-bg: #EB8C35;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  --radius: 0px;
}

/* ── Hide the checkbox visually ── */
.cf-drop-down--activate {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ── Label acts as the visible button ── */
.cf-drop-down label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 50px;
  padding: 10px 14px;
  background: var(--color-green);
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* ── Arrow via pseudo-element ── */
.cf-drop-down label.cf-drop-down--current {
  font-weight: bold;
}
.cf-drop-down label.cf-drop-down--current::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cf-drop-down label.cf-drop-down--current:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cf-drop-down .cf-drop-down--reset label {
  font-size: 1rem;
  font-weight: bold;
  font-style: normal;
  color: black;
}

/* ── Dropdown list — hidden by default ── */
.cf-drop-down ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-green);
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* ── Open state ── */
.cf-drop-down--activate:checked ~ ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Flip arrow when open ── */
.cf-drop-down--activate:checked ~ label::after {
  transform: rotate(225deg) translateY(-2px);
}

/* ── List items ── */
.cf-drop-down li {
  border-radius: calc(var(--radius) - 2px);
}
.cf-drop-down li input {
  display: none;
}

.cf-drop-down li :is(a, label) {
  display: block;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: calc(var(--radius) - 2px);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cf-drop-down li :is(a, label):hover {
  background: var(--hover-bg);
  color: var(--accent);
}

/* cf-fields.css */
.cf-radio-list--heading {
  font-weight: bold;
}
.cf-radio-list ul li {
  display: inline-block;
  margin-right: 1em;
  padding: 0.5em 0;
}
.cf-radio-list ul li input {
  display: inline-block;
  margin-right: 0.75em;
}

.cf-tag-list--heading {
  font-weight: bold;
}
.cf-tag-list ul li {
  display: inline-block;
  margin-right: 0.5em;
}
.cf-tag-list li input {
  display: none;
}
.cf-tag-list li input:checked + label {
  background: rgba(255,255,255, 1);
  border: 1px solid black;
}
.cf-tag-list li label {
  background: rgba(255,255,255, 0.8);
  display: block;
  padding: 0.5em;
  border: 1px solid white;
}

/* cf-form.css */
.cf-field>label {
  text-transform: uppercase;
  color: var(--color-green);
  font-family: "Barlow", sans-serif;
  font-weight: bold;
}
.cf-field>:is(input, textarea, select) {
  background: var(--color-blue-grey);
  padding: 0.5em 1em;
  color: white;
  border: 0;
}
.cf-section-label {
  background: var(--color-lime-wash);
  color: var(--color-navy);
  text-transform: uppercase;
  padding: 0.5em 1em;
  font-family: "Barlow", sans-serif;
  font-weight: bold;
}
.cf-field--info {
  background: transparent;
  color: white;
  padding:0;
  margin: 0 0.2em;
}
.cf-field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.cf-checkbox-option {
  color: white;
  margin-bottom: 1em;
  font-size: 1rem;
}

/* cf-accordion.css */
.tab-text {
  text-transform: uppercase;
  font-size: 2rem;
/*
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
*/
  box-shadow: inset -10px 0px 15px rgba(0, 0, 0, 0.5);
  border-width:0;
  font-family: var(--wp--preset--font-family--archivo);
  font-family: "Barlow", sans-serif;
  font-weight: bold;
}
.slider-film-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background: black;
}
.slider-film-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Keeps the video centered during resizing */
  
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;

  /* The Logic: */
  /* If the container is wider than 16:9, scale by width */
  min-width: 133.33vh; 
  /* If the container is taller than 16:9 (Portrait), scale by height */
  min-height: 75vw; 
  
  /* Modern Browser fallback to ensure it covers the area */
  width: max(100%, 133.33vh);
  height: max(100%, 75vw);
}
.accordion-tab button {
  background: var(--color-navy);
  color: var(--color-green);
}

/* cf-theatre.css */
.header-theatre {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
.header-theatre .wp-block-post-title {
  padding-top: 160px;
  font-weight: bold;
}
.film-player {
  position: absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:black;
}
.film-player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Keeps the video centered during resizing */
  
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;

  /* The Logic: */
  /* If the container is wider than 16:9, scale by width */
  min-width: 133.33vh; 
  /* If the container is taller than 16:9 (Portrait), scale by height */
  min-height: 75vw; 
  
  /* Modern Browser fallback to ensure it covers the area */
  width: max(100%, 133.33vh);
  height: max(100%, 75vw);
}
.film-player img.film-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-block-details{
  position: relative;
  padding-bottom: var(--wp--preset--spacing--60);
  background: linear-gradient(transparent, rgba(0,0,0, 0.5), rgba(0,0,0,0.81), rgba(0,0,0,1));
}
.film-meta {
  display: grid;
  grid-template: auto / 1fr 2fr;
}
.film-meta strong {
  font-weight: bold;
}



/* cf-image-list.css */
.image-list ul {
	grid-gap: 3rem;
	list-style: none;
}
.image-list--item {
	padding: 0;
}
.image-list--thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  aspect-ratio: 4/3;
}

.image-list--thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.image-list--thumbnail .image-list--label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(83, 158, 120,0.5), rgba(83, 158, 120,0.7), rgba(83, 158, 120,0.9), rgba(83, 158, 120,1));
  color: white;
  display: block;
  padding: 0.5em;
}

/* cf-home.css */
.home .wp-block-post-title {
  display: none;
}
.home main {
  margin: 0 !important;
}

/* cf-film.css */
:is(.films-stills, .films-related) ul {
  list-style: none;
  display: grid;
  grid-template: auto / repeat(5, 1fr);
  grid-gap: 3rem;
  padding: 0;
}

/* Film */
.single-film {
  color: white;
}
.single-film .cf-qty-value {
  display: none;
}

/* cf-film-search.css */
.page-template-archive-film {
  color: white;
}
.film-search--block {
  margin-top: 0;
}
.film-search--top-line {
  padding: 0.5em 0 2em 0;
}
#q-mobile {
  width: 100%;
}
#q {
  display: none;
}
.cf-q {
  background: var(--color-green);
  border: 0;
  padding: 14px 14px;
  font-size: 0.95rem;
  font-family: var(--wp--preset--font-family--archivo);
  font-weight:bold;
}
.cf-q::placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--wp--preset--font-family--archivo);
  font-weight:bold;
}
.film-search--filter {
  font-weight: bold;
  display: inline-block;
}

#film-search--options-enable {
  display: none;
}
#film-search--options-enable:checked ~ .film-search--options {
  display: block;
}
.film-search--options {
  display: none;
  background-color: rgba(255,255,255, 0.5);
  padding: 0.5rem;
}
.film-search--options ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.film-search--formats--heading {
  font-weight: bold;
}
.film-search--actions {
}
.film-search--actions .film-search--clear-filters {
  font-weight: bold;
  text-decoration: none;
  margin-right: 1em;
  position: relative;
  padding-left: 1em;
}
.film-search--actions .film-search--clear-filters::before {
  content: '\00D7';
  position: absolute;
  top: -0.3em;
  left: 0;
  font-size: 1.2em;
}

@media (min-width: 700px) {
  .film-search--filter {
    display: none;
  }
  .film-search--top-line {
    display: none;
  }
  .film-search--options {
    display: flex;
    padding: 0.2rem 0;
    width: 100%;
    flex-wrap: wrap;
    background: transparent;
    align-items: center;
  }
  .film-search--options :is(.cf-drop-down, [type="text"]) {
    margin: 1em 1em 1em 0;
  }
  #q {
    display: block;
    min-width: 300px;
  }
}

/* cf-film-maker.css */
.page-template-single-film-maker {
  color: white;
}

