/* 9th Realm Core Styles */

.ninth-realm-guest-artists-container {
    font-family: inherit;
}

/* Guest Artist Filters */
.guest-artist-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.guest-artist-filters .filter-btn {
    background: transparent;
    border: 1px solid var(--nr-primary-color, #e65c00);
    color: var(--nr-primary-color, #e65c00);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-artist-filters .filter-btn.active,
.guest-artist-filters .filter-btn:hover {
    background: var(--nr-primary-color, #e65c00);
    color: #000;
}

/* Guest Artist Grid */
.guest-artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.guest-artist-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.guest-artist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 92, 0, 0.4);
}

.guest-artist-card .card-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
}

.guest-artist-card .card-content {
    padding: 20px;
    text-align: center;
}

.guest-artist-card h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1.4rem;
}

.guest-artist-card .dates {
    color: var(--nr-primary-color, #e65c00);
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.guest-artist-card .view-details-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.guest-artist-card:hover .view-details-btn {
    background: var(--nr-primary-color, #e65c00);
    color: #000;
}

/* Modal */
.guest-artist-modal {
    display: none;
    position: fixed;
    z-index: 99999999;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
    padding: 40px 15px;
    box-sizing: border-box;
}

.guest-artist-modal .modal-content {
    background-color: #1a1a1a;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #333;
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-wrap: wrap;
    color: #fff;
    overflow: hidden;
}

.guest-artist-modal .close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.guest-artist-modal .close-modal:hover,
.guest-artist-modal .close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.guest-artist-modal .modal-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.guest-artist-modal .modal-image-col {
    flex: 1 1 350px;
}

.guest-artist-modal .modal-image-col img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.guest-artist-modal .modal-text-col {
    flex: 1 1 350px;
    padding: 40px;
}

.guest-artist-modal h2 {
    color: #fff;
    margin-top: 0;
    font-size: 2rem;
}

.guest-artist-modal .modal-dates {
    color: var(--nr-primary-color, #e65c00);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.guest-artist-modal .social-link {
    display: inline-block;
    margin-top: 20px;
    background: var(--nr-primary-color, #e65c00);
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .guest-artist-modal {
        padding: 20px 10px;
    }

    .guest-artist-modal .modal-image-col img {
        max-height: 350px;
    }

    .guest-artist-modal .modal-text-col {
        padding: 25px;
    }
}

/* Guest Artist Modal Gallery */
.guest-artist-modal .gallery-title {
    color: var(--nr-primary-color, #e65c00);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    border-top: 1px solid #1e2229;
    padding-top: 30px;
}

.guest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.guest-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #1e2229;
    transition: transform 0.3s, border-color 0.3s;
}

.guest-gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--nr-primary-color, #e65c00);
}

/* ==========================================================================
   9th Realm Branded Utility Classes (Colibri Add-ons)
   ========================================================================== */

/* 1. The Polaroid Effect */
.nr-polaroid {
    background-color: #f4f1ea !important;
    /* Aged off-white paper */
    padding: 15px 15px 60px 15px !important;
    /* Thick borders, heavy bottom */
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #d4cdbd;
    border-radius: 2px;
    transform: rotate(-2deg);
    /* Subtle toss angle */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: inline-block;
    position: relative;
    max-width: 100%;
}

.nr-polaroid:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Make images inside polaroid fit perfectly */
.nr-polaroid img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    /* Slight inset on the photo */
}

/* Handwritten caption area in the bottom padding */
.nr-polaroid h2,
.nr-polaroid h3,
.nr-polaroid p {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #1a1a1a !important;
    /* Ink black/dark grey */
    font-family: "Caveat", "Permanent Marker", "Bradley Hand", cursive !important;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
    transform: rotate(1deg);
    /* Sloppy handwriting tilt */
}

/* 2. Ornate Gothic Frame */
.nr-ornate-frame {
    position: relative;
    padding: 25px !important;
    background: #0a0a0a;
    border: 8px solid #2a2a2a;
    border-radius: 2px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        0 10px 30px rgba(0, 0, 0, 0.8),
        0 0 0 4px #4a3a1f,
        /* Tarnished bronze outer */
        inset 0 0 0 4px #4a3a1f;
    /* Tarnished bronze inner */
}

.nr-ornate-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(230, 92, 0, 0.2);
    /* Subtle orange inner accent */
    pointer-events: none;
}

.nr-ornate-frame img {
    display: block;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 1);
    /* Deep recess shadow */
}

/* 3. Dark Glassmorphism Card */
.nr-glass-dark {
    background: rgba(15, 15, 15, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(230, 92, 0, 0.2);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    color: #fff;
    transition: border-color 0.3s;
}

.nr-glass-dark:hover {
    border-color: rgba(230, 92, 0, 0.5);
}

/* 4. Macabre / Apothecary Heading (Light BG) */
.nr-gothic-heading,
.nr-gothic-heading-light-text,
.nr-gothic-heading h1,
.nr-gothic-heading-light-text h1,
.nr-gothic-heading h2,
.nr-gothic-heading-light-text h2,
.nr-gothic-heading h3,
.nr-gothic-heading-light-text h3,
.nr-gothic-heading h4,
.nr-gothic-heading-light-text h4 {
    font-family: "Cinzel", "Times New Roman", serif !important;
    text-transform: uppercase !important;
    letter-spacing: 6px !important;
    color: #1a1614 !important;
    /* Very dark, aged vintage ink */
    text-align: center !important;
    position: relative;
    /* margin-bottom: 40px !important; */
    /* Vintage Letterpress Effect: looks stamped hard into light paper */
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.7), -1px -1px 0px rgba(0, 0, 0, 0.2) !important;
}

/* Elegant, faded vintage underline instead of a cheesy icon */
.nr-gothic-heading::after,
.nr-gothic-heading-light-text::after,
.nr-gothic-heading h1::after,
.nr-gothic-heading-light-text h1::after,
.nr-gothic-heading h2::after,
.nr-gothic-heading-light-text h2::after,
.nr-gothic-heading h3::after,
.nr-gothic-heading-light-text h3::after,
.nr-gothic-heading h4::after,
.nr-gothic-heading-light-text h4::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background-color: #1a1614;
    margin: 15px auto 0;
    opacity: 0.3;
}

/* Alignment Modifiers */
.nr-gothic-heading.align-left,
.nr-gothic-heading-light-text.align-left,
.nr-gothic-heading.align-left h1,
.nr-gothic-heading-light-text.align-left h1,
.nr-gothic-heading.align-left h2,
.nr-gothic-heading-light-text.align-left h2,
.nr-gothic-heading.align-left h3,
.nr-gothic-heading-light-text.align-left h3,
.nr-gothic-heading.align-left h4,
.nr-gothic-heading-light-text.align-left h4 {
    text-align: left !important;
}
.nr-gothic-heading.align-left::after,
.nr-gothic-heading-light-text.align-left::after,
.nr-gothic-heading.align-left h1::after,
.nr-gothic-heading-light-text.align-left h1::after,
.nr-gothic-heading.align-left h2::after,
.nr-gothic-heading-light-text.align-left h2::after,
.nr-gothic-heading.align-left h3::after,
.nr-gothic-heading-light-text.align-left h3::after,
.nr-gothic-heading.align-left h4::after,
.nr-gothic-heading-light-text.align-left h4::after {
    margin-left: 0;
}

.nr-gothic-heading.align-right,
.nr-gothic-heading-light-text.align-right,
.nr-gothic-heading.align-right h1,
.nr-gothic-heading-light-text.align-right h1,
.nr-gothic-heading.align-right h2,
.nr-gothic-heading-light-text.align-right h2,
.nr-gothic-heading.align-right h3,
.nr-gothic-heading-light-text.align-right h3,
.nr-gothic-heading.align-right h4,
.nr-gothic-heading-light-text.align-right h4 {
    text-align: right !important;
}
.nr-gothic-heading.align-right::after,
.nr-gothic-heading-light-text.align-right::after,
.nr-gothic-heading.align-right h1::after,
.nr-gothic-heading-light-text.align-right h1::after,
.nr-gothic-heading.align-right h2::after,
.nr-gothic-heading-light-text.align-right h2::after,
.nr-gothic-heading.align-right h3::after,
.nr-gothic-heading-light-text.align-right h3::after,
.nr-gothic-heading.align-right h4::after,
.nr-gothic-heading-light-text.align-right h4::after {
    margin-right: 0;
}

/* Light Text Modifier for Dark Backgrounds */
.nr-gothic-heading.light-text,
.nr-gothic-heading-light-text,
.nr-gothic-heading.light-text h1,
.nr-gothic-heading-light-text h1,
.nr-gothic-heading.light-text h2,
.nr-gothic-heading-light-text h2,
.nr-gothic-heading.light-text h3,
.nr-gothic-heading-light-text h3,
.nr-gothic-heading.light-text h4,
.nr-gothic-heading-light-text h4 {
    color: #f4f1ea !important;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9), -1px -1px 0px rgba(255, 255, 255, 0.1) !important;
}

.nr-gothic-heading.light-text::after,
.nr-gothic-heading-light-text::after,
.nr-gothic-heading.light-text h1::after,
.nr-gothic-heading-light-text h1::after,
.nr-gothic-heading.light-text h2::after,
.nr-gothic-heading-light-text h2::after,
.nr-gothic-heading.light-text h3::after,
.nr-gothic-heading-light-text h3::after,
.nr-gothic-heading.light-text h4::after,
.nr-gothic-heading-light-text h4::after {
    background-color: #f4f1ea;
    opacity: 0.4;
}

/* Prevent double-underlines if applied to wrapper */
.nr-gothic-heading:has(h1)::after,
.nr-gothic-heading-light-text:has(h1)::after,
.nr-gothic-heading:has(h2)::after,
.nr-gothic-heading-light-text:has(h2)::after,
.nr-gothic-heading:has(h3)::after,
.nr-gothic-heading-light-text:has(h3)::after,
.nr-gothic-heading:has(h4)::after,
.nr-gothic-heading-light-text:has(h4)::after {
    display: none;
}

/* 5. Tattoo Flash Hover Grid */
.nr-flash-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
    /* Flash sheets are tight */
    padding: 20px;
    background: #111;
    border: 2px solid #222;
}

.nr-flash-grid>* {
    flex: 1 1 200px;
    margin: 0 !important;
    transition: all 0.3s ease;
    filter: sepia(0.3) contrast(0.9) brightness(0.8);
    /* Slightly faded paper look */
}

.nr-flash-grid>*:hover {
    filter: sepia(0) contrast(1.1) brightness(1.1);
    /* Full vibrant pop */
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
}

/* Social Icon Button Hover States */
.artist-socials .social-link:hover {
    background: var(--nr-primary-color, #e65c00) !important;
    /* Brand orange pop */
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 92, 0, 0.4) !important;
}

/* ============================================
   6. Artist Profile Cards [artist_cards]
   ============================================ */

.nr-artist-cards {
    display: grid;
    grid-template-columns: repeat(var(--nr-card-columns, 3), 1fr);
    gap: 30px;
    padding: 20px 0;
}

.nr-artist-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nr-artist-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(230, 92, 0, 0.15);
    border-color: rgba(230, 92, 0, 0.4);
}

/* Profile Image Area */
.nr-artist-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0a0a0a;
}

.nr-artist-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(30%) contrast(1.05);
}

.nr-artist-card:hover .nr-artist-card__image img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
}

/* Warm glow overlay on hover */
.nr-artist-card__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        transparent 70%
    );
    transition: background 0.4s ease;
    pointer-events: none;
}

.nr-artist-card:hover .nr-artist-card__glow {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(230, 92, 0, 0.08) 40%,
        transparent 70%
    );
}

/* Initials placeholder when no image is set */
.nr-artist-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cinzel", "Times New Roman", serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(230, 92, 0, 0.3);
    background: radial-gradient(circle at center, #1a1614 0%, #0a0a0a 100%);
    letter-spacing: 8px;
}

/* Name and CTA */
.nr-artist-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.nr-artist-card__info h3 {
    margin: 0 0 6px 0;
    font-family: "Cinzel", "Playfair Display", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.nr-artist-card:hover .nr-artist-card__info h3 {
    color: var(--nr-primary-color, #e65c00);
}

.nr-artist-card__cta {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nr-artist-card:hover .nr-artist-card__cta {
    color: var(--nr-primary-color, #e65c00);
    transform: translateX(4px);
}

/* Responsive: Tablet */
@media (max-width: 900px) {
    .nr-artist-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive: Mobile */
@media (max-width: 580px) {
    .nr-artist-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nr-artist-card__info h3 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   7. Custom Back to Top Button (Skull)
   ============================================ */

/* 1. Hide the default colibri SVG */
.nr-skull-btn-widget svg {
    display: none !important;
}

/* 2. Style the wrapper as a dark stone block */
.nr-skull-btn-widget {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px !important;
    background-color: #15171a !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Ensure the link inside fills the whole block so it's clickable */
.nr-skull-btn-widget a {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
}

/* 3. Inject the Skull using a CSS Mask */
.nr-skull-btn-widget::before {
    content: "" !important;
    position: absolute !important;
    width: 55% !important;
    height: 55% !important;
    background-color: #a8a8a8 !important; 
    
    /* FontAwesome Skull SVG */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7V400c0 26.5-21.5 48-48 48h-48c-8.8 0-16-7.2-16-16v-16h-16v16c0 8.8-7.2 16-16 16h-48c-26.5 0-48-21.5-48-48V330.7C110.9 296.3 96 253.9 96 208 96 93.1 167.6 0 256 0s160 93.1 160 208zM208 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm160-32a32 32 0 1 0 0 64 32 32 0 1 0 0-64zM240 352h32c8.8 0 16-7.2 16-16v-16H224v16c0 8.8 7.2 16 16 16z'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7V400c0 26.5-21.5 48-48 48h-48c-8.8 0-16-7.2-16-16v-16h-16v16c0 8.8-7.2 16-16 16h-48c-26.5 0-48-21.5-48-48V330.7C110.9 296.3 96 253.9 96 208 96 93.1 167.6 0 256 0s160 93.1 160 208zM208 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm160-32a32 32 0 1 0 0 64 32 32 0 1 0 0-64zM240 352h32c8.8 0 16-7.2 16-16v-16H224v16c0 8.8 7.2 16 16 16z'/%3E%3C/svg%3E") !important;
    
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    
    transition: all 0.4s ease !important;
    z-index: 2 !important;
}

/* 4. The Cracked Texture Overlay */
.nr-skull-btn-widget::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpath d='M15,0 L25,20 L10,35 L30,60 L20,100' stroke='rgba(0,0,0,0.6)' stroke-width='2' fill='none'/%3E%3Cpath d='M50,0 L35,40 L55,55 L45,100' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    z-index: 3 !important;
}

/* 5. Hover Effects */
.nr-skull-btn-widget:hover {
    background-color: #000 !important;
    box-shadow: 0 0 20px rgba(230, 92, 0, 0.4), inset 0 0 0 1px var(--nr-primary-color, #e65c00) !important;
}

.nr-skull-btn-widget:hover::before {
    background-color: var(--nr-primary-color, #e65c00) !important; 
    transform: scale(1.15) !important;
    animation: skullShake 0.4s cubic-bezier(.36,.07,.19,.97) both !important;
}

.nr-skull-btn-widget:hover::after {
    opacity: 1 !important;
}

/* 6. Rattle Animation */
@keyframes skullShake {
    10%, 90% { transform: translate3d(-1px, 0, 0) scale(1.15); }
    20%, 80% { transform: translate3d(2px, 0, 0) scale(1.15); }
    30%, 50%, 70% { transform: translate3d(-2px, 0, 0) scale(1.15); }
    40%, 60% { transform: translate3d(2px, 0, 0) scale(1.15); }
}

/* ============================================
   8. Forminator Select2 Minimalist Styling (Bulletproof)
   ============================================ */

/* The main select input box (inside the form) */
html body .forminator-custom-form .select2-container--default .select2-selection--single,
html body .forminator-custom-form .forminator-select .select2-selection--single,
html body .forminator-design--material .forminator-select .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #000 !important;
    border-radius: 0 !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Nuke the default blue outline globally */
html body .forminator-custom-form .select2-container *:focus {
    outline: none !important;
    box-shadow: none !important;
}

html body .forminator-custom-form .select2-container--open .select2-selection--single,
html body .forminator-custom-form .select2-selection--single:hover,
html body .forminator-design--material .select2-container--open .select2-selection--single {
    border-bottom: 2px solid var(--nr-primary-color, #e65c00) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* The arrow color (override blue) */
html body .forminator-custom-form .select2-container .select2-selection__arrow {
    color: #000 !important;
}
html body .forminator-design--material .forminator-select .select2-selection__arrow[class*="forminator-icon-"] {
    color: #000 !important;
}
html body .forminator-design--material .select2-container--open .select2-selection__arrow[class*="forminator-icon-"] {
    color: var(--nr-primary-color, #e65c00) !important;
}

/* The text inside the select input */
html body .forminator-custom-form .select2-selection__rendered {
    color: #000 !important;
    line-height: 40px !important;
    padding-left: 0 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* The dropdown container (Forminator appends this to the <body>, not the form!) */
html body .select2-container .select2-dropdown {
    background-color: #fff !important; 
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    z-index: 999999 !important;
    outline: none !important;
}

/* The options list */
html body .select2-container .select2-results__option {
    padding: 12px 15px !important;
    color: #333 !important; 
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    background-color: #fff !important; 
    transition: all 0.2s ease !important;
    outline: none !important;
    margin: 0 !important;
}
html body .select2-container .select2-results__option:last-child {
    border-bottom: none !important;
}

/* Hover/Focus states for options */
html body .select2-container .select2-results__option--highlighted,
html body .select2-container .select2-results__option[aria-selected=true],
html body .select2-container .select2-results__option:hover {
    background-color: #f5f5f5 !important;
    color: var(--nr-primary-color, #e65c00) !important;
    border: none !important;
    outline: none !important;
}

/* ============================================
   9. Global Filterable Gallery
   ============================================ */

.nr-global-gallery-wrapper {
    width: 100%;
    margin: 40px 0;
}

/* Portal Filter Dropdown */
.nr-portal-filter-container {
    position: relative;
    max-width: 320px;
    margin: 0 auto 40px auto;
    font-family: inherit;
    z-index: 100;
}

.nr-portal-active-filter {
    background: rgba(20, 24, 30, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #1e2229;
    border-radius: 8px;
    padding: 14px 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.nr-portal-active-filter:hover {
    border-color: var(--nr-primary-color, #e65c00);
    box-shadow: 0 0 15px rgba(230, 92, 0, 0.2);
}

.nr-portal-current-text {
    color: var(--nr-primary-color, #e65c00);
    margin-left: 5px;
}

.nr-portal-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nr-portal-filter-container.open .nr-portal-chevron {
    transform: rotate(180deg);
}

.nr-portal-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 18, 22, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #1e2229;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    scrollbar-width: thin;
    scrollbar-color: var(--nr-primary-color, #e65c00) #1e2229;
}

.nr-portal-filter-container.open .nr-portal-dropdown-list {
    max-height: 350px;
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
    border-top: 1px solid #1e2229;
    border-radius: 8px;
}

.nr-portal-option {
    padding: 12px 20px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nr-portal-option:last-child {
    border-bottom: none;
}

.nr-portal-option:hover,
.nr-portal-option.active {
    background: rgba(230, 92, 0, 0.1);
    color: var(--nr-primary-color, #e65c00);
    padding-left: 25px;
}

/* View Transitions for Gallery */
::view-transition-group(*) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery Grid (Masonry / Flex approach) */
.nr-global-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nr-gallery-item {
    width: calc(25% - 11.25px); /* 4 columns gap 15px */
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 8px;
    overflow: hidden;
}

.nr-gallery-item.hidden {
    display: none;
}

.nr-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nr-gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .nr-gallery-item {
        width: calc(33.333% - 10px); /* 3 columns */
    }
}
@media (max-width: 768px) {
    .nr-global-gallery-grid.nr-mobile-cols-1 .nr-gallery-item {
        width: 100%;
    }
    .nr-global-gallery-grid.nr-mobile-cols-2 .nr-gallery-item,
    .nr-gallery-item {
        width: calc(50% - 7.5px); /* default 2 columns on tablet */
    }
}
@media (max-width: 480px) {
    .nr-global-gallery-grid.nr-mobile-cols-1 .nr-gallery-item {
        width: 100%; /* 1 column */
    }
    .nr-global-gallery-grid.nr-mobile-cols-2 .nr-gallery-item {
        width: calc(50% - 7.5px); /* 2 columns */
    }
}

/* Mobile Filter Adjustments */
@media (max-width: 768px) {
    .guest-artist-filters {
        gap: 8px;
    }
    .guest-artist-filters .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================
   9. Sacred Draw Menu & Hexagon Portal
   ============================================ */

/* Mobile Only overrides (Colibri usually switches at 1024px or 768px. Let's say max-width 1023px) */
@media (min-width: 1024px) {
    /* Hide our injected logic on desktop so the normal Colibri header works perfectly */
    .epic-btn, .hex-layer, .portal-menu-list { display: none !important; }
}

@media (max-width: 1023px) {
    /* Hide the default Colibri offcanvas completely */
    .h-offcanvas, .offcanvas-overlay { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

    /* Pre-size the container to prevent layout shift */
    .h-hamburger-button {
      min-width: 60px !important;
      min-height: 60px !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      position: relative !important;
      z-index: 999999 !important;
    }
    /* Hide the original icon immediately on load (avoids flash of unstyled icon) */
    html:not(.is-colibri-builder) .h-hamburger-icon {
      display: none !important;
    }

    /* The Sacred Draw Button - injected inside the normal header button */
    .epic-btn {
      position: relative; z-index: 999999;
      width: 60px; height: 60px; background: transparent; border: none; outline: none; cursor: pointer;
      display: flex; justify-content: center; align-items: center;
      -webkit-tap-highlight-color: transparent; padding: 0; margin: 0;
    }

    .hexagram-icon { 
      width: 36px; height: 36px; position: absolute; inset: 0; margin: auto; transform-origin: center center;
      transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); pointer-events: none; 
    }
    .hexagram-icon polygon, .hexagram-icon circle { transition: all 0.4s ease; }

    .epic-btn:hover .hexagram-icon { transform: rotate(60deg) scale(1.1); }
    .epic-btn:hover .hexagram-icon polygon { stroke: #fff; filter: drop-shadow(0 0 8px #D4AF37); }
    .epic-btn:hover .hexagram-icon circle { fill: #fff; filter: drop-shadow(0 0 8px #D4AF37); }
    
    body.sacred-menu-open .hexagram-icon { opacity: 0; transform: scale(0) rotate(-180deg); }

    .c1-svg { 
      position: absolute; width: 60px; height: 60px; opacity: 0; inset: 0; margin: auto; transform-origin: center center;
      transform: scale(0.5) rotate(-90deg); transition: 0.8s cubic-bezier(0.77, 0, 0.175, 1); pointer-events: none;
    }
    .c1-svg path {
      fill: none; stroke: var(--nr-primary-color, #D4AF37); stroke-width: 3; stroke-linecap: round;
      transition: all 0.4s ease;
    }

    /* Open state for injected close button */
    body.sacred-menu-open #sacred-menu-close .c1-svg { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 10px rgba(212,175,55,0.4)); }
    
    body.sacred-menu-open #sacred-menu-close .c1-svg path { stroke: var(--nr-primary-color, #D4AF37); }
    
    /* Hover on X when open */
    body.sacred-menu-open #sacred-menu-close:hover .c1-svg { transform: scale(1.1) rotate(90deg); }
    
    body.sacred-menu-open #sacred-menu-close:hover .c1-svg path { stroke: #fff; filter: drop-shadow(0 0 5px #D4AF37); }

    /* The Sacred Portal Background (Clean expanding circle from button) */
    .hex-layer {
      position: fixed; inset: 0; background: #050505; z-index: 999997; pointer-events: none;
      clip-path: circle(0px at var(--btn-x, 90%) var(--btn-y, 40px));
      transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
      display: flex; justify-content: center; align-items: center;
    }
    body.sacred-menu-open { overflow: hidden !important; }
    body.sacred-menu-open .hex-layer { clip-path: circle(150% at var(--btn-x, 90%) var(--btn-y, 40px)); pointer-events: auto; }

    /* Inner mystical portal rings */
    .inner-hex {
      position: absolute; top: 50%; left: 50%; width: 90vmin; height: 90vmin; 
      border: 1px dashed rgba(255,255,255,0.05); border-radius: 50%;
      transform: translate(-50%, -50%) scale(0) rotate(0deg); transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 0;
    }
    .inner-hex::before {
       content: ''; position: absolute; inset: -40px; border: 1px solid rgba(255,255,255,0.02); border-radius: 50%;
    }
    body.sacred-menu-open .inner-hex { transform: translate(-50%, -50%) scale(1) rotate(180deg); opacity: 1; transition-delay: 0.3s; }

    /* The Portal Menu Items */
    .portal-menu-list {
      position: fixed; inset: 0; z-index: 999998; pointer-events: none;
      display: flex; flex-direction: column; align-items: center;
      list-style: none; padding: 10vh 0 5vh; margin: 0; overflow-y: auto; overflow-x: hidden;
    }
    body.sacred-menu-open .portal-menu-list { pointer-events: auto; }

    .portal-menu-list > li { margin: 1.5vh 0; text-align: center; width: 100%; flex-shrink: 0; }
    .portal-menu-list > li:first-child { margin-top: auto; }
    .portal-menu-list > li:last-child { margin-bottom: auto; }
    
    .portal-menu-list a {
      color: #fff; text-decoration: none; font-size: clamp(1.1rem, 3.5vh, 1.8rem); font-family: "Cinzel", "Times New Roman", serif; font-weight: 200; text-transform: uppercase;
      letter-spacing: 4px; opacity: 0; transform: translateY(40px) scale(0.9);
      transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
      display: inline-block; padding: 1vh 20px; line-height: 1.2;
    }
    
    body.sacred-menu-open .portal-menu-list a { transform: translateY(0) scale(1); opacity: 1; }

    /* Submenu styling */
    .portal-menu-list .sub-menu {
      list-style: none; padding: 15px 0 0 0; margin: 0;
      background: rgba(255,255,255,0.03); border-top: 1px solid rgba(230,92,0,0.2); border-bottom: 1px solid rgba(230,92,0,0.2);
    }
    .portal-menu-list .sub-menu li { margin: 8px 0; }
    .portal-menu-list .sub-menu a {
      font-size: 1.2rem; letter-spacing: 3px; padding: 5px 20px;
      font-family: 'Inter', sans-serif; text-transform: none; color: #bbb;
      transform: none; opacity: 1; /* override parent transform for submenus so they don't animate weirdly when opened */
    }
    
    /* Rotate the SVG arrow on parent links when opened */
    .portal-menu-list .menu-item-has-children > a svg {
      width: 15px; height: 15px; margin-left: 10px; transition: 0.3s;
    }
    .portal-menu-list li.submenu-open > a svg { transform: rotate(180deg); color: var(--nr-primary-color, #e65c00); }

    .portal-menu-list a:hover { color: var(--nr-primary-color, #e65c00); text-shadow: 0 0 20px rgba(230,92,0,0.3); }

    /* Staggered entry for top level links */
    body.sacred-menu-open .portal-menu-list > li:nth-child(1) > a { transition-delay: 0.3s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(2) > a { transition-delay: 0.4s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(3) > a { transition-delay: 0.5s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(4) > a { transition-delay: 0.6s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(5) > a { transition-delay: 0.7s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(6) > a { transition-delay: 0.8s; }
    body.sacred-menu-open .portal-menu-list > li:nth-child(7) > a { transition-delay: 0.9s; }
}

/* ============================================
   10. Swinging Glowing Skull
   ============================================ */

.swinging-skull-container {
  position: absolute;
  top: 100%; /* Hang directly from the bottom edge of the nav container */
  left: 50%; /* Center on the page */
  transform: translateX(-50%);
  z-index: -999; /* Force it behind dropdown menus */
  pointer-events: none; /* So it doesn't block clicks in the hero */
  /* We want it to swing like a pendulum */
  transform-origin: top center;
  animation: eerie-swing 6s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}

.swinging-skull-container.hide-skull {
  opacity: 0 !important;
}

/* Ensure Colibri dropdown menus are always on top of the skull */
.colibri-menu .sub-menu,
.colibri-menu .h-menu-item-has-children > ul {
  z-index: 999999 !important;
  transform: translateZ(0); /* Force stacking context */
}

.swinging-skull-container img {
  width: 300px; /* Increased from 250px */
  height: auto;
  filter: drop-shadow(0px 10px 20px rgba(230, 92, 0, 0.6)) brightness(1.1);
  animation: eerie-glow 4s ease-in-out infinite alternate;
}

@keyframes eerie-swing {
  0% { transform: translateX(-50%) rotate(-5deg); }
  100% { transform: translateX(-50%) rotate(5deg); }
}

@keyframes eerie-glow {
  0% { filter: drop-shadow(0px 5px 15px rgba(230, 92, 0, 0.4)) brightness(1); }
  100% { filter: drop-shadow(0px 15px 35px rgba(230, 92, 0, 0.9)) brightness(1.2); }
}

/* On mobile, adjust the size and position */
@media (max-width: 768px) {
  .swinging-skull-container {
    left: 50%;
  }
  .swinging-skull-container img {
    width: 160px; /* Decreased to be a tiny bit smaller */
  }
}

/* ==========================================================================
   Events & Updates Styles
   ========================================================================== */

.nr-events-container {
    width: 100%;
    margin: 40px 0;
    font-family: inherit;
}

.nr-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.nr-event-card {
    background: rgba(21, 24, 30, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.nr-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(230, 92, 0, 0.3);
}

.nr-event-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--nr-primary-color, #e65c00);
}

.nr-event-card-image.nr-no-image-placeholder {
    background: linear-gradient(135deg, rgba(230, 92, 0, 0.1) 0%, rgba(21, 24, 30, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nr-event-card-image.nr-no-image-placeholder::after {
    content: "\f145"; /* Dashicons calendar-alt */
    font-family: "dashicons";
    font-size: 5rem;
    color: rgba(230, 92, 0, 0.2);
}

.nr-event-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nr-event-date {
    color: var(--nr-primary-color, #e65c00);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nr-event-title {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.nr-event-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nr-event-title a:hover {
    color: var(--nr-primary-color, #e65c00);
}

.nr-event-location {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nr-event-excerpt {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.nr-event-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nr-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.nr-btn-primary {
    background: var(--nr-primary-color, #e65c00);
    color: #000;
    border: 2px solid var(--nr-primary-color, #e65c00);
}

.nr-btn-primary:hover {
    background: transparent;
    color: var(--nr-primary-color, #e65c00);
}

.nr-btn-outline {
    background: transparent;
    color: var(--nr-primary-color, #e65c00);
    border: 2px solid var(--nr-primary-color, #e65c00);
}

.nr-btn-outline:hover {
    background: var(--nr-primary-color, #e65c00);
    color: #000;
}

.nr-no-events {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 100%;
}

/* ============================================
   Event Filters
   ============================================ */
.nr-event-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(13, 15, 18, 0.7);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nr-event-filter {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.nr-event-filter:focus, .nr-event-filter:hover {
    border-color: var(--nr-primary-color, #e65c00);
}

/* ============================================
   Event Masonry Gallery
   ============================================ */
.nr-masonry-gallery {
    column-count: 1;
    column-gap: 15px;
}

@media (min-width: 600px) {
    .nr-masonry-gallery {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .nr-masonry-gallery {
        column-count: 3;
    }
}

.nr-gallery-item {
    margin-bottom: 15px;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nr-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 92, 0, 0.3);
}

.nr-gallery-item img {
    width: 100%;
    display: block;
    height: auto;
    transition: filter 0.3s;
}
