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

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


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

  position: relative;
  display: inline-block;
}

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

/* ── Label acts as the visible button ── */
.cf-dropdown label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 200px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  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-dropdown label::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-dropdown label:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── Dropdown list — hidden by default ── */
.cf-dropdown ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1.5px solid var(--border);
  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-activate-dropdown:checked ~ ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

/* ── List items ── */
.cf-dropdown li {
  border-radius: calc(var(--radius) - 2px);
}

.cf-dropdown li a {
  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-dropdown li a:hover {
  background: var(--hover-bg);
  color: var(--accent);
}

/* ── Reset item — visually distinct ── */
.cf-dropdown li:first-child a {
  color: #9ca3af;
  font-style: italic;
}

.cf-dropdown li:first-child {
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

/* cf-film.css */
.films--list ul {
	grid-gap: 3rem;
	list-style: none;
}
.films--list--item {
	padding: 0;
}
.film-still {
	display: block;
}
.film-still img {
  	width: 100%;
	height: auto;
	object-fit: cover;
}
.films--list li.wp-block-post.film .entry-content {
	display: none;
}
.film-filters:hover .taxonomy-filters {
	display: block;
}
.taxonomy-filters {
	display: none;
}
.film-filters .filter-list ul {
        column-count: 3;
	height: 20vh;
	overflow-y: auto;
}

:is(.films--stills, .films--related) ul {
  list-style: none;
  display: grid;
  grid-template: auto / repeat(5, 1fr);
  grid-gap: 3rem;
}
:is(.films--stills, .films--related) ul img {
  width: 100%;
}

/* cf-nav.css */
/* Menu */
/* Hide second level nav items by default */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-container {
  display: block !important;
  overflow: hidden !important;
  max-height: 0;
  transition: max-height 0.5s ease;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Show on hover */
.wp-block-navigation .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container {
  max-height: 500px; /* large enough to fit your submenu */
  visibility: visible;
  opacity: 1;
}

/* cf-accordion.css */

body.home .accordion-container {
  height: 80vh;
}

.tab-text {
  text-transform: uppercase;
  font-size: 2rem;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-width:0;
  font-family: var(--wp--preset--font-family--archivo);
  font-family: "Archivo", sans-serif;
  font-weight: bold;
}

