/*
Theme Name: OFarrell Group Theme
Description: A custom theme for OFarrell Group LLC. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
Version: 1.0
Author: Kriesi
Author URI: http://www.kriesi.at
Template: enfold
*/

/* Add your own styles here: */

/* --------------------------------------------------
   Base theme tweaks
-------------------------------------------------- */

body .column-top-margin {
  margin-top: 20px;
}

body,
body .avia-tooltip {
  font-size: 16px;
}

.textwidget p {
  font-size: 14px;
  color: #fff;
  line-height: 20px;
  padding-top: 10px;
}

/* Maintain text color when bold */
.main_color strong,
.alternate_color strong {
  color: inherit;
}

a {
  text-decoration: underline;
}

/* remove date from blog post grid
.slide-meta {
  display: none;
}
.news-link .news-time {
  display: none;
}
*/

div .wp-caption {
  border-width: 0;
}

.wp-caption-text {
  font-size: 16px;
}

map {
  max-width: 100px !important;
}

/* img[alt]:after {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 2;
  text-align: center;
  content: attr(alt);
} */

.avia-breadcrumbs .trail-before * {
  display: none !important;
}

body.ppwp-sitewide-protection {
  margin: 0;
  background: #2a2c2e url(https://lutyenstrustamerica.com/wp-content/uploads/2018/02/Goddards-boxed-1.jpg) no-repeat center / cover !important;
}

/* --------------------------------------------------
   Existing Quick CSS / Enfold tweaks
-------------------------------------------------- */

.caption_framed .slideshow_caption .avia-caption-title,
.caption_framed .slideshow_caption .avia-caption-content p {
  background: rgba(0, 0, 0, 0);
}

.grid-entry-title {
  text-align: center !important;
  font-weight: bold !important;
  font-size: 16px !important;
}

div .av_one_fourth {
  margin-left: 1%;
  width: 24%;
}

#js_sort_items {
  text-align: center;
}

#js_sort_items a,
#js_sort_items .text-sep {
  float: none;
  display: inline-block;
}

.portfolio-template-default .page-thumb {
  display: none !important;
}

.avia-image-container.av-has-copyright.av-copyright-icon-reveal .avia-copyright {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.boxed#top,
.html_boxed.html_header_sticky #header {
  width: 1310px !important;
}

#top .av-subnav-menu {
  font-size: 12px;
}

#top .av-subnav-menu > li > a {
  padding: 0 5px !important;
  display: block;
}

#top .av-subnav-menu > li.current-menu-item > a {
  color: #a81010 !important;
}

/* --------------------------------------------------
   Logged-out teaser layout
-------------------------------------------------- */

.lta-teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.lta-teaser-media {
  flex: 0 0 40%;
}

.lta-teaser-text {
  flex: 1 1 60%;
}

@media (max-width: 767px) {
  .lta-teaser-grid {
    flex-direction: column;
  }

  .lta-teaser-media,
  .lta-teaser-text {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------
   Logged-in thumbnail row
-------------------------------------------------- */

.lta-enfold-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.lta-enfold-gallery a {
  display: block;
  flex: 0 0 auto;
}

.lta-enfold-gallery img,
.lta-enfold-gallery a img {
  display: block;
  width: auto;
  max-width: none;
  height: 90px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .lta-enfold-gallery img,
  .lta-enfold-gallery a img {
    height: 70px;
  }
}

/* --------------------------------------------------
   LTA Entry - merged design system
-------------------------------------------------- */

.lta-entry {
  width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  max-width: none !important;
}

.lta-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  min-height: 78vh;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-bottom: 0 !important;
}

.lta-intro-media,
.lta-gallery {
  height: 100%;
}

.lta-intro-media {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.lta-gallery {
  display: flex;
  flex-direction: column;
}

.lta-gallery-main-wrap {
  position: relative;
  flex: 1;
  min-height: 520px;
  background: rgba(0, 0, 0, 0.04);
}

.lta-gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.lta-gallery-main {
  display: block;
  width: 100%;
  height: 80vh !important;
  min-height: 520px;
  object-fit: cover;
}

#lta-main-image {
  min-height: 100% !important;
}

.lta-photo-credit-overlay {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  max-width: calc(100% - 40px);
  padding: 8px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.3;
}

/* Thumbnail strip */
.lta-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px !important;
  padding: 12px 0 0;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

.lta-thumb {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lta-thumb.is-active,
.lta-thumb:hover {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.45);
}

.lta-thumb.is-active {
  border: 0 !important;
}

.lta-thumb img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.lta-gallery-thumbs .lta-thumb {
  overflow: hidden;
}

.lta-gallery-thumbs .lta-thumb img[src=""],
.lta-gallery-thumbs .lta-thumb img:not([src]),
.lta-gallery-thumbs .lta-thumb img[src*="data:image"] {
  display: none !important;
}

.lta-gallery-thumbs .lta-thumb:not(:has(img[src])),
.lta-gallery-thumbs .lta-thumb:has(img[src=""]),
.lta-gallery-thumbs .lta-thumb:has(img:not([src])),
.lta-gallery-thumbs .lta-thumb:has(img[src*="data:image"]) {
  display: none !important;
}

/* Content / metadata column */
.lta-intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  padding: 64px 7vw;
  text-align: center;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.lta-entry-kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  opacity: 0.78;
}

.lta-entry-title {
  max-width: 14ch;
  margin: 0 auto 24px;
  color: #c00201;
  font-size: 2.1rem;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.lta-entry-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: #444;
}

.lta-entry-facts div {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.lta-entry-facts strong,
.lta-entry-facts b {
  color: #111;
  margin-right: 4px;
}

.lta-entry-location {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #555;
}

.lta-entry-location p {
  margin: 0 0 12px;
}

.lta-map-link {
  margin-top: 14px;
}

.lta-map-link a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #9b1c1c;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.lta-map-link a:hover {
  color: #7a1515;
}

/* Body: main content + aside */
.lta-entry-body {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  align-items: start;
  gap: 52px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

body:has(.lta-intro-split) .lta-entry-body {
  margin-top: 40px;
}

.lta-entry-main p,
.lta-entry-main li {
  line-height: 1.75;
}

.lta-section {
  margin-top: 26px;
  margin-bottom: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.lta-entry-main > .lta-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lta-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9b1c1c;
}

.lta-section p,
.lta-section div {
  font-size: 0.93rem;
  line-height: 1.75;
  color: #333;
}

.lta-section a {
  color: #9b1c1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Aside / record details */
.lta-entry-aside {
  position: sticky;
  top: 30px;
}

.lta-entry-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lta-entry-aside li {
  margin-bottom: 12px;
}

.lta-meta-section {
  background: #f8f6f2;
  padding: 24px 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lta-meta-section p {
  font-size: 0.87rem;
  margin: 0 0 10px;
  line-height: 1.5;
}

.lta-meta-section a,
.lta-listing-links a {
  color: #9b1c1c;
}

.lta-listing-links a {
  word-break: break-word;
}

/* --------------------------------------------------
   Lightbox
-------------------------------------------------- */

.lta-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.88);
}

.lta-lightbox.is-open {
  display: flex;
}

.lta-lightbox-inner {
  max-width: min(1100px, 88vw);
  max-height: 88vh;
  text-align: center;
}

.lta-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto 14px;
}

.lta-lightbox-caption {
  margin: 0;
  color: #fff;
}

.lta-lightbox-close,
.lta-lightbox-prev,
.lta-lightbox-next {
  position: absolute;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.lta-lightbox-close {
  top: 18px;
  right: 20px;
}

.lta-lightbox-prev,
.lta-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lta-lightbox-prev {
  left: 20px;
}

.lta-lightbox-next {
  right: 20px;
}

/* --------------------------------------------------
   Buttons / login / member states
-------------------------------------------------- */

.lta-map-link .lta-btn,
#login-btn {
  cursor: pointer !important;
}

.lta-map-link .lta-btn {
  border: 1px solid #c00201 !important;
  background-color: #fff !important;
}

.single-portfolio .lta-btn:hover,
.lta-map-link .lta-btn:hover {
  background-color: #fff !important;
  color: #c10100 !important;
}

#login-btn {
  background-color: #c10100 !important;
  color: #fff !important;
}

#login-btn:hover {
  background-color: #fff !important;
  color: #c10100 !important;
}

#loginform > p:nth-child(2),
#loginform > div.user-pass-wrap {
  display: none;
}

body:not(.logged-in) .lta-member-only {
  display: none;
}

body.logged-in .lta-login-prompt {
  display: none;
}

.single-portfolio .lta-login-prompt {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #f7f5f1;
}

.single-portfolio .lta-login-message {
  margin: 0 0 14px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
}

.single-portfolio .lta-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 12px;
}

.single-portfolio .lta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

/* --------------------------------------------------
   Enfold / portfolio layout overrides
-------------------------------------------------- */

.post-type-archive-portfolio article.type-portfolio,
.single-portfolio article.type-portfolio {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.single-portfolio #main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.single-portfolio .entry-content,
.single-portfolio .post-entry {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

#top #main .container_wrap:has(.lta-entry),
#top #main .container:has(.lta-entry),
#top #main article:has(.lta-entry) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#top #main article.type-portfolio:has(.lta-entry) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#wrap_all,
body {
  overflow-x: hidden;
}

.lta-intro-split + #main,
body:has(.lta-intro-split) #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.single-portfolio #main,
.single-portfolio #main .container_wrap,
.single-portfolio #main .container,
.single-portfolio #main article.type-portfolio {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.single-portfolio article.type-portfolio .entry-content-header,
.single-portfolio .lta-entry-kicker:empty,
.single-portfolio .lta-intro-placeholder,
.single-portfolio article.type-portfolio .avia-gallery,
.single-portfolio article.type-portfolio [class*="av_gallery"],
.single-portfolio article.type-portfolio .gallery,
.single-portfolio article.type-portfolio .portfolio-preview-image,
.single-portfolio article.type-portfolio .single-small.with-slider .slideshow_container,
.single-portfolio article.type-portfolio .single-portfolio-grid {
  display: none !important;
}

#main > div.container_wrap.container_wrap_first.main_color.fullsize > div > main {
  padding: 0 !important;
}

#post-29067 > div > div > div.lta-enfold-gallery {
  display: none !important;
}

.html_header_top.html_header_sticky #main,
.html_header_top #main {
  padding-top: 110px;
}

body.admin-bar #header {
  top: 32px;
}

.mfp-ready .mfp-figure {
  opacity: 1;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */

@media (max-width: 1100px) {
  .lta-intro-content {
    padding: 36px 36px 32px;
  }

  .lta-entry-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 30px;
  }

  .lta-entry-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .lta-intro-split {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 40px;
  }

  .lta-gallery-main {
    height: 48vh;
    min-height: 320px;
  }

  .lta-gallery-main-wrap {
    min-height: 280px;
  }

  .lta-gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px 12px 0;
  }

  .lta-thumb img {
    height: 72px;
  }

  .lta-intro-content {
    padding: 36px 24px 8px;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .lta-entry-title {
    max-width: none;
    font-size: 1.65rem;
    text-transform: capitalize !important;
  }

  .lta-entry-body {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }

  .lta-lightbox {
    padding: 20px;
  }
}

@media only screen and (max-width: 782px) {
  body.admin-bar #header {
    top: 46px;
  }

  .html_header_top.html_header_sticky #main,
  .html_header_top #main {
    padding-top: 95px;
  }
}

@media (min-width: 1000px) {
  .lta-intro-split {
    margin-top: 5%;
  }
}