/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

body.artwork-popup-open {
    overflow: hidden !important;
}

/* Full-screen backdrop */
.artwork-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100vw !important;
    height: 100vh !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: clamp(1.5rem, 4vw, 4rem) !important;

    overflow: hidden !important;
    transform: none !important;

    background: rgba(0, 0, 0, 0.78) !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-sizing: border-box;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.artwork-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Remove Salient layout constraints */
.artwork-popup-overlay .row-bg-wrap,
.artwork-popup-overlay .row-bg,
.artwork-popup-overlay .row_col_wrap_12,
.artwork-popup-overlay .row_col_wrap_12_inner,
.artwork-popup-overlay .vc_column-inner,
.artwork-popup-overlay .wpb_wrapper {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.artwork-popup-overlay > .row-bg-wrap {
    display: none !important;
}

/* Popup card */
.artwork-popup {
    position: relative !important;

    display: flex !important;
    align-items: stretch;

    width: min(90vw, 82rem) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 84vh !important;

    margin: auto !important;
    padding: 0 !important;

    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box;
}

.artwork-popup-dynamic-content {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.artwork-popup-layout {
    display: flex;
    align-items: stretch;

    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 84vh;

    background: #fff;
}

/* Left image panel */
.artwork-popup-layout__image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 55%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;
    background: #ebeeef;
}

.artwork-popup-layout__img {
    display: block;

    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 84vh;

    object-fit: contain;
    object-position: center;
}

/* Right information panel */
.artwork-popup-layout__information {
    display: flex;
    flex-direction: column;
	flex: 1 1 45%;
    min-width: 0;
	height: 100%;
	justify-content: space-between;

    padding: clamp(2rem, 3.5vw, 3.75rem);
    overflow-y: auto;

    background: #fff;
    color: #111;
    box-sizing: border-box;
}

.artwork-popup-layout__heading {
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.artwork-popup-layout__heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.9rem, 2.4vw, 2.9rem);
    line-height: 1.05;
}

.artwork-popup-layout__year {
    display: block;
    margin-top: 0.5em;
    color: #918c82;
    font-size: 0.85rem;
}

.artwork-popup-layout__meta {
    margin-top: 0.75em;
}

.artwork-popup-layout__row {
    display: flex;
    justify-content: space-between;
    gap: 2em;

    padding: 1em 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.artwork-popup-layout__row > span {
    color: #918c82;
	font-size: 0.85rem;
}

.artwork-popup-layout__row > strong {
    flex: 1;
    color: #111;
    font-weight: 400;
    text-align: right;
}

.artwork-popup-layout__description {
    margin-top: 1.75em;
    color: #8A8278;
    line-height: 1.7;
	font-size: 0.85rem;
	text-align: justify;
    text-align-last: left;
}

.artwork-popup-layout__description > :first-child {
    margin-top: 0;
}

.artwork-popup-layout__description > :last-child {
    margin-bottom: 0;
}

/* Push CTA toward the bottom */
.artwork-popup-layout__information::after {
    content: "";
    flex: 1 1 auto;
    min-height: 1.5rem;
	display: none;
}

/* Enquire button */
.artwork-popup-enquire {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 3.5rem;
    margin-top: auto;
    padding: 0.9em 1.5em;

    border: 0;
    border-radius: 0;

    background: var(--nectar-accent-color);
    color: #fff !important;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    box-sizing: border-box;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.artwork-popup-enquire:hover {
    color: #fff !important;
    opacity: 0.9;
}

.artwork-popup-enquire:active {
    transform: translateY(1px);
}

/* Close button */
.artwork-popup-close {
    position: absolute !important;
    top: clamp(1rem, 2vw, 1.75rem);
    right: clamp(1rem, 2vw, 1.75rem);
    z-index: 10;
	cursor: pointer !important;
}

/* Salient mobile breakpoint */
.mobile .artwork-popup-overlay {
    padding: 0 !important;
    overflow-y: auto !important;
	background: white !important;
}

.mobile .artwork-popup {
    width: 100vw !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
}

.mobile .artwork-popup-dynamic-content {
    min-height: 100%;
	height: 100svh;
}

.mobile .artwork-popup-layout {
    flex-direction: column;
    max-height: none;
    min-height: 100%;
}

.mobile .artwork-popup-layout__image {
    flex: 0 1 auto;
    width: 100%;
    max-height: 55vh;
}

.mobile .artwork-popup-layout__img {
    width: 100%;
    max-height: 55vh;
}

.mobile .artwork-popup-layout__information {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    padding: clamp(1.5rem, 6vw, 2.5rem);
    overflow: visible;
}

.mobile .artwork-popup-layout__information::after {
    min-height: 2rem;
}

.mobile .artwork-popup-layout__row {
    gap: 1rem;
}

.mobile .artwork-popup-close {
    position: fixed !important;
    top: 1rem;
    right: 1rem;
}

.artist-detail {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.artist-detail__content,
.artist-detail__image {
    flex: 1 1 50%;
    min-width: 0;
}

.artist-detail__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
/*     padding: clamp(2rem, 5vw, 6rem); */
    box-sizing: border-box;
}

.artist-detail__content > :first-child {
    margin-top: 0;
}

.artist-detail__content > :last-child {
    margin-bottom: 0;
}

.artist-detail__image {
    position: relative;
    overflow: hidden;
}

.artist-detail__img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: center;
}

.mobile .artist-detail {
    flex-direction: column;
}

.mobile .artist-detail__content,
.mobile .artist-detail__image {
    width: 100%;
}

.mobile .artist-detail__image {
    min-height: 55vh;
}

.artist-detail {
    display: flex;
	flex-direction:row;
    gap: 4rem;
}

.artist-detail__content {
    flex: 1 1 50%;
}

.artist-detail__image {
    flex: 1 1 50%;
}

.mobile .artist-detail {
	flex-direction: column-reverse;
}
.entry-title {
    border-bottom: 1px solid #E2E1DE;
    margin-bottom: 1rem;
}

.artwork-zoom {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.artwork-popup-layout__img {
    display: block;
    width: 100%;
    height: auto;
}

.artwork-zoom-lens {
    position: absolute;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    z-index: 50;
    transition: opacity 0.15s ease;
}

.artwork-zoom-lens__img {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
}