/* Application frame */
.application-frame {
  background-color: #ffffff;
}

.application-frame .wrapper {
  width: auto;
}

.application-frame .wrapper > section {
  display: flex;
}

@media screen and (max-width: 768px) {
  .application-frame .wrapper > section {
    display: block;
  }
}

.application-frame .wrapper .main {
  width: 100%;
}

.application-frame .wrapper > section .aside {
  background-color: #e5e5e5;
  margin-left: auto;
  max-width: 400px;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .application-frame .wrapper > section .aside {
    max-width: 300px;
  }
}

@media screen and (max-width: 768px) {
  .application-frame .wrapper > section .aside {
    max-width: none;
  }
}

/* Logomark */
.logomark-container {
  margin-bottom: 40px;
  margin-left: -10px;
  margin-top: -30px;
}

.logomark {
  width: 160px !important;
}

@media screen and (max-width: 768px) {
  .logomark-container {
    margin-bottom: 30px;
    margin-top: 0px;
  }
}

@media screen and (max-width: 480px) {
  .logomark-container {
    margin-bottom: 20px;
    margin-left: -8px;
  }

  .logomark {
    width: 120px !important;
  }
}

/* Instagram */
.aside #sb_instagram .sbi_type_video .sbi_playbtn,
.aside #sb_instagram .sbi_type_carousel .sbi_playbtn,
.aside .sbi_type_carousel .fa-clone,
.aside #sb_instagram .sbi_type_carousel .svg-inline--fa.fa-play,
.aside #sb_instagram .sbi_type_video .svg-inline--fa.fa-play {
  display: none !important;
}

/* Post */
.post-excerpt p,
.post p,
.post-excerpt > h2,
.post > h2 {
  max-width: 720px;
}

.post-excerpt p,
.post p {
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
}

@media screen and (max-width: 480px) {
  .post-excerpt p,
  .post p {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpt p,
  .post p,
  .post-excerpt > h2,
  .post > h2 {
    margin-left: auto;
    margin-right: auto;
  }
}

.post-excerpt h2,
.post h2 {
  line-height: 1.2;
}

.post-excerpt blockquote,
.post blockquote {
  margin-bottom: 36px !important;
  max-width: 520px;
}

@media screen and (max-width: 480px) {
  .post-excerpt blockquote,
  .post blockquote {
    margin-left: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpt blockquote,
  .post blockquote {
    margin-left: auto;
    margin-right: auto;
  }

  .post-meta-bottom p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .more-link-container {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 720px;
  }
}

.post-excerpt p img,
.post p img {
  width: auto;
  max-width: 100%;
  height: auto; /* Ensure the height scales proportionally */
}

@media screen and (min-width: 1200px) {
  .post-excerpts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .post-excerpts-container .post-excerpt:first-child {
    grid-column: 1 / span 2;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) {
    display: flex;
    flex-direction: column;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) h1 {
    font-size: 24px;
    line-height: 1;
    min-height: 120px;
    padding-right: 20px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) .meta {
    margin-bottom: 20px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) .like {
    display: none !important;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
    padding-bottom: 0;
    text-align: start;
    text-overflow: ellipsis;
  }

  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .excerpt-image-container {
    aspect-ratio: 1 / 1;
    display: block;
    margin-bottom: 20px;
    order: -1;
    position: relative;
    overflow: hidden;
  }

  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .excerpt-image-container
    img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media screen and (min-width: 1800px) {
  .post-excerpts-container .post-excerpt:not(:first-child) h1 {
    min-height: 95px;
  }

  .post-excerpts-container .post-excerpt:not(:first-child) p,
  .post-excerpts-container
    .post-excerpt:not(:first-child)
    .more-link-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none;
  }
}
