[class*="RootLayoutLoader"] {
    transition: opacity .35s ease, visibility .35s ease !important;
}

html.peridot-video-wait [class*="RootLayoutLoader"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

[class*="RootLayoutHeader"][class*="wrapper"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

[class*="RootLayoutHeader"][class*="primary"] > ul > li:nth-child(n + 4),
[class*="RootLayoutHeader"][class*="contact"],
[class*="RootLayoutHeader"][class*="secondary"],
[class*="RootLayoutHeader"][class*="legals"],
a[class*="Button-module-scss-module__VLzsWq__Button"][class*="RootLayoutHeader-module-scss-module__96vZrq__button"][class*="Button-module-scss-module__VLzsWq__theme-transparent"] {
    display: none !important;
}

[class*="RootLayoutHeader"][class*="logo"] {
    width: min(240px, 56vw) !important;
    height: 48px !important;
    white-space: nowrap;
}

[class*="RootLayoutHeader"][class*="logo"] svg {
    width: 100%;
    height: 100%;
}

[class*="LargeQuote"][class*="coin"] canvas:not([data-peridot-gem]) {
    display: none !important;
}

[class*="LargeQuote"][class*="coin"] canvas[data-peridot-gem] {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 9px rgba(42, 72, 5, 0.32));
}

body.peridot-gallery-open {
    overflow: hidden !important;
}

.peridot-gallery-view {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow-y: auto;
    background: #f5f3ed;
    color: #20231d;
    padding: clamp(18px, 3vw, 48px);
}

.peridot-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto clamp(24px, 4vw, 64px);
}

.peridot-gallery-header h1 {
    margin: 0;
    font: inherit;
    font-size: clamp(22px, 3vw, 42px);
    letter-spacing: .03em;
}

.peridot-gallery-back {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 11px 18px;
}

.peridot-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.6vw, 28px);
    max-width: 1440px;
    margin: 0 auto;
}

.peridot-gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.peridot-gallery-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.peridot-gallery-card:hover img,
.peridot-gallery-card:focus-visible img {
    transform: scale(1.035);
    opacity: .86;
}

.peridot-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 20, 15, .92);
    cursor: zoom-out;
}

.peridot-gallery-lightbox img {
    max-width: min(94vw, 1500px);
    max-height: 92vh;
    object-fit: contain;
    cursor: default;
}

.peridot-gallery-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

body.peridot-contact-open {
    overflow: hidden !important;
}

.peridot-contact-view {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow-y: auto;
    color: #20231d;
    background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.52) 100%), url('/peridot/p6.jpg') center / cover no-repeat;
    padding: clamp(18px, 3vw, 48px);
}

.peridot-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    font-size: clamp(22px, 3vw, 42px);
    letter-spacing: .03em;
}

.peridot-contact-back {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    padding: 11px 18px;
}

.peridot-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(32px, 8vw, 140px);
    max-width: 1440px;
    min-height: calc(100vh - 110px);
    margin: 0 auto;
}

.peridot-contact-copy {
    max-width: 540px;
}

.peridot-contact-eyebrow {
    margin: 0 0 18px;
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.peridot-contact-copy h1 {
    margin: 0 0 24px;
    font: inherit;
    font-size: clamp(54px, 9vw, 132px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.05em;
}

.peridot-contact-intro {
    max-width: 420px;
    margin: 0 0 42px;
    font-size: clamp(18px, 2vw, 27px);
    line-height: 1.25;
}

.peridot-contact-phones {
    display: grid;
    gap: 10px;
}

.peridot-contact-phones a,
.peridot-contact-map-link {
    color: inherit;
    font-size: clamp(20px, 2.4vw, 32px);
    text-decoration: none;
}

.peridot-contact-phones a:hover,
.peridot-contact-map-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.peridot-contact-map {
    width: min(100%, 580px);
    justify-self: end;
    background: rgba(255,255,255,.84);
    padding: 10px;
}

.peridot-contact-map iframe {
    display: block;
    width: 100%;
    min-height: clamp(300px, 48vh, 560px);
    border: 0;
}

.peridot-contact-map-link {
    display: inline-block;
    margin: 16px 4px 5px;
    font-size: 15px;
}

@media (max-width: 800px) {
    .peridot-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .peridot-gallery-header {
        align-items: flex-start;
        flex-direction: column-reverse;
    }
    .peridot-contact-layout {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 36px;
        padding: 54px 0 24px;
    }
    .peridot-contact-map {
        justify-self: stretch;
        width: auto;
    }
    .peridot-contact-map iframe {
        min-height: 300px;
    }
}

/* ── iOS fixes ─────────────────────────────────────────────────────────── */

/* Momentum scrolling for overlay views on iOS Safari */
.peridot-gallery-view,
.peridot-contact-view {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll; /* 'auto' doesn't trigger momentum scroll on all iOS versions */
}

/* Ensure fixed-position overlays cover the full viewport including the
   iOS safe area / dynamic island notch area */
.peridot-gallery-view,
.peridot-contact-view,
.peridot-gallery-lightbox {
    padding-top: max(env(safe-area-inset-top, 0px), 18px);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 18px);
}
