/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* ==========================================================================
   GLOBAL COLORS
   ========================================================================== */

:root {
    --color-white: #ffffff;
    --color-white-opacity-90: rgba(255, 255, 255, 0.9);
    --color-white-opacity-80: rgba(255, 255, 255, 0.8);
    --color-white-opacity-70: rgba(255, 255, 255, 0.7);
    --color-white-opacity-60: rgba(255, 255, 255, 0.6);
    --color-white-opacity-50: rgba(255, 255, 255, 0.5);
    --color-white-opacity-40: rgba(255, 255, 255, 0.4);
    --color-white-opacity-30: rgba(255, 255, 255, 0.3);

    --color-dark: #0b0b0b;
}

body,
html {
    font-family: "Inter", sans-serif !important;
}

/* ==========================================================================
   MAIN WRAPPER + GRID
   ========================================================================== */

.reference-cover-wrapper {
    background: var(--color-dark);
    min-height: auto;
    color: var(--color-white);

}

.reference-cover__main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 638px;
    /* height: 100%; */
}


/* ==========================================================================
   LEFT COLUMN (TITLE)
   ========================================================================== */

.reference-cover__column--title {
    padding-left: 10rem;
    padding-bottom: 150px;
    text-align: center;
    display: flex;
    flex-direction: column;

}

.reference-cover__specs-collection {
    font-size: 1.8em;
    letter-spacing: 0.2em;
    align-items: center;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-white);
    margin: 0;
}

.reference-cover__title {
    text-align: left;

    font-size: 1.8em;
    font-weight: 100;
    line-height: 30px;
    margin: 0;
    color: var(--color-white);
}

.reference-cover__specs-collection-right {
    font-size: 1.2em;
    letter-spacing: 0.2em;
    align-items: center;
    align-self: center;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--color-white);
    margin: 0;
}

.reference-cover__specs-collection-limited {
    font-size: 1em;
    letter-spacing: 0.2em;
    align-items: center;
    align-self: center;
    text-transform: uppercase;
    font-weight: 200;
    color: var(--color-white);
    margin: 0;
}

.reference-cover__title-right {
    text-align: left;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1em;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    color: var(--color-white);
}


/* ==========================================================================
   IMAGE COLUMN
   ========================================================================== */

.reference-cover__column--main-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reference-cover__column--main-image img {
    width: 100%;
    max-width: 520px;
    height: 680px;
    object-fit: contain;
}

/* ==========================================================================
   RIGHT COLUMN
   ========================================================================== */

.reference-cover__column--content {
    max-width: 430px;
    display: flex;
    align-self: center;
    height: 620px;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}


.reference-cover__column--content::before {
    content: "";
    position: absolute;
    inset: -20px -30px 20px -30px;
    /* expands slightly beyond padding */
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
    border-radius: 0;
    /* optional */
}

.reference-cover__column--content>* {
    position: relative;
    z-index: 2;
}

.watch-model {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;

}

/* Introduction */
.watch-description {
    font-size: 0.9rem;
    padding-right: 30px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-white);
}

/* ==========================================================================
   LIMITED EDITION
   ========================================================================== */

.limited-edition {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--color-white);
}

/* ==========================================================================
   TABS NAV
   ========================================================================== */

.reference-cover__tabs-nav {
    display: flex;
    gap: 25px;
    border-top: 1px solid var(--color-white);
    padding-top: 12px;
    /* margin-top: 20px; */
    overflow-x: auto;
}

.reference-cover__tabs-nav button {
    background: none;
    border: none;
    cursor: pointer;

    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    color: var(--color-white);
    position: relative;
    padding-bottom: 10px;
}

/* ACTIVE TAB */
.reference-cover__tabs-nav button.is-active {
    color: var(--color-white);
}

.reference-cover__tabs-nav button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
}

/* ==========================================================================
   TAB CONTENT
   ========================================================================== */
.reference-cover__tabs {
    display: block;
}

.reference-cover__tabs-content {
    margin-top: 15px;
    /* min-height: 200px; */
    height: 290px;
}



.tab-panel {
    height: 100%;
    display: none;
    font-size: 0.85rem;
    line-height: 1.6;
    /* font-weight: 300; */
    color: var(--color-white-opacity-80);
}

.tab-panel.is-active {
    display: block;
}

/* Lists inside specs */
.tab-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-panel li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-white-opacity-30);
}

.tab-panel li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   ACCORDION (MOBILE)
   ========================================================================== */

.reference-cover__accordion-button,
.reference-cover__accordion-button:hover,
.reference-cover__accordion-button:focus,
.reference-cover__accordion-button:active {
    background: transparent;
    color: inherit;
    outline: none;
    box-shadow: none;
}

.reference-cover__accordion {
    display: none;
}

.reference-cover__accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.reference-cover__accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    background: transparent;
    border: none;

    padding: 16px 0;

    cursor: pointer;
}

.reference-cover__accordion-title {
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}

.reference-cover__accordion-icon {
    color: rgba(255, 255, 255, .7);
    transition: transform .3s ease;
}

.reference-cover__accordion-button[aria-expanded="true"] .reference-cover__accordion-icon {
    transform: rotate(180deg);
}

.reference-cover__accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.reference-cover__accordion-panel.is-open {
    padding-bottom: 15px;
}

.reference-cover__spec-content {
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    line-height: 1.8;
}


/* ==========================================================================
   GALLERY
   ========================================================================== */

.reference-cover__gallery-container {
    width: 100%;
    margin-top: 0;
}

.reference-cover__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.reference-cover__gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.reference-cover__gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-out;
}

.reference-cover__gallery-item:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   LIGHTBOX STYLES
   Gallery lightbox with prev/next navigation.
   Container uses position:relative; all visual layers use position:fixed
   individually so they always cover the full viewport regardless of context.
   Configurable via JS: LIGHTBOX_BG_COLOR, LIGHTBOX_ICON_COLOR, LIGHTBOX_TRANSITION
   ========================================================================== */

/* Lightbox container — hidden by default with display:none, GSAP handles show/hide */
.rc-lightbox {
    display: none;
    position: relative;
    z-index: 1000;
}

/* Semi-transparent background overlay — fixed, behind all other layers */
.rc-lightbox__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

/* Image wrapper — fixed, full viewport, centered, above overlay */
.rc-lightbox__image-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Image — responsive sizing to show full image without deformation */
.rc-lightbox__image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    display: block;
    pointer-events: auto;
    object-fit: contain;
}

/* Desktop: prefer height 100vh for vertical images */
@media (min-width: 769px) {
    .rc-lightbox__image {
        height: 100vh;
        width: auto;
    }
}




/* Current image — positioned relative */
.rc-lightbox__image--current {
    position: relative;
}

/* Next image — positioned absolutely for dual-image crossfade */
.rc-lightbox__image--next {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Close button — fixed top-right, SVG × icon, no background */
.rc-lightbox__close {
    position: fixed;
    top: 40px;
    right: 500px;
    z-index: 1002;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

body .rc-lightbox__close:hover,
body .rc-lightbox__close:focus {
    opacity: 0.7;
    background: none !important;
    color: #ffffff;
    outline: none;
}

/* Close SVG rects — fill controlled by CSS, can be overridden */
.rc-lightbox__close-rect {
    fill: #ffffff;
}

/* Navigation arrows — fixed, centered vertically, no background */
.rc-lightbox__arrow {
    position: fixed;
    top: 50%;
    z-index: 1002;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    pointer-events: auto;
}

body .rc-lightbox__arrow:hover,
body .rc-lightbox__arrow:focus {
    opacity: 0.7;
    background: none !important;
    outline: none;
}


.rc-lightbox__arrow svg {
    width: 30px;
    height: 30px;
    display: block;
}

.rc-lightbox__arrow svg path {
    fill: #ffffff;
    stroke: none;
}

/* Previous arrow: mirror the right-pointing SVG horizontally */
.rc-lightbox__arrow--prev {
    left: 10px;
    transform: translateY(-50%);
}

/* Next arrow: right side */
.rc-lightbox__arrow--next {
    right: 10px;
    transform: translateY(-50%);
}




/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .reference-cover__main-grid {
        gap: 40px;
        padding: 80px 30px;
    }

    .reference-cover__column--title {
        padding-left: 5rem;


    }

    .reference-cover__column--main-image {
        align-items: flex-end;


    }


    .reference-cover__column--main-image img {
        position: absolute;
        max-width: 280px;
        bottom: 0;
        height: auto;

    }

    .reference-cover__column--content {
        max-width: 380px;
        padding-right: 0px;


    }

    .reference-cover__gallery {
        grid-template-columns: repeat(2, 1fr);
    }


}

@media (max-width: 768px) {

    .reference-cover__main-grid {
        grid-template-columns: 1fr;
        padding: 0px 0px;
        background-size: auto 625px;
        gap: 24px;
        height: auto;
        min-height: auto;
        background-position: center 0px;
    }

    .reference-cover__column--title {
        padding-left: 0;
        padding-bottom: 0;
        top: 45px;
        align-items: center;
        position: relative;

    }

    .reference-cover__tabs-nav {
        gap: 15px;
    }

    .reference-cover__column--main-image img {
        position: relative;
        max-width: 430px;
        height: auto;

    }

    .reference-cover__column--main-image {
        position: relative;
        top: auto;
        min-height: auto;
        align-items: end;
    }



    .reference-cover__column--content {
        padding: 30px 40px;
        max-width: 100%;
        height: auto;
    }

    .reference-cover__column--content::before {
        background: transparent;
        inset: unset;
    }

    .reference-cover__tabs-content {
        margin-top: 15px;

    }

    .reference-cover__tabs {
        display: none;
    }

    .reference-cover__accordion {
        display: block;
    }

    .reference-cover__accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .reference-cover__accordion-panel.is-open {
        max-height: 500px;
    }

    .reference-cover__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc-lightbox__close {
        top: 200px;
        right: 30px;
    }

    /* Portrait orientation: full width, height auto */
    @media (orientation: portrait) {
        .rc-lightbox__image {
            width: 100vw;
            height: auto;
            max-height: 100vh;
        }
    }

    /* Landscape orientation: full height, width auto */
    @media (orientation: landscape) {
        .rc-lightbox__image {
            height: 100vh;
            width: auto;
            max-width: 100vw;
        }
    }
}