/* Our Collections — card number & price, collection and price filters (Gallery Studio) */

/* ---------- card details ---------- */
.gs-card-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 2px 0;
}
.gs-code {
    font: 700 11px/1.2 "Lato", sans-serif;
    letter-spacing: .12em;
    color: #8a6d1f;
    white-space: nowrap;
}
.gs-price {
    font: 700 21px/1 "Cormorant Garamond", Georgia, serif;
    font-variant-numeric: lining-nums;   /* Cormorant's default old-style 1s read like "I" */
    color: #000;
    white-space: nowrap;
}
.gs-price.is-ask {
    font: 600 12px/1.2 "Lato", sans-serif;
    color: #6b7280;
}

/* ---------- filter bar ---------- */
.gs-filters { margin: 0 0 1.75rem; }
.gs-filters-bar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
    max-width: 75%;
    margin: 0 auto;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.gs-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 0 1 250px;
    min-width: 0;
}
.gs-label {
    font: 700 11px/1 "Lato", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a6d1f;
    margin: 0;
}
.gs-select { position: relative; }
.gs-select select,
.gs-drop {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9f5f1;
    font: 700 14px/1 "Lato", sans-serif;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}
.gs-drop span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gs-select svg,
.gs-drop svg {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: transform .2s;
}
.gs-select select:hover,
.gs-drop:hover { border-color: #000; background: #fff; }
.gs-select select:focus-visible,
.gs-drop:focus-visible {
    outline: 0;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(222, 181, 82, .45);
}
.gs-drop[aria-expanded="true"] { border-color: #000; background: #fff; }
.gs-drop[aria-expanded="true"] svg { transform: rotate(180deg); }
/* a price filter is applied: same black as the active tab */
.gs-drop.is-active,
.gs-drop.is-active:hover { background: #000; border-color: #000; color: #fff; }

.gs-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin-left: auto;
    font: 400 14px/1.4 "Lato", sans-serif;
    color: #4b5563;
}
.gs-summary strong { color: #000; }

.gs-link {
    padding: 0;
    border: 0;
    background: none;
    font: 700 13px/1.4 "Lato", sans-serif;
    color: #000;
    text-decoration: underline;
    text-decoration-color: #deb552;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}
.gs-link:hover { text-decoration-color: #000; }

/* ---------- price dropdown ---------- */
.gs-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 18px 20px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06);
}
.gs-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.gs-panel-head strong { font: 700 21px/1 "Cormorant Garamond", Georgia, serif; color: #000; }
.gs-panel-head span { font: 400 13px/1 "Lato", sans-serif; color: #6b7280; white-space: nowrap; }

.gs-range { position: relative; height: 28px; margin-bottom: 18px; }
.gs-range-track {
    position: absolute;
    top: 50%;
    left: 11px;
    right: 11px;
    height: 4px;
    margin-top: -2px;
    border-radius: 4px;
    background: #e8e2d6;
}
.gs-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #deb552; }
.gs-range input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
}
.gs-range input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.gs-range input[type="range"]::-moz-range-track { height: 28px; background: transparent; border: 0; }
.gs-range input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    pointer-events: auto;
    cursor: grab;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow .15s, transform .15s;
}
.gs-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    pointer-events: auto;
    cursor: grab;
}
.gs-range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.gs-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(222, 181, 82, .55); }
.gs-range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(222, 181, 82, .55); }

.gs-range-fields { display: flex; align-items: flex-end; gap: 10px; }
.gs-range-fields label {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font: 700 11px/1 "Lato", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6b7280;
}
.gs-inr {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.gs-inr:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(222, 181, 82, .45); }
.gs-inr i { margin-right: 6px; font: 600 15px/1 "Lato", sans-serif; font-style: normal; color: #6b7280; }
.gs-inr input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 700 15px/1 "Lato", sans-serif;
    letter-spacing: 0;
    color: #000;
}
.gs-range-dash { padding-bottom: 12px; color: #9ca3af; }

.gs-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0ebe3;
}
.gs-apply {
    height: 40px;
    padding: 0 18px;
    border: 2px solid #000;
    background: #000;
    font: 700 14px/1 "Lato", sans-serif;
    color: #fff;
    cursor: pointer;
    transition: background-color .3s, border-color .3s, color .3s;
}
.gs-apply:hover { background: #deb552; border-color: #deb552; color: #000; }

/* ---------- empty results ---------- */
.gs-empty {
    margin: 0;
    padding: 3rem 1rem;
    border: 1px dashed #d8cdb8;
    border-radius: 6px;
    background: #fff;
    font: 400 16px/1.6 "Lato", sans-serif;
    color: #4b5563;
    text-align: center;
}
.gs-empty .gs-link { margin-left: 6px; font-size: 15px; }

/* ---------- "All collections" view ---------- */
.gs-pane-title { display: none; }
.tab-content.gs-all > .tab-pane { display: block; opacity: 1; }
.tab-content.gs-all > .tab-pane.gs-pane-empty { display: none; }
.tab-content.gs-all > .tab-pane + .tab-pane { margin-top: 3rem; }
.tab-content.gs-all .collection-eatch-box,
.tab-content.gs-all .tab-pane .gs-empty { display: none; }
.tab-content.gs-all .gs-pane-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 0 1.25rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #e8dfcf;
    font: 600 30px/1.1 "Cormorant Garamond", Georgia, serif;
    color: #000;
}
.gs-pane-title small { font: 400 14px/1 "Lato", sans-serif; color: #6b7280; }
/* no tab is "current" while every collection is shown */
#gallery-tab.gs-all .nav-link.active { background: transparent !important; color: #333 !important; }
#gallery-tab.gs-all .nav-link.active:hover { background: #deb552 !important; color: #000 !important; }

/* ---------- zoom view caption ---------- */
.fancybox-caption strong { letter-spacing: .1em; }
.fancybox-caption a,
.fancybox-caption a:link,
.fancybox-caption a:visited { color: #deb552; text-decoration: underline; text-underline-offset: 3px; }
.fancybox-caption a:hover { color: #fff; }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
    .gs-filters-bar { max-width: 100%; }
}
@media (max-width: 767px) {
    .gs-filters-bar { gap: 12px; padding: 12px; }
    .gs-field { flex: 1 1 calc(50% - 6px); }
    .gs-field-price { position: static; }     /* the dropdown spans the whole bar */
    .gs-panel { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 6px); }
    .gs-summary { flex-basis: 100%; justify-content: space-between; min-height: 0; margin: 0; padding-top: 10px; border-top: 1px solid #f0ebe3; }
    .gs-select select, .gs-drop { padding-left: 12px; font-size: 13px; }
    .gs-price { font-size: 19px; }
    .gs-code { font-size: 10px; letter-spacing: .08em; }
    .tab-content.gs-all .gs-pane-title { font-size: 25px; }
}
