/*
Theme Name: Kadence Child
Theme URI: https://filmgeographies.com
Description: Child theme for Kadence
Author: Film Geographies
Template: kadence
Version: 1.0.0
*/
/* Films Archive Grid */
.films-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.films-search-bar {
    margin-bottom: 30px;
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.film-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.film-card a {
    text-decoration: none;
    color: inherit;
}

.film-gif-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.film-gif-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    font-size: 0.85em;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.film-card:hover .film-hover-text {
    opacity: 1;
}

.film-no-gif {
    width: 100%;
    padding-bottom: 56.25%;
    background: #111;
    position: relative;
}

.film-no-gif span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 10px;
}

.film-title {
    padding: 10px;
    margin: 0;
    font-size: 0.9em;
    color: #fff;
    background: #000;
}

.films-pagination {
    margin-top: 40px;
    text-align: center;
}

.films-pagination a, .films-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 2px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.films-pagination .current {
    background: #555;
}
.film-gif-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
}

.film-gif-wrap img.film-still-img,
.film-gif-wrap img.film-gif-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-gif-wrap img.film-gif-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.film-gif-wrap:hover img.film-gif-img,
.fg-row-card:hover .film-gif-wrap img.film-gif-img {
    opacity: 1;
}
.film-hover-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 40%;
    padding: 0.6em;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-size: 0.8em;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow: hidden;
}

.film-gif-wrap:hover .film-hover-text,
.fg-row-card:hover .film-hover-text {
    opacity: 1;
}

.film-no-gif {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 6px;
    text-align: center;
    padding: 0.5em;
}

.film-no-gif span {
    color: #ccc;
    font-size: 0.9em;
}

.film-title {
    color: #fff;
    font-size: 0.95em;
    margin: 0.4em 0 0;
    padding: 0 2px;
}

.fg-theme-row {
    margin: 2.5em 0;
    position: relative;
}

fg-theme-row::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 0;
    bottom: 10px;
    width: 60px;
    background: linear-gradient(to right, transparent, #0d0d0d);
    pointer-events: none;
}

.fg-row-title {
    color: #4A90D9;
    margin-bottom: 0.6em;
    padding-left: 4px;
}

.fg-row-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    padding-right: 60px;
}

.fg-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.fg-row-scroll::-webkit-scrollbar-thumb {
    background: #F5E642;
    border-radius: 3px;
}

.fg-row-card {
    flex: 0 0 280px;
    max-width: 280px;
}

.fg-hero-empty {
    color: #eee;
}

.fg-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    min-height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.fg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.fg-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 20px;
    color: #fff;
}

.fg-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: #fff;
}
.fg-hero-content p {
    font-size: 1.3rem;
    color: #fff;
}
.fg-hero-buttons {
    margin-top: 1.5em;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.fg-btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.fg-btn-primary {
    background: #EC1E5F;
    color: #fff;
}

.fg-btn-primary:hover {
    background: #c2184f;
}

.fg-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid #fff;
}

.fg-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}
body.hide-site-title .site-title {
    display: none;
}
.site-title {
    display: none;
}
body.non-transparent-header .site-header {
    background: #0d0d0d !important;
}
/* Nav menu text color - normal state */
.site-header .main-navigation a,
.site-header nav a {
    color: #ffffff !important;
}

/* Nav menu text color - hover state */
.site-header .main-navigation a:hover,
.site-header nav a:hover {
    color: #E31C5F !important;
}

/* Nav menu text color - current/active page */
.site-header .current-menu-item > a,
.site-header .current_page_item > a {
    color: #4A90D9 !important;
}
/* Nav menu text color - normal state */
.site-header .main-navigation a,
.site-header nav a {
    color: #ffffff !important;
}

/* Nav menu text color - hover state */
.site-header .main-navigation a:hover,
.site-header nav a:hover {
    color: #E31C5F !important;
}

/* Nav menu text color - current/active page */
.site-header .current-menu-item > a,
.site-header .current_page_item > a {
    color: #4A90D9 !important;
}
.site-description {
    color: #ffffff !important;
}
.tag-link,
.tag-link span,
.tag-link * {
    color: #7EC8E3 !important;
}
.wp-block-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}

.wp-block-image figcaption.wp-element-caption {
    color: #eee;
}
/* Fix Verse block (wp-block-verse) styling on dark background */
.wp-block-verse {
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 !important;
}