/*
Theme Name: Kumarakom Sanctuary
Theme URI: http://localhost/kumarakom-bird-sanctuary
Author: Kumarakom Bird Sanctuary
Description: Sanctuary website with editable pages, activities, testimonials, and a photo and video gallery with image popups.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kumarakom
*/

/* Lightbox and video modal sit above the sticky header. */
.kbs-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    padding: 1.5rem;
}

.kbs-overlay.is-open {
    display: flex;
}

.kbs-overlay img,
.kbs-overlay video,
.kbs-overlay iframe {
    max-width: min(1100px, 100%);
    max-height: 78vh;
    border-radius: 0.75rem;
    background: #000;
}

.kbs-overlay iframe,
.kbs-overlay video {
    width: min(1100px, 100%);
    height: min(68vh, 620px);
}

.kbs-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.kbs-nav-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.bg-sanctuaryGreen,
.bg-sanctuaryGreen\/95 { background-color: #1b4d2e; }
.text-sanctuaryGreen { color: #1b4d2e; }
.bg-btnGreen { background-color: #388e3c; }
.bg-btnGreenHover,
.hover\:bg-btnGreenHover:hover { background-color: #2e7d32; }
.font-serif { font-family: "Playfair Display", serif; }
.font-sans { font-family: Poppins, sans-serif; }

.kbs-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
    color: #fff;
}

.kbs-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.kbs-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.kbs-hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kbs-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.55));
}

.kbs-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    text-align: right;
}

.kbs-hero-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin: 0 0 1.5rem;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kbs-hero-title span {
    font-style: normal;
    color: #86efac;
}

.kbs-hero-btn {
    display: inline-block;
    background: #388e3c;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
}

.kbs-hero-btn:hover {
    background: #2e7d32;
}

.kbs-hero-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.kbs-hero-prev { left: 1rem; }
.kbs-hero-next { right: 1rem; }

.kbs-hero-dots {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.kbs-hero-dot {
    width: 0.7rem;
    height: 0.7rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.kbs-hero-dot.is-active {
    background: #fff;
}

@media (max-width: 640px) {
    .kbs-hero { min-height: 460px; }
    .kbs-hero-copy { text-align: center; margin: 0 auto; }
}

@media (min-width: 640px) {
    .kbs-hero { min-height: 600px; }
    .kbs-hero-slide { padding-right: 4rem; }
}

.kbs-brochure-cover {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.kbs-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
    padding: 4.5rem 1rem;
    color: #fff;
    background: #1b4d2e;
    text-align: center;
}

.kbs-page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kbs-page-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.28));
}

.kbs-page-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

@media (min-width: 640px) {
    .kbs-page-hero {
        min-height: 360px;
    }
}

.kbs-logo img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.kbs-content p,
.kbs-content ul,
.kbs-content ol {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.kbs-content h2,
.kbs-content h3 {
    font-family: "Playfair Display", serif;
    margin: 1.25rem 0 0.5rem;
}

body.admin-bar header.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar header.sticky {
        top: 46px;
    }
}
