/*
Theme Name: Dazzle Child Theme
Theme URI: https://dazzle.themerex.net/
Description: Dazzle is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.14.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: fashion store, fashion agency, fashion boutique, designer portfolio, fashion blog, jewelry & accessories, luxury fashion, fashion trends, fashion influencers, fashion showcase, designer collections, fashion photography, jewelry designs, accessory trends, fashion inspiration
Text Domain: dazzle
Template: dazzle
*/


/* =Child-Theme customization starts here
------------------------------------------------------------ */

:root {
    --benny-bg: #F4EFE6;
    --benny-fg: #111111;
    --benny-fg-muted: #555555;
    --benny-fg-faint: #888888;
    --benny-font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body,
body.page-template-page-no-chrome,
body.home {
    background: var(--benny-bg) !important;
    color: var(--benny-fg);
    font-family: var(--benny-font);
}

/* Masonry gallery — gallery block uses CSS columns for native aspect ratios.
   Inspired by nataliajung.com/urban/ (Dazzle reference site). */
.wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: start;
}

.wp-block-gallery.has-nested-images > figure.wp-block-image {
    display: block;
    margin: 0 !important;
    width: 100% !important;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:before,
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    display: none !important;
    content: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: none !important;
    height: 0 !important;
    max-height: 0 !important;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figcaption.wp-element-caption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.wp-block-gallery.has-nested-images > figure img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .wp-block-gallery.has-nested-images {
        grid-template-columns: 1fr;
    }
}

body.benny-no-chrome {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #111;
    margin: 0;
}

body.benny-no-chrome .benny-no-chrome-content a {
    color: var(--benny-fg);
    text-decoration-color: var(--benny-fg-muted);
    text-underline-offset: 0.15rem;
}

body.benny-no-chrome .benny-no-chrome-content a:hover {
    color: var(--benny-fg-muted);
}

body.benny-no-chrome--container .benny-no-chrome-container {
    width: min(72rem, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.benny-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    grid-auto-flow: dense;
    padding: 1.75rem 2rem;
}

.benny-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--benny-fg);
}

body.home .benny-logo {
    visibility: hidden;
}

.benny-logo:hover {
    color: var(--benny-fg-muted);
}

.benny-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.benny-hamburger {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    width: 32px;
    height: 1.6rem;
    position: relative;
    z-index: 1060;
    box-sizing: content-box;
}

.benny-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--benny-fg);
    margin: 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.benny-nav-toggle:checked ~ .benny-hamburger span:nth-child(1) {
    transform: translateY(0.7rem) rotate(45deg);
}
.benny-nav-toggle:checked ~ .benny-hamburger span:nth-child(2) {
    opacity: 0;
}
.benny-nav-toggle:checked ~ .benny-hamburger span:nth-child(3) {
    transform: translateY(-0.7rem) rotate(-45deg);
}

.benny-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(24rem, 88vw);
    background: var(--benny-bg);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 2.5rem 2rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: 1050;
}

.benny-nav-toggle:checked ~ .benny-nav {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.benny-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.benny-nav-list a {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--benny-fg);
}

.benny-nav-list a:hover {
    color: var(--benny-fg-muted);
}

.benny-nav-list li {
    position: relative;
}

.benny-nav-list .sub-menu {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benny-nav-list .sub-menu a {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--benny-fg-muted);
}

.benny-nav-list .benny-nav-instagram > a {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    color: var(--benny-fg-muted);
}

.wp-lightbox-overlay,
.wp-lightbox-overlay.active {
    background: var(--benny-bg);
}

.wp-lightbox-overlay::backdrop,
dialog.wp-lightbox-overlay::backdrop {
    background: var(--benny-bg) !important;
}

.wp-lightbox-overlay .scrim,
.wp-lightbox-overlay.zoom .scrim,
.wp-lightbox-overlay.zoom.active .scrim {
    background-color: var(--benny-bg) !important;
    opacity: 1 !important;
}

.wp-lightbox-overlay .lightbox-image-container,
.wp-lightbox-overlay .wp-block-image,
.wp-lightbox-overlay .wp-block-image img,
.wp-lightbox-overlay img {
    max-height: calc(100vh - 12rem) !important;
    max-width: calc(100vw - 2rem) !important;
}

@media (max-width: 600px) {
    .wp-lightbox-overlay .lightbox-image-container,
    .wp-lightbox-overlay .wp-block-image,
    .wp-lightbox-overlay .wp-block-image img,
    .wp-lightbox-overlay img {
        max-height: calc(100vh - 16rem) !important;
    }
}

.wp-lightbox-overlay .benny-lightbox-caption {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.35rem 0.75rem;
    background: transparent;
    color: #444;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-transform: none;
    letter-spacing: 0;
    z-index: 99999999999;
    max-width: calc(100vw - 1rem);
    pointer-events: none;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .wp-lightbox-overlay .benny-lightbox-caption {
        bottom: 2.25rem;
        padding: 0.2rem 0.35rem;
        max-width: calc(100vw - 0.25rem);
        width: calc(100vw - 0.25rem);
    }

    .wp-lightbox-overlay .benny-lightbox-caption__title,
    .wp-lightbox-overlay .benny-lightbox-caption__meta {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.72rem;
    }

    .wp-lightbox-overlay .benny-lightbox-caption__medium {
        display: none;
    }
}

.wp-lightbox-overlay .benny-lightbox-caption__title {
    color: #111;
}

.wp-lightbox-overlay .benny-lightbox-caption > div {
    display: block;
}

.wp-lightbox-overlay .benny-lightbox-caption__meta {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    white-space: nowrap;
}

.wp-lightbox-overlay .benny-lightbox-caption__price,
.wp-lightbox-overlay .benny-lightbox-caption__status {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.15rem;
    display: inline;
}

.wp-lightbox-overlay .benny-lightbox-caption__status {
    margin-left: 0.35rem;
}

.wp-lightbox-overlay .benny-lightbox-caption__medium {
    color: #888;
    font-size: 0.78rem;
    font-style: italic;
    margin-top: 0.1rem;
    max-width: 32rem;
}

.wp-lightbox-overlay .scrim {
    background: transparent;
}

.page-slug-first-drop .sc_layouts_title,
.page-slug-going-places-seeing-faces .sc_layouts_title,
.page-slug-about .sc_layouts_title,
.page-slug-exhibitions .sc_layouts_title,
.page-slug-works .sc_layouts_title {
    display: none;
}

body.page-slug-about .benny-no-chrome-content,
body.page-slug-contact .benny-no-chrome-content,
body.page-slug-exhibitions .benny-no-chrome-content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--benny-fg);
}

body.page-slug-about .benny-no-chrome-content p,
body.page-slug-contact .benny-no-chrome-content p,
body.page-slug-exhibitions .benny-no-chrome-content p {
    margin: 0 0 1.25rem;
}

body.page-slug-imprint .benny-no-chrome-container {
    max-width: 42rem;
    margin: 0 auto;
}

body.page-slug-exhibitions .benny-no-chrome-content p {
    padding-left: 2rem;
}

.benny-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--benny-fg-muted);
}

.benny-footer a {
    color: var(--benny-fg-muted);
    text-decoration: none;
}

.benny-footer a:hover {
    color: var(--benny-fg);
}

.footer_legal_links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.benny-exhibition-header {
    text-align: center;
    padding: 2rem 1.5rem 0.5rem;
    max-width: 40rem;
    margin: 0 auto;
}

.benny-exhibition-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 0.4rem;
    color: var(--benny-fg);
}

.benny-exhibition-subtitle {
    font-size: 0.95rem;
    color: var(--benny-fg-muted);
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
}

.benny-exhibition-meta {
    font-size: 0.9rem;
    color: var(--benny-fg-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

body.benny-home {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.benny-home-hero {
    position: fixed;
    inset: 0;
    background-color: var(--benny-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    min-width: 100vw;
}

.benny-home-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 2rem;
    z-index: 1010;
    pointer-events: none;
}

.benny-home-header > * {
    pointer-events: auto;
}

.benny-home-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--benny-fg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.22), 0 1px 2px rgba(255, 255, 255, 0.14);
}

.benny-hamburger--home {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.benny-infobox-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.benny-home-infobox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    padding: 0;
    max-width: 32rem;
    width: calc(100vw - 4rem);
    z-index: 1005;
    font-size: 0.95rem;
    line-height: 1.6;
    pointer-events: auto;
}

.benny-infobox__spacer {
    height: 0.8rem;
    margin: 0 !important;
}

.benny-home-infobox p {
    margin: 0 0 0.35rem;
    color: var(--benny-fg);
}

.benny-home-infobox a {
    color: var(--benny-fg);
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.benny-home-infobox a:hover {
    color: var(--benny-fg-muted);
}

.benny-infobox__section {
    margin-top: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    color: var(--benny-fg-muted);
}

.benny-home-caption {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    margin: 0;
    font-size: 0.75rem;
    color: var(--benny-fg);
    letter-spacing: 0.02em;
    z-index: 1002;
}
