/* === Gallery Layout === */

.static-gallery-simple {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
}

.static-gallery-stack {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.static-gallery-main-post {
  flex: 4;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* === Main Post Image === */

.static-gallery-main-post img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* === Overlay & Category Label === */

.static-gallery-main-post .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.static-gallery-main-post .category {
  display: inline-block;
  background: var(--transparent-black);
  padding: 0.3rem 0.6rem;
  font-size: var(--smaller-para);
  margin-bottom: 0.5rem;
}

/* === Main Post Titles and Text === */

.static-gallery-main-post h3 {
  font-size: var(--title-h3);
  line-height: var(--title-h3-lh);
  margin: 0;
  color: #f1f1f1;
}

.static-gallery-main-post p {
  margin: 0 16px 12px;
  color: var(--lg-grey);
}

.static-gallery-simple-title .td-block-title span {
  text-transform: uppercase;
  background: var(--dk-grey);
}

.static-gallery-simple-title .block-title {
  border-bottom: 2px solid var(--dk-grey);
}

/* === Stack Thumbnails with Text === */

.static-gallery-thumb-with-text {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 8px 1px 8px 0px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--lg-grey);
}

.static-gallery-thumb-with-text:hover h4 {
  /* background-color: #f0f0f0; */
  color: var(--red);
}

.static-gallery-thumb-with-text:hover  {
  background-color: transparent;
}

.static-gallery-thumb-with-text img {
  aspect-ratio: 5/3;
  width: 40%;
  object-fit: cover;
  flex-shrink: 0;
}
/* === Stack Thumbnail Text === */

.static-gallery-thumb-text h4 {
  margin: 0 0 4px;
  font-size: var(--title-h4);
  line-height: var(--title-h4-lh);
}

.static-gallery-thumb-text p {
  margin: 0;
  font-size: var(--small-para);
  color: var(--lg-grey);
  font-family: "Roboto";
}

body.custom-dark-mode .static-gallery-simple .static-gallery-stack .static-gallery-thumb-text:hover h4,
body.custom-dark-mode .static-gallery-simple .static-gallery-stack .static-gallery-thumb-text:hover p {
  color: var(--red) !important;
}

/* === Optional: Individual Thumbnail Blocks (if still needed) === */

.static-gallery-thumb {
  display: block;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  height: 90px;
  cursor: pointer;
}

.static-gallery-thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

/* === Mobile Styles === */

@media (max-width: 1020px) {
  .static-gallery-simple {
    flex-direction: column-reverse;
  }

  /* .static-gallery-thumb-with-text img {
    display: none;
  } */

  /* .static-gallery-thumb-with-text:nth-of-type(2),
  .static-gallery-thumb-with-text:nth-of-type(3) {
    display: none;
  } */
}
