/**
 * Theme editor / post content styles.
 */

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.editor-content input[type="text"],
.editor-content input[type="email"],
.editor-content input[type="number"],
.editor-content input[type="password"],
.editor-content input[type="search"],
.editor-content input[type="tel"],
.editor-content textarea,
.editor-content select,
.comment-form input,
.comment-form textarea {
  border-radius: 4px;
  border: 1px solid rgba(108, 111, 114, 0.15);
  background: #fff;
  padding: 10px 24px;
  height: 60px;
  display: block;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
  transition: 0.3s;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: right;
}

.editor-content input[type="text"]:focus,
.editor-content input[type="email"]:focus,
.editor-content input[type="number"]:focus,
.editor-content input[type="password"]:focus,
.editor-content input[type="search"]:focus,
.editor-content input[type="tel"]:focus,
.editor-content textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  background-color: rgba(233, 238, 253, 0.48);
}

.editor-content.acf-error input[type="text"],
.editor-content.acf-error input[type="email"] {
  border: 1px solid #924c59;
  background: rgba(200, 150, 159, 0.2);
  box-shadow: 0 4px 20px 0 rgba(226, 226, 226, 0.25);
}

.editor-content input[type="text"]::placeholder,
.editor-content input[type="email"]::placeholder,
.editor-content input[type="number"]::placeholder,
.editor-content input[type="password"]::placeholder,
.editor-content input[type="search"]::placeholder,
.editor-content input[type="tel"]::placeholder,
.editor-content textarea::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: rgba(77, 78, 80, 0.4);
  font-size: 14px;
}

.editor-content textarea,
.comment-form textarea {
  min-height: 182px;
}

/* --------------------------------------------------------------------------
   Base content
   -------------------------------------------------------------------------- */

.editor-content {
  line-height: 35px;
}

.editor-content img {
  border-radius: 3px;
  margin-bottom: 10px;
  clip-path: none !important;
}

.editor-content p {
  font-size: 14px;
  line-height: 33px;
  margin-bottom: 20px;
  text-align: justify;
  color: #232323;
  font-family: var(--main_font);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.owl-gallery {
  margin: 25px auto;
  padding: 0 30px;
}

.gallery_item {
  position: relative;
  display: block;
}

.lg-outer {
  text-align: right;
}

.swiper-lightgallery {
  margin-bottom: 25px;
  width: 100%;
}

.lg-thumb {
  margin: auto;
}

.lightgallery-item {
  display: block;
  position: relative;
  text-align: center;
  margin: auto;
  border-radius: 4px;
  overflow: hidden;
}

.lightgallery-item img {
  width: 100%;
  display: block;
  margin: 0 !important;
  transition: 0.4s;
}

.lightgallery-item-wrap:before {
  opacity: 0;
  visibility: hidden;
  content: "\e927";
  position: absolute;
  color: var(--e-global-color-primary);
  font-size: 30px;
  inset: 0;
  margin: auto;
  transition: 0.4s;
  z-index: 2;
  font-family: icomoon;
  line-height: 1;
  height: 30px;
  width: 30px;
  pointer-events: none;
}

.lightgallery-item:before {
  opacity: 0;
  visibility: hidden;
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 4px;
  background: rgba(68, 209, 201, 0.39);
  backdrop-filter: blur(2px);
  inset: 10px;
  margin: auto;
  transition: 0.3s;
  z-index: 1;
}

.lightgallery-item:after {
  opacity: 0;
  visibility: hidden;
  content: "";
  position: absolute;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 4px;
  background: url("../img/album.png");
  inset: 10px;
  margin: auto;
  transition: 0.3s;
  z-index: 1;
}

.lightgallery-item:hover:after,
.lightgallery-item:hover:before {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}

.lightgallery-item:hover:after,
.lightgallery-item:hover:before,
.lightgallery-item-wrap:hover:before {
  opacity: 1;
  visibility: visible;
  transition: 0.3s;
}

/* --------------------------------------------------------------------------
   Alignment
   -------------------------------------------------------------------------- */

.editor-content .alignleft {
  float: left;
  margin: 20px 20px 20px 0;
  clip-path: polygon(0 40px, 40px 0, 100% 0, 100% 100%, 0 100%);
  width: 100%;
}

.editor-content .alignleft img {
  clip-path: polygon(0 40px, 40px 0, 100% 0, 100% 100%, 0 100%);
  width: 100%;
}

.editor-content .alignright {
  float: right;
  margin: 20px 0 20px 20px;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  width: 100%;
}

.editor-content .alignright img {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
  width: 100%;
}

.editor-content .aligncenter {
  text-align: center;
  display: block;
  margin: 20px auto;
  clip-path: polygon(
    0 0,
    calc(100% - 40px) 0,
    100% 40px,
    100% 100%,
    40px 100%,
    0 calc(100% - 40px)
  );
  width: 100%;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */

.editor-content li h1,
.editor-content li h2,
.editor-content li h3,
.editor-content li h4,
.editor-content li h5,
.editor-content li h6 {
  margin-bottom: 0;
  display: inline;
  color: #565656;
  width: unset !important;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  margin-bottom: 16px;
  color: var(--e-global-color-primary);
  width: unset !important;
}

.editor-content.main-content h1,
.editor-content.main-content h2,
.editor-content.main-content h3,
.editor-content.main-content h4,
.editor-content.main-content h5,
.editor-content.main-content h6 {
  margin-top: 10px;
  width: unset !important;
}

.editor-content h1 {
  font-size: 24px;
}

.editor-content h2 {
  font-size: 22px;
}

.editor-content h3 {
  font-size: 20px;
}

.editor-content h4 {
  font-size: 18px;
}

.editor-content h5 {
  font-size: 16px;
}

.editor-content h6 {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.editor-content ul,
.editor-content ol {
  margin-bottom: 10px;
  padding-inline-start: 0;
}

.editor-content li ul,
.editor-content li ol {
  padding-inline-start: 8px;
}

.editor-content ul li {
  margin: 12px 0;
  color: #232323;
  font-size: 15px;
  line-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-content.main-content ul li:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill='%23ff8000' version='1.1' viewBox='0 0 512 512'%3E%3Cpath d='M477.043,219.205L378.575,48.677c-7.974-13.802-22.683-22.292-38.607-22.292H143.041c-15.923,0-30.628,8.49-38.608,22.292 L5.971,219.205c-7.961,13.801-7.961,30.785,0,44.588l98.462,170.543c7.98,13.802,22.685,22.293,38.608,22.293h196.926 c15.925,0,30.634-8.491,38.607-22.293l98.469-170.543C485.003,249.99,485.003,233.006,477.043,219.205z'/%3E%3C/svg%3E");
  width: 12px;
  display: inline-flex;
  height: 12px;
}

.editor-content ol {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.editor-content ol li {
  counter-increment: item;
  position: relative;
  padding-right: 35px;
  margin: 10px 0;
  color: #232323;
}

.editor-content ol li:before {
  content: counter(item) " ";
  color: var(--e-global-color-b8d7930);
  font-size: 18px;
  height: 100%;
  width: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: absolute;
  right: 0;
}

.editor-content ol li:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--e-global-color-b8d7930);
  top: 19px;
  right: 15px;
}

/* --------------------------------------------------------------------------
   Captions, links, buttons
   -------------------------------------------------------------------------- */

.editor-content .wp-caption-text {
  text-align: center;
  color: var(--e-global-color-primary);
}

.editor-content .wp-caption {
  width: auto !important;
}

.editor-content.main-content p a {
  color: var(--e-global-color-primary);
  background: #00377b14;
  border-radius: 5px;
  padding: 0 5px;
}

.editor-content.main-content a:hover {
  color: var(--e-global-color-secondary);
}

.editor-content.main-content td a {
  color: var(--e-global-color-secondary);
}

.editor-content.main-content td a:hover {
  color: var(--e-global-color-primary);
}

.editor-content a .btn {
  background: var(--e-global-color-secondary);
  border: none;
  padding: 10px;
  text-align: center;
  color: #fff;
  border-radius: 5px;
  font-family: inherit;
}

.editor-content a .btn:hover {
  color: var(--e-global-color-primary);
}

.editor-content a .btn i {
  display: none;
}

/* --------------------------------------------------------------------------
   Light text variants
   -------------------------------------------------------------------------- */

.text-light.editor-content p,
.text-light.editor-content ul li,
.text-light.editor-content ol li,
.light-contetn .editor-content p,
.light-content .editor-content ul li,
.light-content .editor-content ol li,
.light-content .editor-content.main-content h1,
.light-content .editor-content.main-content h2,
.light-content .editor-content.main-content h3,
.light-content .editor-content.main-content h4,
.light-content .editor-content.main-content h5,
.light-content .editor-content.main-content h6 {
  color: #fff;
}

.text-light.editor-content a,
.light-content .editor-content p a {
  color: var(--e-global-color-secondary);
}

.text-light.editor-content a:hover,
.light-content .editor-content p a:hover {
  color: var(--e-global-color-b8d7930);
}

/* --------------------------------------------------------------------------
   Blockquote
   -------------------------------------------------------------------------- */

.editor-content blockquote {
  padding: 57px 20px 20px 20px;
  border-radius: 6px;
  background: #f1f2f3;
  position: relative;
  margin: 80px 0 20px;
  display: table;
}

.editor-content blockquote:before {
  font-family: "icomoon";
  position: absolute;
  display: inline-block;
  top: -35px;
  right: 0;
  font-size: 100px;
  content: "\e91b";
  color: rgb(0, 55, 123);
  text-shadow: 3px -3px 11px rgba(0, 55, 123, 0.6);
}

.editor-content blockquote:after {
  font-family: "icomoon";
  position: absolute;
  display: inline-block;
  top: -35px;
  right: 0;
  font-size: 100px;
  content: "\e91c";
  margin-left: -1.0419921875em;
  color: rgb(68, 209, 201);
  text-shadow: 3px -3px 11px rgba(68, 209, 201, 0.6);
}

.editor-content blockquote p {
  color: #313233;
  font-size: 15px;
  position: relative;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */

.editor-content .wp-video,
.editor-content video {
  display: block;
  margin: 30px auto;
  width: 100% !important;
  max-width: 1300px;
  border-radius: 15px;
  overflow: hidden;
}

.editor-content .wp-video {
  display: flex;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.editor-content.main-content table:not(.acf-table) thead,
.editor-content.main-content table:not(.acf-table) tbody {
  display: table;
  margin: 0 auto;
  width: 100%;
}

.editor-content.main-content table:not(.acf-table) td {
  border-bottom: none;
  padding: 0.5rem 1rem;
  font-size: inherit;
  text-align: center;
}

.editor-content.main-content table:not(.acf-table) td p {
  margin: 0 !important;
}

.editor-content.main-content table:not(.acf-table) tr:first-child th,
.editor-content.main-content table:not(.acf-table) tr:first-child td {
  border-top: none;
  border-right: none;
  padding: 1rem;
  background: var(--e-global-color-primary);
  color: #fff;
}

.editor-content.main-content table:not(.acf-table) tr:first-child th span,
.editor-content.main-content table:not(.acf-table) tr:first-child th p,
.editor-content.main-content table:not(.acf-table) tr:first-child td,
.editor-content.main-content table:not(.acf-table) tr:first-child td span,
.editor-content.main-content table:not(.acf-table) tr:first-child td p {
  color: #fff;
}

.editor-content.main-content table:not(.acf-table):is(tbody, thead) {
  display: table;
  width: 100%;
}

.editor-content.main-content table:not(.acf-table) {
  border-collapse: collapse;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: auto;
  scrollbar-color: var(--e-global-color-primary) #c2d2e4;
  scrollbar-width: thin !important;
  border-bottom: 0;
  border-radius: 10px;
}

.editor-content.main-content table tr,
.editor-content.main-content table td,
.editor-content.main-content table th {
  border: 1px solid #dcdfe1;
  text-align: center;
}

.editor-content.main-content table tr {
  background: #fff;
}

.editor-content.main-content table tr:nth-child(2n-1) {
  background: #f1f2f3;
}

.editor-content.main-content table th {
  font-weight: bold;
}

.editor-content.main-content table td {
  border-bottom: none;
  color: #000;
  padding: 10px 15px;
  font-size: inherit;
}

.editor-content.main-content table::-webkit-scrollbar {
  height: 4px !important;
  width: 3px !important;
}

.editor-content.main-content table::-webkit-scrollbar-track {
  background: #eae8e4 !important;
  height: 4px !important;
}

.editor-content.main-content table::-webkit-scrollbar-thumb {
  background: rgb(123, 123, 123) !important;
  height: 4px !important;
}

.editor-content.main-content table::-webkit-scrollbar-thumb:hover {
  background: var(--e-global-color-primary);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.svg-clip {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
}

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

@media (max-width: 576px) {
  .editor-content.main-content table:not(.acf-table) td {
    white-space: nowrap;
  }
}

@media screen and (min-width: 992px) {
  .editor-content p {
    font-size: 15px;
    line-height: 38px;
  }

  .swiper-lightgallery {
    padding: 20px 0 30px;
  }

  .lightgallery-item-wrap:before {
    font-size: 49px;
    height: 49px;
    width: 49px;
  }

  .editor-content blockquote {
    padding: 31px 48px 32px 24px;
    margin: 40px 91px 40px 0;
  }

  .editor-content blockquote:before,
  .editor-content blockquote:after {
    top: 50%;
    transform: translateY(-50%);
    right: -90px;
    font-size: 100px;
  }
}

@media screen and (min-width: 1400px) {
  .editor-content blockquote {
    margin: 40px 190px 40px 100px;
  }
}
