/* RD LIGHTGALLERY */

body.site.lg-on { overflow: hidden; }
body.site .lg-outer .lg-img-wrap { padding: 40px 5px 75px 5px; }
body.site .lg-sub-html h4 { font-size: 1rem; font-weight: 400; text-transform: none; }
body.site .lg-sub-html a h4 { color: #000; }
body.site .lg-sub-html a:hover h4 { color: #000; }
body.site .lg-sub-html span { font-size: 0.85rem; display: block; }
body.site .lg-sub-html p { font-size: 0.85rem; margin: 0; }

dd.field-entry.galleries { margin: 80px 0 140px 0; }
dd.field-entry.galleries > span.field-label { margin-bottom: 20px; }
dd.field-entry.galleries > span.field-value > div { display: flex; flex-wrap: wrap; justify-content: left; }

/* RD LIGHTGALLERY FIGURE */

body.site.view-category.works div.item { margin: 1rem; }
body.site .jg_lightgallery figure { padding: 0; margin: 0; display: block; }
body.site .jg_lightgallery figure a { display: block; position: relative; overflow: hidden; padding-bottom: 100%; }
body.site .jg_lightgallery figure img { display: block; position: absolute; width: 100%; max-width: 100%; max-height: 100%; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); object-fit: contain; }
body.site .fields-container + div.page-header > h2 { font-size: 1rem; font-weight: 200; text-align: center; }

/* RD LIGHTGALLERY CAPTION */

body.site .lg-backdrop { background-color: #fff; }
body.site .lg-actions .lg-next, body.site .lg-actions .lg-prev { background-color: rgba(0, 0, 0, 0); color: #000; }
body.site .lg-actions .lg-next:hover, body.site .lg-actions .lg-prev:hover { color: #000; }
body.site .lg-toolbar { background-color: rgba(0, 0, 0, 0); }
body.site .lg-toolbar .lg-icon { color: #000; }
body.site .lg-toolbar .lg-icon:hover { color: #000; }
body.site .lg-sub-html { background-color: rgba(0, 0, 0, 0); color: #000; overflow: auto; }
body.site #lg-counter { color: #000; }
body.site button.lg-caption { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; text-align: inherit; line-height: normal; outline: none; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; }
body.site .jg_catelem_caption h4 button { position: relative; }
body.site .jg_catelem_caption h4 button:after { position: absolute; top: -0.5rem; content: '\e095'; font-family: lg !important; font-size: 1rem; padding: 0.5rem; display: inline-block; transform: rotate(-90deg); transition: all 0.15s ease-in; }
body.site .jg_catelem_caption.toggled h4 button:after { transform: rotate(90deg); }
body.site .jg_catelem_caption .jg_catelem_text { height: 100%; padding: 0.5rem 0; opacity: 1; transition: opacity 0.5s ease-in; }
body.site .jg_catelem_caption.toggled .jg_catelem_text { height: 0; padding: 0; overflow: hidden; opacity: 0; }

/* RD LIGHTGALLERY CAPTION SPLIT VIEW */

@media (min-width: 980px) {
	body.site.splitview .lg-outer .lg-img-wrap { padding: 40px 20px; }
	body.site.splitview .lg-actions .lg-next { right: calc(25% + 20px); }
	body.site.splitview .lg-outer .lg-inner { width: 75% }
	body.site.splitview .lg-sub-html { top: 0; left: 75%; padding: 40px 40px 40px 20px ; text-align: left; display: flex; align-items: start; }
}

@media (max-width: 979px) {
	body.site .lg-sub-html { max-height: calc(100% - 40px); padding: 10px 5px 15px 5px; background: rgba(255,255,255,0.95); }
}

/* RD IMGJUST */

body.site img.imgjust__img { cursor: pointer; }

dl.fields-container > dd.field-entry > span.field-value > .imgjust { margin-bottom: 3rem; }
dl.fields-container > dd.field-entry > span.field-value > .imgjust > a > img.imgjust__img { display: none; }
dl.fields-container > dd.field-entry > span.field-value > .imgjust > a > img.imgjust__img[style] { animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }